Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runfile with path containing apostrophe will not work #3788

Closed
jordanlui opened this issue Dec 6, 2016 · 2 comments
Closed

runfile with path containing apostrophe will not work #3788

jordanlui opened this issue Dec 6, 2016 · 2 comments

Comments

@jordanlui
Copy link

Description of your problem

Running Spyder Python code with F5 causes issues

What steps will reproduce the problem?

  1. Create a python file in a directory where path has apostrophe
  2. Run Code

What is the expected output? What do you see instead?
Expect code to run. See this instead:

runfile('D:/Jordan/'s Files/Documents/Dropbox/Coding/Project Euler/prob19.py', wdir='D:/Jordan/'s Files/Documents/Dropbox/Coding/Project Euler')
File "", line 1
runfile('D:/Jordan/'s Files/Documents/Dropbox/Coding/Project Euler/prob19.py', wdir='D:/Jordan/'s Files/Documents/Dropbox/Coding/Project Euler')
^
SyntaxError: invalid syntax

Please provide any additional information below
I notice that if I run my code out of a path that doesn't include apostrophe, that my code will run. Example: "C:/code" is a directory where things work.

Versions and main components

  • Spyder Version: 3.0.2
  • Python Version: Python Anaconda. Python 2.7.12
  • Operating system: Win 10 64 bit

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 : 1.5.1 (OK)
nbconvert >=4.0 : 4.2.0 (OK)
numpy >=1.7 : 1.11.1 (OK)
pandas >=0.13.1 : 0.18.1 (OK)
pep8 >=0.6 : 1.7.0 (OK)
pyflakes >=0.5.0 : 1.2.3 (OK)
pygments >=2.0 : 2.1.3 (OK)
pylint >=0.25 : 1.5.4 (OK)
qtconsole >=4.2.0: 4.2.1 (OK)
rope >=0.9.4 : 0.9.4 (OK)
sphinx >=0.6.6 : 1.4.1 (OK)
sympy >=0.7.3 : 1.0 (OK)

@ccordoba12
Copy link
Member

Thanks for reporting. we'll fix this for Spyder 3.1.

@dalthviz, please work on this one.

@ccordoba12
Copy link
Member

ccordoba12 commented Dec 6, 2016

Sorry @dalthviz, let's assign this one to Camilo.

@camendoza94, please work on this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants