You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: