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

Output argument of screen_db does not take file name as a value #12

Open
DrrDom opened this issue Mar 16, 2023 · 0 comments
Open

Output argument of screen_db does not take file name as a value #12

DrrDom opened this issue Mar 16, 2023 · 0 comments

Comments

@DrrDom
Copy link
Collaborator

DrrDom commented Mar 16, 2023

When run
screen_db -d 1.dat -o output.txt -q model.xyz
it returns an error

Traceback (most recent call last):
  File "/home/pavel/anaconda3/envs/rdkit-2103/bin/screen_db", line 33, in <module>
    sys.exit(load_entry_point('psearch', 'console_scripts', 'screen_db')())
  File "/home/pavel/python/psearch/psearch/screen_db.py", line 205, in entry_point
    screen_db(db_fname=args.dbname,
  File "/home/pavel/python/psearch/psearch/screen_db.py", line 157, in screen_db
    os.makedirs(os.path.dirname(output), exist_ok=True)
  File "/home/pavel/anaconda3/envs/rdkit-2103/lib/python3.9/os.py", line 225, in makedirs
    mkdir(name, mode)
FileNotFoundError: [Errno 2] No such file or directory: ''

While the command
screen_db -d 1.dat -o output -q model.xyz
works fine and creates a dir output with proper files inside

This affects the current lib branch version.

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

1 participant