runfile is not defined ?
See original GitHub issueDescription of your problem
What steps will reproduce the problem?
- on latest spyder 2016-09-15 type a script on editor and run it (in winpython latest)
- 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
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:
- Created 7 years ago
- Comments:33 (26 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 thespyder/utils/site
subdirectory (which is not installed) with thespyder/utils/external
, perhaps the problem is a missingspyder/utils/site/__init__.py
file?When running Spyder from a git clone using
bootstrap.py
, the error disappears.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