-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: No module named plugins #36
Comments
I've run into this error as well. The plugins directory exists at Mailpile/plugins and contains what looks like a reasonable init.py, so it looks like a path problem. However, setting PYTHONPATH using $(make dev) as recommended in the README does not fix the problem. |
ok, works, but: The web interface is http://localhost:33411/ |
should do the trick. additionally you could set it to |
@modinfo how did you make it work? i have the same problem, that the plugins module cannot be found. |
Having the same problem as well. On a raspberry pi with debian 7.1 (wheezy?), and a laptop w/ ubuntu 13.04 I don't understand what helped you @modinfo since the comment was that setting the PYTHONPATH variable did not work. Anyone figured out a fix for this yet? |
Ok well, I got it working, ish. It doesn't work when I run a After I removed the folder /usr/local/lib/python2.7/dist-packages/mailpile- and just set the PYTHONPATH variable, running |
Thanks, @minshallj. Works for me too. I did I think the source of the problem is that setup.py doesn't correctly install the plugins directory, so Mailpile starts to run based off the partial install in dist-packages, but then dies when it can't find plugins. I'll see if I can figure out what should be added to setup.py. |
OK, here's a first attempt at a fix. This patch fixes this issue for me (Ubuntu 12.04), but I'm not sure that it's the right fix. It seems kind of dumb to have to list every module explicitly in setup.py. Anyone know a better way? Patch: rascalmicro@8282d0e This Stack Overflow post suggests that MANIFEST.in is the right way to install submodules recursively: http://stackoverflow.com/questions/10924885/is-it-possible-to-include-subdirectories-using-dist-utils-setup-py-as-part-of |
root@aaa:/tmp/Mailpile-master# make
/bin/sh: 1: ./scripts/breeder.py: not found
make: *** [combined] Error 127
root@aaa:/tmp/Mailpile-master# python setup.py install
running install
Checking .pth file support in /usr/local/lib/python2.7/dist-packages/
/usr/bin/python -E -c pass
TEST PASSED: /usr/local/lib/python2.7/dist-packages/ appears to support .pth files
running bdist_egg
running egg_info
creating mailpile.egg-info
writing mailpile.egg-info/PKG-INFO
writing top-level names to mailpile.egg-info/top_level.txt
writing dependency_links to mailpile.egg-info/dependency_links.txt
writing manifest file 'mailpile.egg-info/SOURCES.txt'
reading manifest file 'mailpile.egg-info/SOURCES.txt'
writing manifest file 'mailpile.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/mailpile
copying mailpile/init.py -> build/lib.linux-x86_64-2.7/mailpile
copying mailpile/commands.py -> build/lib.linux-x86_64-2.7/mailpile
copying mailpile/vcard.py -> build/lib.linux-x86_64-2.7/mailpile
copying mailpile/ui.py -> build/lib.linux-x86_64-2.7/mailpile
copying mailpile/app.py -> build/lib.linux-x86_64-2.7/mailpile
copying mailpile/search.py -> build/lib.linux-x86_64-2.7/mailpile
copying mailpile/httpd.py -> build/lib.linux-x86_64-2.7/mailpile
copying mailpile/jsontemplate.py -> build/lib.linux-x86_64-2.7/mailpile
copying mailpile/util.py -> build/lib.linux-x86_64-2.7/mailpile
copying mailpile/mailutils.py -> build/lib.linux-x86_64-2.7/mailpile
copying mailpile/pgpmime.py -> build/lib.linux-x86_64-2.7/mailpile
copying mailpile/imap_mailbox.py -> build/lib.linux-x86_64-2.7/mailpile
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/mailpile
copying build/lib.linux-x86_64-2.7/mailpile/init.py -> build/bdist.linux-x86_64/egg/mailpile
copying build/lib.linux-x86_64-2.7/mailpile/commands.py -> build/bdist.linux-x86_64/egg/mailpile
copying build/lib.linux-x86_64-2.7/mailpile/vcard.py -> build/bdist.linux-x86_64/egg/mailpile
copying build/lib.linux-x86_64-2.7/mailpile/ui.py -> build/bdist.linux-x86_64/egg/mailpile
copying build/lib.linux-x86_64-2.7/mailpile/app.py -> build/bdist.linux-x86_64/egg/mailpile
copying build/lib.linux-x86_64-2.7/mailpile/search.py -> build/bdist.linux-x86_64/egg/mailpile
copying build/lib.linux-x86_64-2.7/mailpile/httpd.py -> build/bdist.linux-x86_64/egg/mailpile
copying build/lib.linux-x86_64-2.7/mailpile/jsontemplate.py -> build/bdist.linux-x86_64/egg/mailpile
copying build/lib.linux-x86_64-2.7/mailpile/util.py -> build/bdist.linux-x86_64/egg/mailpile
copying build/lib.linux-x86_64-2.7/mailpile/mailutils.py -> build/bdist.linux-x86_64/egg/mailpile
copying build/lib.linux-x86_64-2.7/mailpile/pgpmime.py -> build/bdist.linux-x86_64/egg/mailpile
copying build/lib.linux-x86_64-2.7/mailpile/imap_mailbox.py -> build/bdist.linux-x86_64/egg/mailpile
byte-compiling build/bdist.linux-x86_64/egg/mailpile/init.py to init.pyc
byte-compiling build/bdist.linux-x86_64/egg/mailpile/commands.py to commands.pyc
byte-compiling build/bdist.linux-x86_64/egg/mailpile/vcard.py to vcard.pyc
byte-compiling build/bdist.linux-x86_64/egg/mailpile/ui.py to ui.pyc
byte-compiling build/bdist.linux-x86_64/egg/mailpile/app.py to app.pyc
byte-compiling build/bdist.linux-x86_64/egg/mailpile/search.py to search.pyc
byte-compiling build/bdist.linux-x86_64/egg/mailpile/httpd.py to httpd.pyc
byte-compiling build/bdist.linux-x86_64/egg/mailpile/jsontemplate.py to jsontemplate.pyc
byte-compiling build/bdist.linux-x86_64/egg/mailpile/util.py to util.pyc
byte-compiling build/bdist.linux-x86_64/egg/mailpile/mailutils.py to mailutils.pyc
byte-compiling build/bdist.linux-x86_64/egg/mailpile/pgpmime.py to pgpmime.pyc
byte-compiling build/bdist.linux-x86_64/egg/mailpile/imap_mailbox.py to imap_mailbox.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
installing scripts to build/bdist.linux-x86_64/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/scripts-2.7
copying and adjusting scripts/mailpile -> build/scripts-2.7
changing mode of build/scripts-2.7/mailpile from 644 to 755
creating build/bdist.linux-x86_64/egg/EGG-INFO/scripts
copying build/scripts-2.7/mailpile -> build/bdist.linux-x86_64/egg/EGG-INFO/scripts
changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/mailpile to 755
copying mailpile.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying mailpile.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying mailpile.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying mailpile.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/mailpile-0.0.0_dev20130803-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing mailpile-0.0.0_dev20130803-py2.7.egg
creating /usr/local/lib/python2.7/dist-packages/mailpile-0.0.0_dev20130803-py2.7.egg
Extracting mailpile-0.0.0_dev20130803-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding mailpile 0.0.0-dev20130803 to easy-install.pth file
Installing mailpile script to /usr/local/bin
Installed /usr/local/lib/python2.7/dist-packages/mailpile-0.0.0_dev20130803-py2.7.egg
Processing dependencies for mailpile==0.0.0-dev20130803
Finished processing dependencies for mailpile==0.0.0-dev20130803
root@aaa:~# mailpile
Traceback (most recent call last):
File "/usr/local/bin/mailpile", line 5, in
pkg_resources.run_script('mailpile==0.0.0-dev20130803', 'mailpile')
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 499, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1235, in run_script
execfile(script_filename, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/mailpile-0.0.0_dev20130803-py2.7.egg/EGG-INFO/scripts/mailpile", line 3, in
from mailpile.app import Main
File "/usr/local/lib/python2.7/dist-packages/mailpile-0.0.0_dev20130803-py2.7.egg/mailpile/init.py", line 3, in
import mailpile.app
File "/usr/local/lib/python2.7/dist-packages/mailpile-0.0.0_dev20130803-py2.7.egg/mailpile/app.py", line 40, in
from mailpile.commands import COMMANDS, Action, Help, Load, Rescan
File "/usr/local/lib/python2.7/dist-packages/mailpile-0.0.0_dev20130803-py2.7.egg/mailpile/commands.py", line 16, in
import mailpile.ui
File "/usr/local/lib/python2.7/dist-packages/mailpile-0.0.0_dev20130803-py2.7.egg/mailpile/ui.py", line 28, in
from mailpile.search import MailIndex
File "/usr/local/lib/python2.7/dist-packages/mailpile-0.0.0_dev20130803-py2.7.egg/mailpile/search.py", line 27, in
import mailpile.plugins as plugins
ImportError: No module named plugins
The text was updated successfully, but these errors were encountered: