Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
  • Feb 04 2020 16:57
    @goanpeca banned @tolgayilmaz
Gene Feigel
How do I display module source code in Anaconda Spyder? I did it accidently, but now can't find a command to do it again.
1 reply
suraj verma

in spyder:-
'File "C:/Users/WELCOME/.spyder-py3/untitled0.py", line 6, in <module>
import mysql.connector

ModuleNotFoundError: No module named 'mysql' ' is show why?

I just updated python in my spyder enviroment, but when I try to run spyder I get "/opt/miniconda3/envs/spyder-env/python.app/Contents/MacOS/python: No such file or directory" I tried to reset and that did not work either. What would be the best way to resolve this?
2 replies

Hello, I'm trying to install anaconda for all users on a remote computer with Windows version 1809. I was hoping someone could help me out. When I open up spyder, the kernel gives me the following error:

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site‑packages\spyder\plugins\ipythonconsole\plugin.py", line 1223, in create_kernel_manager_and_kernel_client
File "C:\ProgramData\Anaconda3\lib\site‑packages\jupyter_client\manager.py", line 309, in start_kernel
kernel_cmd, kw = self.pre_start_kernel(**kw)
File "C:\ProgramData\Anaconda3\lib\site‑packages\jupyter_client\manager.py", line 256, in pre_start_kernel
File "C:\ProgramData\Anaconda3\lib\site‑packages\jupyter_client\connect.py", line 468, in write_connection_file
self.connection_file, cfg = write_connection_file(self.connection_file,
File "C:\ProgramData\Anaconda3\lib\site‑packages\jupyter_client\connect.py", line 138, in write_connection_file
with secure_write(fname) as f:
File "C:\ProgramData\Anaconda3\lib\contextlib.py", line 113, in enter
return next(self.gen)
File "C:\ProgramData\Anaconda3\lib\site‑packages\jupyter_core\paths.py", line 435, in secure_write
File "C:\ProgramData\Anaconda3\lib\site‑packages\jupyter_core\paths.py", line 377, in win32_restrict_file_to_user
win32security.SetFileSecurity(fname, win32security.DACL_SECURITY_INFORMATION, sd)
pywintypes.error: (5, 'SetFileSecurity', 'Access is denied.')

Jessyca Ramos
Gostaria de uma versão anterior para instalação para
I have two issuses:
(1) On opening Spyder, I'm told I have missing dependencies: pyls_spyder >=0.2.3 : 0.3.0 (NOK) (2) marshmallow is in my environment but I get an ImportError: cannot import name 'Schema' from 'marshmallow'. Advice welcome.
Hi, I just installed the standalone version of Spyder (4.2.3 on windows 10). What is the idea to add new packages, if needed? (So 'pip install package' is not working. Is that right?)
Ah...found it...
-> "if you want to use to other modules that don't come with our installer, you need to install Miniconda, create a conda environment after that with the packages you want to use, and finally connect Spyder to that env."
Maybe worth a mentioning at the installation guide, since the standalone installer is the currently recommended installation method. I can imagine that there are people not finding this chat in gitter and are just lost with this question...
But not to leave by blaming issues: Thanks you guys for the efford you put into Spyder. Its a great and highly appreciated tool. Don't let you fool by only getting issues as feedback ;)
My insert functions is not working ie the data is not getting inserted in the mysql table and other buttons are not appearing in the screen.......
rajesh kumar
Hi there, I have scikitlearn installed, yet I get the message No module named 'sklearn'
ModuleNotFoundError: No module named 'sklearn' ?
for idle this is not problem
but ı did not solve in spyder
I accidentally closed my panes on Spyder and and can't open them back, can anyone help?
Click 'View' which appears at the top of the window. Next select 'Panes'.
I'm building a dev setup with a remote kernel, and is currently connecting and running ipthon, but not sure how data file will be transfer, I have pretty heavy model and data, so if it have to be transfer from my spyder machine to kernel machine, will take forever. If you can point me to documentation will be really helpful
Manuel Rivera
Hello. I just installed Spyder for MAC on Big Sur 11.2.3. And it runs fine but i can not install packages using PIP. I keep getting this message /Applications/Spyder.app/Contents/MacOS/python: No module named pip, anyone knows what should I do?
3 replies
hi. where PROXY settings in Spyder&
Rogine Ceballos
May I know how to resolve AttributeError: 'int' object has no attribute 'strip'
HI, why can i no longer see the variables generated by a function?
@mczakk of what type are the variables? did you check the settings in the variable editor?
Question: Is there a reason why the remote-kernel setup cannot be done automated? It should be relatively easily possible to automatically login, start a kernel, fetch the ID and then connect that in the local Spyder, or am I mistaken?
Diarmuid Henry
I'm having trouble installing gurobipy in Spyder: can anyone help?
Ajo George
mysql is not working with spyder
Not able to install Spider Windows release on Windows ARM base by Windows 20H2. As Windows ARM support x64 emulation, would know how to waive this.
mysql.connector isnt recognized in python even after installing,please help !!!!!
@skjerns Any of the variables generated by the function called in the script. Yes i checked the settings in the variable editor, al options unchecked.
I am using Spyder on windows 10. The problem is Spyder does not launch the first time I click on it. In fact I have to launch it 6-7 times and after that it launches once.PS-I am using Spyder without Anaconda
How to upgrade to Spyder 4.2.5
And Phython 3.9
What version of spyder do you need to do machine learning?
Want the spyder for 32bit windows
hellooo... the help pane in my Spyder doesn't work as in the documentation "understanding help modes" first image. I am completely lost between linting, autocomplete, help and introspection settings, and then there is kite. Can anyone help clarify all these settings? I do not also find explanation of all settings in the docs page.
I can't install Spyder notebooks? Any suggestions?
python -m pip install spyder-notebook
works ok for me #%% and you get the cell
**if you are trying spyder-notebook on spyder 5 it shows as incompatible though..try spyder 4.2.5
I got a kernel after installation
An error ocurred while starting the kernel
An error ocurred while starting the kernel
Traceback (most recent call last):
File "C:\Users\rpacleb\Anaconda3\lib\site‑packages\spyder\plugins\ipythonconsole\plugin.py", line 1422, in create_kernel_manager_and_kernel_client
File "C:\Users\rpacleb\Anaconda3\lib\site‑packages\jupyter_client\manager.py", line 240, in start_kernel
File "C:\Users\rpacleb\Anaconda3\lib\site‑packages\jupyter_client\connect.py", line 470, in write_connection_file
self.connection_file, cfg = write_connection_file(self.connection_file,
File "C:\Users\rpacleb\Anaconda3\lib\site‑packages\jupyter_client\connect.py", line 141, in write_connection_file
with secure_write(fname) as f:
File "C:\Users\rpacleb\Anaconda3\lib\contextlib.py", line 113, in enter
return next(self.gen)
File "C:\Users\rpacleb\Anaconda3\lib\site‑packages\jupyter_core\paths.py", line 461, in secure_write
File "C:\Users\rpacleb\Anaconda3\lib\site‑packages\jupyter_core\paths.py", line 395, in win32_restrict_file_to_user
sd = win32security.GetFileSecurity(fname, win32security.DACL_SECURITY_INFORMATION)
pywintypes.error: (50, 'GetFileSecurity', 'The request is not supported.')
spyder 5 is buggy unfortunately and doesnt work with spyder-notebook, if you use spyder-notebook i suggest waiting for the compatibility patches