Closed lvotapka closed 3 months ago
Since you used relative import (from .due ...
) you cannot just "run"/import that common_base.py
as an independent package/module. Try smth like python -c 'import seekr2.modules.common_base'
and it should work.
There is nothing really to address in duecredit
so I will close this issue but feel welcome to follow up if any further question.
Hello,
I've got a Git repo (https://github.com/seekrcentral/seekr2.git) that I'd like to add duecredit to, so that I and my users can cite our project and all our dependences.
First, I installed duecredit with
pip install duecredit
Then, within seekr2/seekr2/modules/, I've downloaded stub.py
wget -q -O due.py https://raw.githubusercontent.com/duecredit/duecredit/master/duecredit/stub.py
Then, since I have a module named common_base.py in that directory, I placed a citation in there:
But when I run, I get the following error and incomplete output:
My package also imports more than just numpy (matplotlib and scipy), and when I attempt to set:
export DUECREDIT_ENABLE=yes
I still cannot see my package or the other listed (besides numpy).