Community Packages

Please read this before reporting a bug:
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. 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#33340 - [anki] breaks on upgrade from 2.03-1 to 2.0.4-1

Attached to Project: Community Packages
Opened by Joshua Hunt (Snark1994) - Tuesday, 08 January 2013, 22:18 GMT
Last edited by Sergej Pupykin (sergej) - Wednesday, 09 January 2013, 13:44 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Upgrade from 2.0.3-1 to 2.0.4-1 seems to break Anki. I get output on the command-line which was there before:

[CODE]Please build and install the PortAudio Python bindings first.[/CODE]

and I get a popup saying:

[QUOTE]Error during startup:
Traceback (most recent call last):
File "/usr/share/anki/aqt/main.py", line 42, in __init__
self.setupAddons()
File "/usr/share/anki/aqt/main.py", line 500, in setupAddons
import aqt.addons
File "/usr/share/anki/aqt/addons.py", line 13 in <module>
from aqt.downloader import download
File "/usr/share/anki/aqt/downloader.py", line 7, in <module>
from anki.sync import httpCon
File "/usr/share/anki/anki/sync.py", line 22, in <module>
_proxy_info_from_environment =
httplib2.ProxyInfo.from_environment
AttributeError: 'module' object has no attribute 'ProxyInfo'[/QUOTE]

If there's any other info I can provide, please let me know.
This task depends upon

Closed by  Sergej Pupykin (sergej)
Wednesday, 09 January 2013, 13:44 GMT
Reason for closing:  Fixed
Comment by Sergej Pupykin (sergej) - Wednesday, 09 January 2013, 09:21 GMT
Probably python2-pyaudio from aur will help.
Comment by Joshua Hunt (Snark1994) - Wednesday, 09 January 2013, 09:29 GMT
No, it doesn't - that message was printed with anki 2.0.3-1 as well, and it worked fine. I have also now installed python2-pyaudio and can confirm that it doesn't fix the problem.
Comment by Holly (Hwesta) - Wednesday, 09 January 2013, 11:28 GMT
I have the same problem - anki 2.0.4 errors, anki 2.0.3 doesn't have the error.

I submitted a bug with upstream here: https://anki.lighthouseapp.com/projects/100923/tickets/466-error-on-boot-attributeerror-module-object-has-no-attribute-proxyinfo

Comment by Joshua Hunt (Snark1994) - Wednesday, 09 January 2013, 13:31 GMT
I've found the problem - it's not an upstream bug, it's a packaging bug. The permissions on the files in /usr/share/anki/thirdparty/httplib2 are set to 640, not 644. If you change the permissions on those files to 644 then Anki starts correctly.
Comment by Sergej Pupykin (sergej) - Wednesday, 09 January 2013, 13:44 GMT
Thank you. Btw these permissions are from upstream tarball and were not changed in pkgbuild.

Loading...