NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

misc/50250: py27-anki2 missing dependency



>Number:         50250
>Category:       misc
>Synopsis:       py27-anki2 missing dependency
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 16 21:00:00 +0000 2015
>Originator:     Shaun Smiley
>Release:        2015Q2-x86_64
>Organization:
self
>Environment:
Darwin L2067532491-ss.local 14.5.0 Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64
>Description:
sudo pkgin install py27-anki2

#try to run and get error: 

Traceback (most recent call last):
  File "./anki", line 5, in <module>
    import aqt
  File "/opt/pkg/share/anki/aqt/__init__.py", line 12, in <module>
    from aqt.qt import *
  File "/opt/pkg/share/anki/aqt/qt.py", line 10, in <module>
    from anki.utils import isWin, isMac
  File "/opt/pkg/share/anki/anki/__init__.py", line 34, in <module>
    from anki.storage import Collection
  File "/opt/pkg/share/anki/anki/storage.py", line 11, in <module>
    from anki.db import DB
  File "/opt/pkg/share/anki/anki/db.py", line 11, in <module>
    from sqlite3 import dbapi2 as sqlite
  File "/opt/pkg/lib/python2.7/sqlite3/__init__.py", line 24, in <module>
    from dbapi2 import *
  File "/opt/pkg/lib/python2.7/sqlite3/dbapi2.py", line 28, in <module>
    from _sqlite3 import *
ImportError: No module named _sqlite3

>How-To-Repeat:

>Fix:
The problem is that the python sqlite module is not being installed as a dependency.  

Installing like so fixes the issue and anki then runs well: 

sudo pkgin install py27-sqlite3



Home | Main Index | Thread Index | Old Index