We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I create a new module "mymodule" and put it near pavement.py (at the same directory with it), then I cannot import this module from pavement.py.
pavement.py
pavement.py: from mymodule import CONFIG
from mymodule import CONFIG
Python 2.7 Exception (Paver==1.2.4): ImportError: No module named mymodule
ImportError: No module named mymodule
Python 3.6 Exception (Paver==1.2.4): ModuleNotFoundError: No module named 'mymodule'
ModuleNotFoundError: No module named 'mymodule'
The text was updated successfully, but these errors were encountered:
@vartagg Is there anything else you've been doing to your PYTHONPATH? Are you using paver-minilib, installed Paver or virtualenv?
PYTHONPATH
paver-minilib
Sorry, something went wrong.
@Almad Only virtualenv used. Paver installed via pip
Code:
from paver.easy import * from modules.config import CONFIG @task @consume_args def echo(args): sh('echo {}'.format(args)) @task def print_config(): print(CONFIG)
Usage:
paver echo
@vartagg Is there anything else in the config than the CONFIG dictionary? Any imports there?
config
CONFIG
No branches or pull requests
When I create a new module "mymodule" and put it near
pavement.py
(at the same directory with it), then I cannot import this module frompavement.py
.pavement.py:
from mymodule import CONFIG
Python 2.7 Exception (Paver==1.2.4):
ImportError: No module named mymodule
Python 3.6 Exception (Paver==1.2.4):
ModuleNotFoundError: No module named 'mymodule'
The text was updated successfully, but these errors were encountered: