question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SPYDER_DEBUG=3 is failing on Windows

See original GitHub issue

Description of your problem

What steps will reproduce the problem?

  1. Updated to 3.2 through “conda update --all”
  2. Open Spyder and try to run any script through F5
  3. Executed spyder --reset and spyder --default
  4. Also tried “conda uninstall spyder” and then “conda install spyder”
  5. Also restarted PC

What is the expected output? What do you see instead? I expect the script to run, instead I get “NameError: name ‘runfile’ is not defined”

Please provide any additional information below "C:.…>set SPYDER_DEBUG=3 C:.…>spyder --show-console

Traceback (most recent call last): File “C:\Users\gabriel\Anaconda3\Scripts\spyder-script.py”, line 5, in <module> sys.exit(spyder.app.start.main()) File “C:\Users\gabriel\Anaconda3\lib\site-packages\spyder\app\start.py”, line 136, in main mainwindow.main() File “C:\Users\gabriel\Anaconda3\lib\site-packages\spyder\app\mainwindow.py”, line 3025, in main or options.optimize) File “C:\Users\gabriel\Anaconda3\lib\site-packages\spyder\utils\windows.py”, line 33, in set_attached_console_visible return bool(ShowWindow(console_window_handle, flag[state])) KeyError: 3"

Not sure if related but I also get this when updating/installing/uninstalling Spyder through conda " INFO menuinst_win32:init(182): Menu: name: ‘Anaconda${PY_VER} ${PLATFORM}’, prefix: ‘C:\Users\xyz\Anaconda3’, env_name: ‘None’, mode: ‘None’, used_mode: ‘user’ "

Versions and main components

  • Spyder Version: 3.2.0
  • Python Version: 3.6.2
  • Qt Version: 5.6.2
  • PyQt Version: 5.6.0
  • Operating system: Windows 10 64 bits

Dependencies

Please go to the menu entry Help > Optional Dependencies (or Help > Dependencies), press the button Copy to clipboard and paste the contents below:

IPython >=4.0 : 6.1.0 (OK) cython >=0.21 : None (NOK) jedi >=0.9.0 : 0.10.2 (OK) nbconvert >=4.0 : 5.2.1 (OK) numpy >=1.7 : 1.13.1 (OK) pandas >=0.13.1 : 0.20.3 (OK) pycodestyle >=2.3: 2.3.1 (OK) pyflakes >=0.6.0 : 1.5.0 (OK) pygments >=2.0 : 2.2.0 (OK) pylint >=0.25 : 1.6.4 (OK) qtconsole >=4.2.0: 4.3.0 (OK) rope >=0.9.4 : 0.9.4-1 (OK) sphinx >=0.6.6 : 1.6.2 (OK) sympy >=0.7.3 : 1.1 (OK)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
ccordoba12commented, Jul 27, 2017

@dalthviz, I think @gabrielclow last comment provided a way to reproduce this problem. Please create a new conda environment and install Anaconda there, like this

conda create -n runfile-fix anaconda

Then run in that env

conda update --all

and see if you can run scripts in Spyder or not.

2reactions
ccordoba12commented, Jul 27, 2017

@dalthviz, please work on this one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pyqt "Not Responding" - ADocLib
when i am trying above code set SPYDERDEBUG3 and SPYDER code.it loads and shows Python stopped working. So what does it show in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found