Re: Problems with Debian finding modules
[email protected] (Jason R. Mastaler) Sun, 29 Oct 2006 17:45:33 -0700
| Newsgroups | gmane.mail.spam.tmda.devel |
|---|---|
| Message-ID | <[email protected]> |
"Todd A. Jacobs" <[email protected]> writes: > I'm trying to roll my own TMDA .debs, and am running into this: > > Traceback (most recent call last): > File "/usr/bin/tmda-sendmail", line 40, in ? > from TMDA import Version > ImportError: No module named TMDA There is an "official" .deb for TMDA 1.0.3 - perhaps you could compare yours to that one, or use that one as a base? > Also, AFAICT the debian-python policy says that byte-compiled files > shouldn't be in .deb packages and that dh_python will strip out the > pyc files anyway. Could part of the problem be that compileall isn't > being run as a post-install routine? TMDA will work fine with just the .py files there. The .pyc files just make things faster, but python uses either/or, and if both are there, it uses .pyc.