On Tuesday, March 25, 2014 8:36:17 PM UTC, Ken wrote:
> Hi,
>
> I'm running Ubuntu 10.04, Python 2.6.5, and get the above error message when
> I try to start the program. I got an error on the install:
>
> /home/coconino$mnemosyne
> 'import site' failed; use -v for traceback
> Traceback (most recent call last):
> File "/usr/local/bin/mnemosyne", line 4, in <module>
> import pkg_resources
> ImportError: No module named pkg_resources
>
> I had earlier received the following error on the install:
>
> Processing Mnemosyne-2.2.1-py2.6.egg
> removing '/usr/local/lib/python2.6/dist-packages/Mnemosyne-2.2.1-py2.6.egg'
> (and everything under it)
> creating /usr/local/lib/python2.6/dist-packages/Mnemosyne-2.2.1-py2.6.egg
> Extracting Mnemosyne-2.2.1-py2.6.egg to /usr/local/lib/python2.6/dist-packages
> SyntaxError: ('invalid syntax',
> ('/usr/local/lib/python2.6/dist-packages/Mnemosyne-2.2.1-py2.6.egg/mnemosyne/libmnemosyne/databases/SQLite.py',
> 576, 55, ' existing_tag_for_name = {tag.name : tag for tag in
> self.tags()}\n'))
>
> Mnemosyne 2.2.1 is already the active version in easy-install.pth
> Installing mnemosyne-webserver script to /usr/local/bin
> Installing mnemosyne script to /usr/local/bin
>
> Installed /usr/local/lib/python2.6/dist-packages/Mnemosyne-2.2.1-py2.6.egg
> Processing dependencies for Mnemosyne==2.2.1
> Finished processing dependencies for Mnemosyne==2.2.1
>
> I noticed from other posts that this error is often connected to setuptools,
> so here is the apt-get on that:
>
> /home/coconino$sudo apt-get install python-pkg-resources
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> python-pkg-resources is already the newest version.
> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> /home/coconino$sudo apt-get install python-setuptools
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> python-setuptools is already the newest version.
> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
>
> Finally, I should note that I have several versions of python installed. but
> none are old:
>
> /home/coconino$ls -l /usr/bin/*python*
> -rwxr-xr-x 1 root root 7805 2010-02-22 12:56 /usr/bin/dh_python
> -rwxr-xr-x 1 root root 94 2014-02-27 20:13 /usr/bin/idle-python2.6
> -rwxr-xr-x 1 root root 94 2012-10-23 21:46 /usr/bin/idle-python3.1
> -rwxr-xr-x 1 root root 983 2010-04-25 04:20 /usr/bin/ipython
> -rwxr-xr-x 1 root root 331 2010-04-25 04:20 /usr/bin/ipython2.6
> -rwxr-xr-x 1 root root 316 2010-04-25 04:20 /usr/bin/ipython-wx
> -rwxr-xr-x 1 root root 227 2010-04-25 04:20 /usr/bin/ipythonx
> lrwxrwxrwx 1 root root 18 2014-03-24 20:37 /usr/bin/python ->
> /usr/bin/python2.6
> lrwxrwxrwx 1 root root 9 2013-09-21 15:51 /usr/bin/python2 -> python2.6
> -rwxr-xr-x 1 root root 178 2009-06-02 13:54 /usr/bin/python2.5-pyrexc
> -rwxr-xr-x 1 root root 2292528 2014-02-27 20:16 /usr/bin/python2.6
> lrwxrwxrwx 1 root root 9 2013-09-21 15:51 /usr/bin/python2.6.5 ->
> python2.6
> -rwxr-xr-x 1 root root 1452 2014-02-27 20:13 /usr/bin/python2.6-config
> -rwxr-xr-x 1 root root 4921250 2014-02-27 20:13 /usr/bin/python2.6-dbg
> -rwxr-xr-x 1 root root 1456 2014-02-27 20:13 /usr/bin/python2.6-dbg-config
> -rwxr-xr-x 1 root root 178 2009-06-02 13:54 /usr/bin/python2.6-pyrexc
> -rwxr-xr-x 1 root root 2563016 2014-02-04 17:09 /usr/bin/python2.7
> lrwxrwxrwx 1 root root 9 2010-12-15 19:43 /usr/bin/python3 -> python3.1
> -rwxr-xr-x 1 root root 2465316 2012-10-23 21:48 /usr/bin/python3.1
> -rwxr-xr-x 1 root root 5835831 2012-10-23 21:28 /usr/bin/python3.1-dbg
> -rwxr-xr-x 1 root root 1433 2012-10-23 21:46 /usr/bin/python3.1-dbg-config
> lrwxrwxrwx 1 root root 13 2013-11-23 19:13 /usr/bin/python3-dbg ->
> python3.1-dbg
> lrwxrwxrwx 1 root root 20 2013-11-23 19:13 /usr/bin/python3-dbg-config
> -> python3.1-dbg-config
> lrwxrwxrwx 1 root root 30 2013-03-10 16:24 /usr/bin/pythoncad ->
> ../share/pythoncad/gtkpycad.py
> lrwxrwxrwx 1 root root 16 2013-09-21 15:51 /usr/bin/python-config ->
> python2.6-config
> lrwxrwxrwx 1 root root 13 2013-11-23 19:12 /usr/bin/python-dbg ->
> python2.6-dbg
> lrwxrwxrwx 1 root root 20 2013-11-23 19:12 /usr/bin/python-dbg-config ->
> python2.6-dbg-config
>
> and the default is 2.6.5, which has developed an error on even being invoked:
>
> /home/coconino$python -v
> # installing zipimport hook
> import zipimport # builtin
> # installed zipimport hook
> 'import site' failed; traceback:
> ImportError: No module named site
> Python 2.6.5 (r265:79063, Feb 27 2014, 19:44:14)
> [GCC 4.4.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>>
>
> Thanks for any help,
> Ken
Hi Peter,
I tried it, it ran, but still no mnemosyne.
====
An unexpected error has occurred.
Please forward the following info to the developers:
Traceback (innermost last):
File "/usr/local/bin/mnemosyne", line 5, in <module>
pkg_resources.run_script('Mnemosyne==2.2.1', 'mnemosyne')
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 461, in
run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1194, in
run_script
execfile(script_filename, namespace, namespace)
File
"/usr/local/lib/python2.6/dist-packages/Mnemosyne-2.2.1-py2.6.egg/EGG-INFO/scripts/mnemosyne",
line 155, in <module>
debug_file=options.debug_file)
File
"/usr/local/lib/python2.6/dist-packages/Mnemosyne-2.2.1-py2.6.egg/mnemosyne/libmnemosyne/__init__.py",
line 164, in initialise
self.register_components()
File
"/usr/local/lib/python2.6/dist-packages/Mnemosyne-2.2.1-py2.6.egg/mnemosyne/libmnemosyne/__init__.py",
line 215, in register_components
exec("from %s import %s" % (module_name, class_name))
File "<string>", line 1, in <module>
File
"/usr/local/lib/python2.6/dist-packages/Mnemosyne-2.2.1-py2.6.egg/mnemosyne/libmnemosyne/databases/SQLite.py",
line 576
existing_tag_for_name = {tag.name : tag for tag in self.tags()}
====
I even tried apt-get remove and purge, then install again. Each time the result
was the same. Also, I uninstalled all pythons except 2.6.5 (the default install
with Ubuntu). That at least got rid of the error/warning on starting python.
Thanks,
Ken
--
You received this message because you are subscribed to the Google Groups
"mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mnemosyne-proj-users/2197c4cb-867d-4bc3-8149-9d42f72c1700%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.