Skip to content
New issue

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

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

Already on GitHub? # to your account

Install and usage steps do not seem to work #2273

Closed
peacepirate opened this issue Aug 3, 2018 · 2 comments
Closed

Install and usage steps do not seem to work #2273

peacepirate opened this issue Aug 3, 2018 · 2 comments
Labels

Comments

@peacepirate
Copy link

peacepirate commented Aug 3, 2018

I am just trying this out, and not sure if I am missing anything. But seems like the steps do not work for a new python environment at least. I am not sure if the issue is with packaging the data directory in the package or not yet, but seems that way.

python3 -m venv .env
source .env/bin/activate
pip install safety-db
python -c "import safety_db"

Traceback (most recent call last):
File "", line 1, in
File "/home/vagrant/virtualenvs/api/lib/python3.6/site-packages/safety_db.py", line 13, in
with open("data/insecure.json") as __f:
IOError: [Errno 2] No such file or directory: 'data/insecure.json'

Edit: The traceback output was using a different environment and has been fixed, but the issue persists either way.

@volans-
Copy link

volans- commented Aug 23, 2018

I can confirm the error, and it's because the files are not installed in the virtualenv. It seems it was fixed in #2268 but it has not yet released into PyPI.

@rafaelpivato
Copy link
Contributor

Should be fixed now.

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

No branches or pull requests

3 participants