spyder: runfile is not defined ?
Description 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)
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 33 (26 by maintainers)
I have the same problem with Spyder version 3.0.0b7 installed with conda. I think the problem is that
spyder/utils/site/sitecustomize.pyis not installed. I don’t understand how the package get built, but comparing thespyder/utils/sitesubdirectory (which is not installed) with thespyder/utils/external, perhaps the problem is a missingspyder/utils/site/__init__.pyfile?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
Yes, the problem is the
spyder/utils/sitedirectory didn’t get packaged because of the lack of an__init__.pyfile in that dir (as @jitseniesen suggested 😉.I’ll solve this problem right away and release beta8!