Ask Your Question
0

The python interpreter "/usr/bin/python2.7" may not exist.

asked 2018-10-12 09:14:00 -0500

Shun gravatar image

updated 2019-03-13 10:22:40 -0500

I can't tell my situation well because i am not native english speaker...Could not launch debugger for "/home/shun/opencv-sample01.py". The python interpreter "/usr/bin/python2.7" may not exist.has shown. Debugger and python code could not start. How to avoid this situation?

Wing Personal - 6.1.1-1 (rev e1bf75077d3c) - /usr/local/lib/wingide-personal6.1
Linux version 4.14.74-1-MANJARO (builduser@development) (gcc version 8.2.1 20180831 (GCC)) #1 SMP PREEMPT Fri Oct 5 14:16:52 UTC 2018
[shun@storm ~]$ which python
/usr/bin/python
[shun@storm ~]$ python -VPython 
3.7.0

This is problem but I don't know how to change them. But...

[shun@storm ~]$ ls -al /usr/bin/python*
lrwxrwxrwx 1 root root 7 9月 16 04:13 /usr/bin/python -> python3
lrwxrwxrwx 1 root root 14 9月 16 04:13 /usr/bin/python-config -> python3-config
lrwxrwxrwx 1 root root 9 6月 27 22:05 /usr/bin/python2 -> python2.7
lrwxrwxrwx 1 root root 16 6月 27 22:05 /usr/bin/python2-config -> python2.7-config
-rwxr-xr-x 1 root root 5920 6月 27 22:05 /usr/bin/python2.7
-rwxr-xr-x 1 root root 1681 6月 27 22:05 /usr/bin/python2.7-config
lrwxrwxrwx 1 root root 9 9月 16 04:13 /usr/bin/python3 -> python3.7
lrwxrwxrwx 1 root root 16 9月 16 04:13 /usr/bin/python3-config -> python3.7-config
-rwxr-xr-x 2 root root 14112 9月 16 04:13 /usr/bin/python3.7
lrwxrwxrwx 1 root root 17 9月 16 04:13 /usr/bin/python3.7-config -> python3.7m-config
-rwxr-xr-x 2 root root 14112 9月 16 04:13 /usr/bin/python3.7m
-rwxr-xr-x 1 root root 3222 9月 16 04:13 /usr/bin/python3.7m-config

END OF LINE
edit retag flag offensive close merge delete

Comments

PS. Some of more images. Now I remember that I see this when launching Wing IDE. Sorry for less information! END OF LINE

Shun gravatar imageShun ( 2018-10-12 10:11:00 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2018-10-12 09:23:00 -0500

updated 2019-03-06 22:39:42 -0500

Wingware Admin gravatar image

You need to click Custom for Python Executable in the Project Properties dialog so it uses the custom value shown there and not the default.  We continue to store the custom value even when Default is clicked (but disable / grey it out) so it's easier to switch back and forth for people that need to do that.

However, since the default /usr/bin/python2.7 does exist it may be there is some other problem with that installation of Python.  For example, perhaps it's 32-bit Python which Wing 6 no longer supports on Linux.  If you change to /usr/bin/python3.7 and that's 64-bit it'll solve it.

If not, please send in a bug report from Wing's Help menu and include the error log where prompted and that likely will tell us why it's failing to launch debug.

edit flag offensive delete link more

Comments

Thank you this reply. (Wow! Its very fast!) First, these python's are 64bit binary. and using with wingide-personal-6.1.1-1-x86_64-linux.

[shun@storm ~]$ file /usr/bin/python2.7
/usr/bin/python2.7: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID [sha1]=25b8495c3e8fee45f04b8bcdcf4aeb785fd80f0f, stripped
[shun@storm ~]$ file /usr/bin/python3.7
/usr/bin/python3.7: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=03feffd3fe8261f1b052585fd7ec9503ab1a3631, stripped

Second, My uploaded PNG as last one is no good for see detail. I will add more PNG file.It means that I tried changing to Custom value but another error has occurred.

Shun gravatar imageShun ( 2018-10-12 09:59:00 -0500 )edit

I could see the last png well enough to understand what the text says.  Good to rule out that it's not 32-bit.  If you try to Restart Shell from the Options menu in the Python Shell tool in Wing, does it show any details of why it's failing to start Python?

Wingware Support gravatar imageWingware Support ( 2018-10-12 10:09:00 -0500 )edit

Thanks. Now I Restart Shell from pull down menu.

Could not start shell process: Could not start debug process::Could not launch debugger for "/usr/local/lib/wingide-personal6.1/src/debug/tserver/_sandbox.py". The python interpreter "/usr/bin/python3.7" may not exist.

and

Could not launch debugger for "/usr/local/lib/wingide-personal6.1/src/debug/tserver/_sandbox.py". The python interpreter "/usr/bin/python3.7" may not exist.
Shun gravatar imageShun ( 2018-10-12 10:18:00 -0500 )edit

Try setting WINGDB_PRINT_ALL_TRACEBACKS=1 in the Environment in Wing's Project Properties after selecting over to "Add to inherited environment" in the drop-down menu there, and then restart the shell again.  That should print some additional diagnostics.  Sorry, I thought it would already do that on its own but I think it's needed to rule out whether it's entirely failing to start Python vs. failing to initiate debug/etc.

Wingware Support gravatar imageWingware Support ( 2018-10-12 10:25:00 -0500 )edit

Also, sending us ~/.wingide6/ide.log may show us what is wrong (or look in the file yourself after trying to start debug or restart the Python Shell)

Wingware Support gravatar imageWingware Support ( 2018-10-12 10:29:00 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2018-10-12 09:14:00 -0500

Seen: 128 times

Last updated: Mar 06