spyder: runfile is not defined ?

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)

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 33 (26 by maintainers)

Most upvoted 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 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.

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/site directory didn’t get packaged because of the lack of an __init__.py file in that dir (as @jitseniesen suggested 😉.

I’ll solve this problem right away and release beta8!