You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'm also having library loading issues. interpreting my file (which has @tasks inside) works fine, but shovel wont load my relative import. in my case its in the same directory, not under a "helpers".
[0] 05:04:07 {master} ~/.shovel$ shovel test.coverage
Traceback (most recent call last):
File "/Users/moribellamy/venv/shovel/bin/shovel", line 11, in <module>
sys.exit(run())
File "/Users/moribellamy/venv/shovel/lib/python2.7/site-packages/shovel/runner.py", line 70, in run
shovel.read(path, os.path.expanduser('~/'))
File "/Users/moribellamy/venv/shovel/lib/python2.7/site-packages/shovel/tasks.py", line 98, in read
tasks.extend(Task.load(absolute, base))
File "/Users/moribellamy/venv/shovel/lib/python2.7/site-packages/shovel/tasks.py", line 181, in load
imp.load_module(name, fobj, path, description)
File "/Users/moribellamy/.shovel/db.py", line 7, in <module>
from lib import nonce
ImportError: No module named lib
[1] 05:04:19 {master} ~/.shovel$ python test.py
[0] 05:04:26 {master} ~/.shovel$
My directory structure looks like this:
My
shovel.py
looks like this:Then within the directory
project
I runshovel use_class
. The error I get isModuleNotFoundError: No module named 'helpers'
However, if I drop shovel and simply run
python shovel.py
, it works just fine.e.g.
The text was updated successfully, but these errors were encountered: