-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Can't use python environment - binary unsafe. #697
Comments
@egraether: didn't you encounter this error, too? |
Yes, I think the problem was that there was no binary named |
@egraether thank you for your response. I made sure that I have a 'python' binary in my env/bin but it doesn't seem to fix it. Unfortunately even verbose logs don't tell me more about the issue. Guess I'll have to wait to try it out for my projects. |
@apoorv-kumar Maybe it is a Sourcetrail execution environment problem. Did you start Sourcetrail directly from Terminal? If not, please try that. |
@egraether I did open the 'Sourcetrail' binary from terminal. |
We just released Sourcetrail 2019.2.39, which now displays validity information for the specified python environment directly in your project settings, so it's much faster for you to try different approaches. Can you for example try to specify the path directly to the Python executable of the virtual environment? |
Am having same issue. |
I'm having the same issue with Sourcetrail 2019.4.61. |
Same here with a conda environment. |
Same with virtualenv installed environment on OS X / Sourcetrail 2019.4.61. |
Same here with virtualenv on Ubuntu 19.04 |
Okay, so I have tracked this issue down to this. Basically as this stands unless you change ownership on the python executable to root, a virtual environment won't work due to Jedi by default requiring an environment to be "safe". This line needs to be changed to include |
@XVicarious: Thank you for creating the new issue on the Python indexer repo and linking it here. As this issue is fully within the scope of the Python indexer, we should continue disucssing it over at CoatiSoftware/SourcetrailPythonIndexer#59. |
Hi, I can't find any documentation around the error -
WARNING: The provided environment path "/home/apoorv/sandbox/venv/test_env" does not specify a functional Python environment (details: "The python binary is potentially unsafe."). Using fallback environment instead.".
I'm using Python3.5 environment on Ubuntu18.04.
The text was updated successfully, but these errors were encountered: