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

'Report issue' doesn't work in Python 3 #1480

Closed
spyder-bot opened this issue Feb 17, 2015 · 2 comments
Closed

'Report issue' doesn't work in Python 3 #1480

spyder-bot opened this issue Feb 17, 2015 · 2 comments

Comments

@spyder-bot
Copy link
Collaborator

From tak...@gmail.com on 2013-07-05T17:42:02Z

IPython has a Python-3 compatible version of pickleshare.py if that helps.

What steps will reproduce the problem?

  1. Go to ? > Report issue...

Traceback (most recent call last):
File "/usr/local/lib/python3.2/dist-packages/spyderlib/spyder.py", line 1605, in report_issue
url.addEncodedQueryItem("comment", urllib.quote(issue_template))
AttributeError: 'module' object has no attribute 'quote'
Traceback (most recent call last):
File "/usr/local/lib/python3.2/dist-packages/spyderlib/spyder.py", line 1605, in report_issue
url.addEncodedQueryItem("comment", urllib.quote(issue_template))
AttributeError: 'module' object has no attribute 'quote'
Traceback (most recent call last):
File "/usr/local/lib/python3.2/dist-packages/spyderlib/widgets/editor.py", line 194, in run
self.submods = get_preferred_submodules()
File "/usr/local/lib/python3.2/dist-packages/spyderlib/utils/module_completion.py", line 288, in get_preferred_submodules
modules_db['submodules'] = submodules
File "/usr/local/lib/python3.2/dist-packages/spyderlib/utils/external/pickleshare.py", line 94, in setitem
pickled = pickle.dump(value, fil.open('w'))
TypeError: must be str, not bytes

(By the way, I understand from Carlos that Python 3 support is a current focus, but let me know if you want me to lay off filing bugs for it.)

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

@spyder-bot
Copy link
Collaborator Author

From tak...@gmail.com on 2013-07-08T14:38:47Z

Here's a patch.

The pickleshare error was actually something different, affecting code inspection. I've borrowed a couple of changes from IPython's copy of pickleshare, and it seems to be working now.

Attachment: py3fixes.patch

@spyder-bot
Copy link
Collaborator Author

From pierre.raybaut on 2013-08-12T12:15:48Z

This issue was updated by revision 3ebffbc9298b .

Status: Fixed

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