Spyder: Directory name starting with number is not included into the path

Created on 4 Dec 2016  Â·  11Comments  Â·  Source: spyder-ide/spyder

Dear all,
I've noticed a funny problem for Spyder 3.5.2 in Windows 10. The directories' names starting with a number is not included into the path string as seen below.
First picture shows the existence of the directory and the Spyder.
Second picture shows that Spyder can not recognize the path.
__The solution I found ;__
Third picture shows that manuelly adding "\" is the solution.
2016_1204-spyder_windows10_directory_name_starting_numwe

However, manuel correction should not be the best way. Am I missing some point in the configuration of Spyder 3.5?


Versions and main components

  • Spyder Version: 3.5.2
  • Python Version: 3
  • Operating system: Windows 10

Dependencies

jedi >=0.8.1 : 0.9.0 (OK)
matplotlib >=1.0 : 1.5.3 (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.6.0 : 1.3.0 (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-1 (OK)
sphinx >=0.6.6 : 1.4.6 (OK)
sympy >=0.7.3 : 1.0 (OK)

IPython Console Bug

Most helpful comment

I appreciate your help.

Greetings from İstanbul.

++Ahmet

28 Ara 2016 19:23 tarihinde "Carlos Cordoba" notifications@github.com
yazdı:

Closed #3783 https://github.com/spyder-ide/spyder/issues/3783.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/spyder-ide/spyder/issues/3783#event-906657475, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AC96uWOPsmvCwcbBIyqrq8isBk3rtmFuks5rMoz3gaJpZM4LDh6y
.

All 11 comments

What's the translation of the WindowsError in your second screenshot?


@mariacamilaremolinagutierrez, please work on this one.

@ccordoba12 I have not been able to reproduce this error. The translation in the second screenshot is: "File name, directory name, or volume tag syntax is incorrect". But I could not get that error, it worked for me.

image

However I do no thave Windows 10, I have 8. I suspect this is not a spyder error but a python config one.

@ahmetanildindar could you please try executing all of that in the ipython console?

@mariacamilaremolinagutierrez, this problem could arise if you run a file from a memory stick.

Could you try that please?

Dear Maria,
It was not a memory stick.

I tried your test script in Windows 7 and Windows 10 and get the following error.
Windows 10
image

Windows 7
image

I tried the script in the console

C:\Users\User\Desktop\2016_1208-test
image

Windows 7
image

It seemss something is wrong.

However if I use "/" instead of "\", I get some point.

Windows 10
image

Windows 10
image

It is funny :)

++Ahmet

@ahmetanildindar I got the same errors and I had to use "/" instead of "\" and it worked. Did you try running the script inside spyder with the "/"? To see if there is in fact a problem with spyder (because now we now it works in the console alone).

I am sorry I can't help as fast, I haven't been able to reproduce the initial error message so I depend on what you run.

Seems problematic...

Windows 7
image

Windows 10
image

Using "/" instead "\" in Spyder works for Win 7 but not for Win 10

@ahmetanildindar It works in both, check that in Windows 10 it printed the directory, but you got a deprecation warning. I believe then your error with "\" is python related, not spyder. However in order to solve the "\" problem anywhere write an r before the string, something like r'C:\Users\MariaCamila' and that will let you use it.

ok, I will keep this in mind. Thanks for prompt replies.

Greetings from Istanbul.

++Ahmet

@ccordoba12 Could we close this issue?

Sure!

I appreciate your help.

Greetings from İstanbul.

++Ahmet

28 Ara 2016 19:23 tarihinde "Carlos Cordoba" notifications@github.com
yazdı:

Closed #3783 https://github.com/spyder-ide/spyder/issues/3783.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/spyder-ide/spyder/issues/3783#event-906657475, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AC96uWOPsmvCwcbBIyqrq8isBk3rtmFuks5rMoz3gaJpZM4LDh6y
.

Was this page helpful?
0 / 5 - 0 ratings