Your message dated Sun, 26 Jan 2014 01:44:11 +0100
with message-id <[email protected]>
and subject line Re: Bug#736143: anki: Crashes at startup with AttributeError
has caused the Debian Bug report #736143,
regarding anki: Crashes at startup with AttributeError
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
736143: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=736143
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: anki
Version: 2.0.20+dfsg-2
Severity: important

Dear Maintainer,
When launching Anki, I get the following traceback  as a pop-up dialog (I
believe that's the actual error that was blocked by bug #734465):
Error during startup:
Traceback (most recent call last):
  File "/usr/share/anki/aqt/main.py", line 54, in __init__
    self.setupAddons()
  File "/usr/share/anki/aqt/main.py", line 552, 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 32, in <module>
    _proxy_info_from_environment = httplib2.ProxyInfo.from_environment
AttributeError: type object 'ProxyInfo' has no attribute 'from_environment'

additionally, the following traceback is printed in the running terminal:
Traceback (most recent call last):
  File "/usr/bin/anki", line 8, in <module>
    aqt.run()
  File "/usr/share/anki/aqt/__init__.py", line 247, in run
    mw = aqt.main.AnkiQt(app, pm, args)
  File "/usr/share/anki/aqt/main.py", line 57, in __init__
    sys.exit(1)
NameError: global name 'sys' is not defined



-- System Information:
Debian Release: jessie/sid
  APT prefers testing-proposed-updates
  APT policy: (500, 'testing-proposed-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.12-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages anki depends on:
ii  libjs-jquery          1.7.2+dfsg-3
ii  libjs-jquery-flot     0.8.1+dfsg-2
ii  libjs-jquery-ui       1.10.1+dfsg-1
ii  python-beautifulsoup  3.2.1-1
ii  python-httplib2       0.8-2
ii  python-pyaudio        0.2.7-2
ii  python-qt4            4.10.3+dfsg1-1
ii  python-simplejson     3.3.1-2
ii  python-sqlalchemy     0.8.4-1
pn  python:any            <none>

Versions of packages anki recommends:
ii  python-matplotlib  1.3.1-1

Versions of packages anki suggests:
ii  dvipng  1.14-2

--- End Message ---
--- Begin Message ---
Thank you for testing again and reporting the new message.

First:

On Mon, Jan 20, 2014 at 09:32:07AM +0100, Albin wrote:
> additionally, the following traceback is printed in the running terminal:
> Traceback (most recent call last):
>   File "/usr/bin/anki", line 8, in <module>
>     aqt.run()
>   File "/usr/share/anki/aqt/__init__.py", line 247, in run
>     mw = aqt.main.AnkiQt(app, pm, args)
>   File "/usr/share/anki/aqt/main.py", line 57, in __init__
>     sys.exit(1)
> NameError: global name 'sys' is not defined

That is again another bug in the error path where a required package was
not imported. I will deal with it, however it is inconsequential for this
report.


Now the real error:

> Error during startup:
> Traceback (most recent call last):
>   File "/usr/share/anki/aqt/main.py", line 54, in __init__
>     self.setupAddons()
>   File "/usr/share/anki/aqt/main.py", line 552, 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 32, in <module>
>     _proxy_info_from_environment = httplib2.ProxyInfo.from_environment
> AttributeError: type object 'ProxyInfo' has no attribute 'from_environment'

This just does not make any sense. It comes from a piece of code at the
start of anki/sync.py that tries to be compatible to different versions
of httplib2:

| try:
|     # httplib2 >=0.7.7
|     _proxy_info_from_environment = httplib2.proxy_info_from_environment
|     _proxy_info_from_url = httplib2.proxy_info_from_url
| except AttributeError:
|     # httplib2 <0.7.7
|     _proxy_info_from_environment = httplib2.ProxyInfo.from_environment
|     _proxy_info_from_url = httplib2.ProxyInfo.from_url

So it has not found the symbol httplib2.proxy_info_from_environment (or
httplib2.proxy_info_from_url) which certainly does exist in httplib2 0.8
which you do have installed:

> Versions of packages anki depends on:
[...]
> ii  python-httplib2       0.8-2

The real problem is, you do not have a Python interpreter package
installed:

> pn  python:any            <none>

It is not possible to install the anki package like this or remove its
dependencies afterwards without forcing it. Obviously you must have some
other Python interpreter installed or it would not run at all, and that
Python does not work correctly.

Either that or you had some hard disk corruption which broke your OS
install. In any case it is not a bug in the Debian package of anki so
I'm closing this again.

--- End Message ---

Reply via email to