-
Notifications
You must be signed in to change notification settings - Fork 51
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
Problem with Installation/Config #569
Comments
Yes, thanks for sending along the installation errors. It sheds light on this. It looks like there are two separate issues. One has to do with the error in But what is more likely causing the error when importing Googling for this error reveals that the problem might be solved by removing the option This may be a problem with our installation instructions, as --user can conflict with virtualenv functionality. |
Thanks for your help, Seb. Removing |
@ccosborne The issues with Thanks for bringing that to our attention! But it should not be blocking the execution of your Jupyter notebook. Do you still have problems with |
@sbenthall Unfortunately I get the same error message with |
Hello @ccosborne I see the issue. It's a problem with the configuration on our end. I'll work on this and let you know when I've pushed the change. |
Ok, I've pushed a change and tests are passing. |
Unfortunately I get the same warning message when running |
This is indeed an issue, and this pops up because the The tests will pass because they are running in the root dir so they can do
with Let me know if I am missing something here regarding the structure of bigbang (and thus the current structure). |
@MridulS Thanks so much for this analysis! Not a lot of thought was put into the location of the config file. One question though -- in another project I've been able to import sibling modules by adding them to the Ultimately, we use the Having them bundled with the I wonder @MridulS how you would approach this from the perspective of the on-line dashboard, which I believe is built on the package available on PyPI and not a development installation. Is there a better way to expose these configuration options? |
This does indeed work! But the issue here is that
This can live under the
Currently bigbang isn't usuable to build a dashboard or as an external library, (atleast while using the CLBE tutorial). The >>> from bigbang.archive import Archive
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/ms/mambaforge/envs/env-test-0/lib/python3.10/site-packages/bigbang/__init__.py", line 1, in <module>
from . import ingress
ImportError: cannot import name 'ingress' from partially initialized module 'bigbang' (most likely due to a circular import) (/Users/ms/mambaforge/envs/env-test-0/lib/python3.10/site-packages/bigbang/__init__.py) We need to change the structure and make sure the imports are fixed :) To get around for now I have moved around the files and fixed some imports locally. I can send the changes as a PR but it's pretty hackish and the config folder should probably change anyway. |
Thanks so much @MridulS This is all my fault -- I packaged BigBang for PyPI not long ago, but clearly made a mess of it. Any PRs you make along these lines would be greatly appreciated. I defer to your guidance on these things. |
Moves config.py and config.yaml into bigbang dir. Addresses #569
Hi there,
I am running into problems during installation when I execute the
python3 setup.py develop --user
command. For context, my previous steps are: (1) clone bigbang repo to remote server, (2) create virtualenv, and (3) executepip3 install -r requirements.txt
. When I runpython3 setup.py develop --user
, I get the output pasted below. After this, I add the virtualenv as a jupyter kernel, open an example notebook (Git Collection), and when I try to import the packages I get:ModuleNotFoundError: No module named 'config'
. I assume this is linked to the problems with executingsetup.py.
Do you know how to troubleshoot this? Thanks!
The text was updated successfully, but these errors were encountered: