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#43603 - [python-irc] irc.client.ServerConnection().part() missing a module

Attached to Project: Community Packages
Opened by Quentin Bazin (gnidmoo) - Wednesday, 28 January 2015, 01:33 GMT
Last edited by Kyle Keen (keenerd) - Saturday, 07 February 2015, 11:01 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Kyle Keen (keenerd)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

When I use this function, python 3 gave me the following error:

Traceback (most recent call last):
File "./pybot.py", line 108, in <module>
Bot().start()
File "/usr/lib/python3.4/site-packages/irc/bot.py", line 266, in start
super(SingleServerIRCBot, self).start()
File "/usr/lib/python3.4/site-packages/irc/client.py", line 1263, in start
self.manifold.process_forever()
File "/usr/lib/python3.4/site-packages/irc/client.py", line 280, in process_forever
self.process_once(timeout)
File "/usr/lib/python3.4/site-packages/irc/client.py", line 261, in process_once
self.process_data(i)
File "/usr/lib/python3.4/site-packages/irc/client.py", line 218, in process_data
c.process_data()
File "/usr/lib/python3.4/site-packages/irc/client.py", line 578, in process_data
self._process_line(line)
File "/usr/lib/python3.4/site-packages/irc/client.py", line 649, in _process_line
self._handle_event(event)
File "/usr/lib/python3.4/site-packages/irc/client.py", line 672, in _handle_event
self.irclibobj._handle_event(self, event)
File "/usr/lib/python3.4/site-packages/irc/client.py", line 400, in _handle_event
result = handler.callback(connection, event)
File "/usr/lib/python3.4/site-packages/irc/client.py", line 1226, in _dispatcher
method(connection, event)
File "./pybot.py", line 101, in on_pubmsg
self.rootCommands[command].execute(self, server, event)
File "./pybot.py", line 29, in execute
server.part(event.arguments[0].split(" ")[1])
File "/usr/lib/python3.4/site-packages/irc/client.py", line 864, in part
channels = always_iterable(channels)
File "/usr/lib/python3.4/site-packages/irc/jaraco.py", line 13, in always_iterable
if isinstance(item, six.string_types) or not hasattr(item, '__iter__'):
NameError: name 'six' is not defined

So I added 'import six' at the beginning of /usr/lib/python3.4/site-packages/irc/jaraco.py, and it works now.
This task depends upon

Closed by  Kyle Keen (keenerd)
Saturday, 07 February 2015, 11:01 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in python-irc 11.0.1-1

Loading...