Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#34953 - [bpython] bpython-urwid incompatible with Python 3

Attached to Project: Community Packages
Opened by Alain Kalker (ackalker) - Thursday, 25 April 2013, 16:13 GMT
Last edited by Balló György (City-busz) - Friday, 13 December 2013, 16:14 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Jelle van der Waa (jelly)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Running bpython-urwid gives an error which to me indicates that it isn't compatible with Python 3.
Please consider removing python-urwid support from the package (as was done with pygtk support in bpython2).

Additional info:
* package version(s)
bpython 0.12-2
python-urwid 1.1.1-1
* config and/or log files etc.


Steps to reproduce:

$ bpython-urwid

Traceback (most recent call last):
File "/usr/bin/bpython-urwid", line 9, in <module>
load_entry_point('bpython==0.12', 'console_scripts', 'bpython-urwid')()
File "/usr/lib/python3.3/site-packages/bpython/urwid.py", line 1302, in main
myrepl.main_loop.screen.run_wrapper(run_with_screen_before_mainloop)
File "/usr/lib/python3.3/site-packages/urwid/raw_display.py", line 242, in run_wrapper
return fn()
File "/usr/lib/python3.3/site-packages/bpython/urwid.py", line 1253, in run_with_screen_before_mainloop
myrepl.main_loop.run()
File "/usr/lib/python3.3/site-packages/urwid/main_loop.py", line 270, in run
self._run()
File "/usr/lib/python3.3/site-packages/urwid/main_loop.py", line 337, in _run
self.event_loop.run()
File "/usr/lib/python3.3/site-packages/urwid/main_loop.py", line 708, in run
self._loop()
File "/usr/lib/python3.3/site-packages/urwid/main_loop.py", line 783, in _loop
alarm_callback()
File "/usr/lib/python3.3/site-packages/urwid/main_loop.py", line 156, in cb
callback(self, user_data)
File "/usr/lib/python3.3/site-packages/bpython/urwid.py", line 1292, in start
myrepl.start()
File "/usr/lib/python3.3/site-packages/bpython/urwid.py", line 935, in start
self.prompt(False)
File "/usr/lib/python3.3/site-packages/bpython/urwid.py", line 969, in prompt
caption = ('prompt', self.ps1.decode('ascii'))
AttributeError: 'str' object has no attribute 'decode'
This task depends upon

Closed by  Balló György (City-busz)
Friday, 13 December 2013, 16:14 GMT
Reason for closing:  Upstream
Comment by Alain Kalker (ackalker) - Thursday, 25 April 2013, 16:27 GMT
Oops, I found that str.decode() support was removed starting with Python 3.2, so this is not a generic "2to3" problem, and should be dealt with upstream.
Comment by Alain Kalker (ackalker) - Thursday, 25 April 2013, 16:43 GMT
Problem exists also in bpython-hg from the AUR. Reporting upstream.
Comment by Alain Kalker (ackalker) - Thursday, 25 April 2013, 16:52 GMT Comment by Jelle van der Waa (jelly) - Sunday, 28 April 2013, 18:50 GMT
I'll patch the issue when upstream has provided a patch.
Comment by Alain Kalker (ackalker) - Sunday, 28 April 2013, 22:57 GMT
Thanks for looking into this :)
Comment by Alexander F. Rødseth (xyproto) - Sunday, 08 December 2013, 13:48 GMT
Upstream has fixed/resolved this one now (2013-11-04).
Comment by Balló György (City-busz) - Friday, 13 December 2013, 16:14 GMT
It has not been fixed yet. Anyway, it's an upstream bug, so we can't do anything.

Loading...