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

Unicode error supresses traceback #25

Closed
spyder-bot opened this issue Feb 16, 2015 · 4 comments
Closed

Unicode error supresses traceback #25

spyder-bot opened this issue Feb 16, 2015 · 4 comments

Comments

@spyder-bot
Copy link
Collaborator

From [email protected] on 2009-09-07T03:48:06Z

What steps will reproduce the problem?

  1. Execute a file with a unicode character in name or path (and an error)
    1. Watch the traceback 3. What is the expected output? What do you see instead? Expected a traceback with a link. Instead that line is missing from the
      traceback.

example:

execfile(u'/home/rikard/Pylab/test 1/test.py')

Traceback (most recent call last):

File "/home/rikard/Pylab/test 1/test.py", line 8, in 
 foo

NameError: name 'foo' is not defined

execfile(u'/home/rikard/Pylab/test b\xe4/test\xe4.py')

Traceback (most recent call last):

NameError: name 'foo' is not defined

execfile(u'/home/rikard/Pylab/test b\xe4/test0.py')
Traceback (most
recent call last):

NameError: name 'foo' is not defined

execfile(u'/home/rikard/Pylab/test 1/test\xe4.py')

Traceback (most recent call last):

NameError: name 'foo' is not defined


Also notice the lack of unicode characters in the execfile argument. That
works ok but it is hard to read. It would probably be completely gibberish
in some languages. What version of the product are you using? On what operating system? beta5 on XP (error also reproduced on beta 6 on linux).

Please provide any additional information below

.

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=25

@spyder-bot
Copy link
Collaborator Author

From pierre.raybaut on 2009-09-12T00:48:47Z

Status: Accepted

@spyder-bot
Copy link
Collaborator Author

From pierre.raybaut on 2009-09-12T06:28:32Z

I think it's related to Python itself, struggling to deal with unicode characters in
filename. Note that the problem won't happen if your script has a syntax error... And
try testing it outside Spyder, it's quite difficult!

However, I would recommend to avoid using paths with space or unicode chars because a
lot of softwares will have issues with these.
And, BTW, note that any other Python IDE will refuse to launch any script containing
unicode chars...

So, with Spyder, it works on almost all situations, that's already great because I
could have done like everybody else: ignoring this case.

Thanks for testing again!
Keep working with Spyder!
Cheers,
Pierre

Status: WontFix

@spyder-bot
Copy link
Collaborator Author

From [email protected] on 2009-09-12T07:14:30Z

I have iterated through pretty much every Python IDE and I agree with your assessment
that this (and other unicode-related issues) seems to be ignored. That is also why I
like spyder so much =). Our corporate network file system has a lot of unicode and
spaces in the standard directory structure (Swedish engineering company), but now
most stuff works reasonably well. I'm pushing for it to be accepted as our "official"
python IDE.

Python 3 is supposedly better at handling unicode so I'm hoping that it will work
even better when numpy gets ported that far. Until then I'm going to keep hunting
those little bugs that do pop up every now and then. Thanks for all your effort!

best regards
Rikard

@spyder-bot
Copy link
Collaborator Author

From pierre.raybaut on 2009-09-12T13:53:50Z

Python 3 will certainly help indeed, but numpy port for Python 3 isn't even scheduled
yet...

Thanks for your efforts as a beta tester and for Spyder promotion in your company :)

Best regards
Pierre

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

1 participant