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

"Deviot needs Python 2.7 to work" - but it is installed #204

Closed
mklengel opened this issue Dec 29, 2017 · 5 comments
Closed

"Deviot needs Python 2.7 to work" - but it is installed #204

mklengel opened this issue Dec 29, 2017 · 5 comments

Comments

@mklengel
Copy link

Operating system

Windows 10 Professional 64 bit

Board used

N/A

Description of problem

After the installation Deviot complains about the installation of Python2.

I have installed Python3 and Python2 in parallel:
c:\program files\python36
c:\program files\python27

According to https://github.com/gepd/Deviot/wiki/Setup I created a file
C:\Users\mklen\AppData\Roaming\Sublime Text 3\Packages\User\Deviot\python.txt

My first try was:
C:\Program Files\Python27
C:\Program Files\Python27\Scripts

My second try was:
C:\PROGRA1\Python27
C:\PROGRA
1\Python27\Scripts

In both cases the message "Deviot needs Python 2.7 to work" occures after the restart of Sublime Text.
I know the blank in the path is not recommended but I though this is history. I had no problems since now. The 8.3 notation should solve this, if this is really the problem in this case.

My PATH variable is set to Python3 - should be not a problem according the the setup instructions.

Error(s) in ST Console? (View > Show Console)

Steps to Reproduce

Actual Results

Expected Results

Additional info

You can edit the text above according to your need

@gepd
Copy link
Owner

gepd commented Dec 29, 2017

Please use the develop version and try again https://github.com/gepd/Deviot/wiki/Setup#developer

That feature is not in the master branch yet.

Let me know if it solves your problem

@mklengel
Copy link
Author

mklengel commented Dec 29, 2017

The problem is solved - thx for the quick help.

Necessary is the python.txt file with the following content:
C:\Program Files\Python27
C:\Program Files\Python27\Scripts

Restarting ST results in a new file deviot.ini with the following content (shortened):

[config]
env_path = C:\Users\mklen\AppData\Roaming\Sublime Text 3\Packages\User\Deviot\penv;C:\Users\mklen\AppData\Roaming\Sublime Text 3\Packages\User\Deviot\penv\Scripts;C:\Python27;C:\Python27\Scripts;C:\Program Files\Python27;C:\Program Files\Python27\Scripts
installed = True

The path components C:\Python27 and C:\Python27\Scripts are clearly wrong. They are not in my PATH variable (System and User) an of course not on my filesystem, so its a result from the Deviot setup. I think this should be fixed.

@gepd
Copy link
Owner

gepd commented Dec 29, 2017

Thanks for the feedback, I'll add a fix in a future release!

@fiveangle
Copy link

I also encountered this during an upgrade somewhere along the way in the dev branch. I ultimately resolved by complete uninstall/reinstall. That's great @gepd if you found a root cause for it to prevent in the future 👍

@gepd gepd added this to the v2.2 milestone Feb 9, 2018
@gepd
Copy link
Owner

gepd commented Feb 11, 2018

I've released dev13 with a fix for this.

Please re-open if you keep having this issue

@gepd gepd closed this as completed Feb 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants