← Back to team overview

screenlets-dev team mailing list archive

[Bug 1048808] [NEW] Python ImportError: No module named screenlets

 

Public bug reported:

I just did a fresh install of Screenlets v0.1.5 from source on Debian
6.0 w/ Python 2.6.6.  Upon running screenlets, screenlets-manager, and
screenlets-daemon, they all failed with the same error message:

Traceback (most recent call last):
  File "/usr/share/screenlets-manager/screenlets-daemon.py", line 41, in <module>
    import screenlets
ImportError: No module named screenlets

I figured out that the screenlets module gets copied to
/usr/lib/python2.6/site-packages/screenlets.  Doing some research,
apparently the site-packages directory has been deprecated and replaced
by the dist-packages directory (on my system, site-packages isn't even
in the Python path).  For some reason, distutils is installing the
module into the site-packages directory instead of the dist-packages
directory.

By changing line 26 of the Makefile from:
python setup.py install --record=$(INSTALL_LOG) --prefix=$(PREFIX)
...to...
python setup.py install --record=$(INSTALL_LOG)

and running "sudo make install" again, Python installed the screenlets
package into the dist-packages directory instead, fixing the ImportError
problem.

This may just be a problem with my distribution of Linux and Python
version, IDK.

** Affects: screenlets
     Importance: Undecided
         Status: New


** Tags: debian

-- 
You received this bug notification because you are a member of
Screenlets Dev Team, which is subscribed to Screenlets.
https://bugs.launchpad.net/bugs/1048808

Title:
  Python ImportError: No module named screenlets

To manage notifications about this bug go to:
https://bugs.launchpad.net/screenlets/+bug/1048808/+subscriptions


Follow ups

References