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

Can't lauch the spyder3, under the win10+python3.6 with pip install pyqt5 and spyder3.2.4 #6023

Closed
QuntuamLoop opened this issue Dec 20, 2017 · 17 comments

Comments

@QuntuamLoop
Copy link

QuntuamLoop commented Dec 20, 2017

Description of your problem

My laptop is the thinkpad t450 with the python 3.6.4 , and I also have install the pyqt5.9.2 and spyder3.2.4 with the pip installer. But when I input the command 'spyder3' in cmd gui, it can't show anything.
The problem just happend under this enviroment, in the python 3.5 or anaconda spyder3 is still a IDE tools for tensorflow or other science computation.

?

@jitseniesen
Copy link
Member

Spyder 2.4 is seriously out of date and no longer supported (your issue will be closed for this reason). The latest version is 3.2.4. I suggest you update to that version.

@CAM-Gerlach
Copy link
Member

Also, pip installations are for experts; you are welcome to try to get it working but you're on your own. We recommend the Anaconda distribution or similar otherwise.

@QuntuamLoop QuntuamLoop changed the title Can't lauch the spyder3, under the win10+python3.6 with pip install pyqt5 and spyder2.4 Can't lauch the spyder3, under the win10+python3.6 with pip install pyqt5 and spyder3.2.4 Dec 21, 2017
@QuntuamLoop
Copy link
Author

qq 20171221100337
@jitseniesen It's my mistake. It's spyder3.2.4, which can run in python 3.5.4+pyqt5.9, but python 3.6.4 not.

@ccordoba12
Copy link
Member

@QuntuamLoop, it could be a number of different things, and (since we're unfunded) we don't have the resources nor the time to help you debug them.

Hence our recommendation (stated above by @CAM-Gerlach) to switch to Anaconda. That's the best we can do at the moment, sorry.

@QuntuamLoop
Copy link
Author

@ccordoba12 Thank you for your suggestions. And many friends around me, also gave the same solutions.

@CAM-Gerlach
Copy link
Member

@QuntuamLoop Best of luck!

@jnsebgosselin
Copy link
Member

jnsebgosselin commented Dec 21, 2017

Before you change anything to your setup, no error is shown in the cmd window after you run spyder3?

@QuntuamLoop
Copy link
Author

@jitseniesen Really not. After I installed the python 3.6.4(or 3.6.x ) in win7 in 64bit or win10 in 64bit, then I opened cmd, installed the pyqt5 and spyder. But after clicked spyder3, the programe started with nothing.
3
2

@jnsebgosselin
Copy link
Member

@QuntuamLoop Go to you spyder installation folder in the cmd window. This should be something like C:\Python36\Lib\site-packages\spyder and run:

python bootstrap.py --debug

Do you get some kind of error traceback from this?

@QuntuamLoop
Copy link
Author

@jnsebgosselin excuse me, is it a right way?
image

@jnsebgosselin
Copy link
Member

jnsebgosselin commented Dec 22, 2017

@QuntuamLoop Sorry, yeah you did it ok. Ì was wrong, there is no boostrap.py distributed when installed with pip. Only when cloning spyder from the git.

So, instead, in the folder spyder where you are, go in the app folder and try to run start.py or mainwindow.py if it doesn't work.

If the cmd window closes before you can see anything, you can put your command in a .bat file and add pause at the end. Something like

python app.py
pause

@QuntuamLoop
Copy link
Author

@jitseniesen finally, I find it's the problem of markupsafe in utf-8. So I use the pip to reintall the package. Thanks for repling me the method.
1
2

@jnsebgosselin
Copy link
Member

@QuntuamLoop I'm glad you were able to fix your problem, good job!

@Sup3rGeo
Copy link

Hey guys, also on windows 10, for me its just hanging in Setting up main window splash:

image

Then when I click the splash, python crashes.

@CAM-Gerlach
Copy link
Member

CAM-Gerlach commented May 14, 2018

@Sup3rGeo This is likely an unrelated issue, but very likely an install-related one. As your screenshot shows, you've installed Spyder manually with pip, which is for experts only due to the number of machine-specific tricky issues that can result, particularly on Windows. Therefore, as we state in our readme, install guide, troubleshooting guide, wiki, and docs, we can only recommend that you reinstall with Anaconda, which avoids most of these sorts of problems, and we can try to help with any that remain. Thanks, and best of luck.

@fahmanali
Copy link

when I run spyder I get "An error ocurred while starting the kernel
Traceback (most recent call last):
File "C:\Users\msi‑pc\Anaconda3\envs\tenv\lib\runpy.py", line 193, in _run_module_as_main"
and in prompt I get "js: Not allowed to load local resource: file:///C:/Users/msi-pc/Anaconda3/envs/tenv/lib/site-packages/spyder/utils/help/static/css/default.css"

note: I have another environment and spyder is work

@CAM-Gerlach
Copy link
Member

CAM-Gerlach commented Sep 6, 2018

@fahmanali

An error ocurred while starting the kernel

This is clearly an unrelated issue with a very different cause and symptoms; it is a generic Python level issue of not being able to start the kernel, whereas this thread is for a specific Qt/C++ level problem where Spyder segfaults before it even launches. In the future, please try to read the title and initial report in a thread before posting to make sure the issue is the same, or at least related, so you can get the most appropriate help and to aid us in keeping track of your issue.

Traceback (most recent call last):
File "C:\Users\msi‑pc\Anaconda3\envs\tenv\lib\runpy.py", line 193, in _run_module_as_main"

Please provide the full traceback if you want someone to be able to help you.

js: Not allowed to load local resource: file:///C:/Users/msi-pc/Anaconda3/envs/tenv/lib/site-package/spyder/utils/help/static/css/default.css"

Not sure if this error message is related; IIRC I seem get it quite frequently, typically when another Spyder instance is open IIRC like you state. Perhaps one Spyder instance may be locking/blocking on the file when it shouldn't, but I haven't noticed a significant effect yet other than the message (though I haven't tested help rendering too much when it happens).

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

7 participants