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.

runfile is not defined ?

See original GitHub issue

Description of your problem

What steps will reproduce the problem?

  1. on latest spyder 2016-09-15 type a script on editor and run it (in winpython latest)
  2. ipython console says “runfile” doesn’t exist ?

What is the expected output? What do you see instead?

runfile is found and there is no issue

Please provide any additional information below spyder-20160917runfile

Versions and main components

  • Spyder Version: github 2016-09-16
  • Python Version: 3.5
  • Operating system: Windows10 (winpython)

Dependencies

Please go to the menu entry Help > Optional Dependencies (or Help > Dependencies), press the button Copy to clipboard and paste the contents below: jedi >=0.8.1 : 0.9.0 (OK) matplotlib >=1.0 : 2.0.0b4 (OK) nbconvert >=4.0 : 4.2.0 (OK) numpy >=1.7 : 1.11.1 (OK) pandas >=0.13.1 : 0.19.0rc1 (OK) pep8 >=0.6 : 1.7.0 (OK) pyflakes >=0.6.0 : 1.3.0 (OK) pygments >=2.0 : 2.1.3 (OK) pylint >=0.25 : 1.6.4 (OK) qtconsole >=4.2.0: 4.2.1 (OK) rope >=0.9.4 : 0.9.4-1 (OK) sphinx >=0.6.6 : 1.4.6 (OK) sympy >=0.7.3 : 1.0 (OK)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:33 (26 by maintainers)

github_iconTop GitHub Comments

2reactions
jitseniesencommented, Sep 19, 2016

I have the same problem with Spyder version 3.0.0b7 installed with conda. I think the problem is that spyder/utils/site/sitecustomize.py is not installed. I don’t understand how the package get built, but comparing the spyder/utils/site subdirectory (which is not installed) with the spyder/utils/external, perhaps the problem is a missing spyder/utils/site/__init__.py file?

When running Spyder from a git clone using bootstrap.py, the error disappears.

1reaction
cmbowyer13commented, Sep 15, 2017

I’m having the same issue with Spyder 3.2.3 with python 3.6 Traceback (most recent call last):

File “<ipython-input-1-f59cb2b0fa53>”, line 1, in <module> runfile(‘/Users/calebbowyer/Documents/Python/HW3_py3.py’, wdir=‘/Users/calebbowyer/Documents/Python’)

NameError: name ‘runfile’ is not defined

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python Error name 'runfile' is not defined in Spyder
I get error: name 'runfile' is not defined in Spyder (Python 2.7) although I have change my working directory where I save my...
Read more >
Spyder gives "error NameError: name 'runfile' is not defined ...
If you search for it, this error has been reported many times before from different causes (perhaps the most prolific being #3428 );...
Read more >
NameError: name 'runfile' is not defined - Google Groups
The simplest explanation for this type of error is that something in the path has the same name as the intended command. Try...
Read more >
[spyder\] Re\: NameError\: name 'runfile' is not defined
2.amd64\Lib\site-packages\spyderlib\widgets\externalshell into my PYTHONPATH environmental variable. It seems as thought python could not find the sitecustomize ...
Read more >
I am using spyder and am getting an error when trying to ...
1 Answer. Hi, According to your description, if you can't import eikon, that means there is a mismatch between the Python distrib you...
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