Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"unrecognized argument" error #56

Open
johnwkeller54 opened this issue Oct 2, 2024 · 7 comments
Open

"unrecognized argument" error #56

johnwkeller54 opened this issue Oct 2, 2024 · 7 comments

Comments

@johnwkeller54
Copy link

I am getting a "censo: error: unrecognized arguments: ./crest_conformers.xyz" when I run censo per the following:

$ cd
$ python3.12 -m censo -inp ./crest_conformers.xyz

@FrancescoTalotta
Copy link

FrancescoTalotta commented Oct 2, 2024

Hello I have got the same error. I believe there are some problems with the cml_parser.py. To let it work I commented out some lines in the cml_parser.py file:

    #if not check_soft_requirements(args):
    #    raise argparse.ArgumentError(
    #        # None, "One of the soft requirements ('-inp', '-chrg', '-u') not met."
    #        None,
    #        "You must provide an input file via '-i'.")

@johnwkeller54
Copy link
Author

Hi,
I did that and still gives same error.

@FrancescoTalotta
Copy link

Did you recompile the code with pip install . ?

@johnwkeller54
Copy link
Author

Yes:

$ python3.12 -m pip install .
...
Successfully built censo
Installing collected packages: censo
Attempting uninstall: censo
Found existing installation: censo 2.0.2.dev4+g06f5d36
Uninstalling censo-2.0.2.dev4+g06f5d36:
Successfully uninstalled censo-2.0.2.dev4+g06f5d36
Successfully installed censo-2.0.2.dev4+g06f5d36.d20241002

lines 529-533 of cml_parser.py:

#if not check_soft_requirements(args):
#    raise argparse.ArgumentError(
#        # None, "One of the soft requirements ('-inp', '-chrg', '-u') not met."
#        None,
#        "You must provide an input file via '-inp'.")

JK

@johnwkeller54
Copy link
Author

Repeated install, edit cml_parser.py, re-compile with python3.11. Same result.

@FrancescoTalotta
Copy link

Hello, that's how I perform a calculation with the new version:

censo -i $geom -c 2 -s acetonitrile -O 4 --maxcores 16 > $CurrDir/censo.out

I use the -i option for the geometry

@adamhorvath99
Copy link

I have the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants