-
Notifications
You must be signed in to change notification settings - Fork 4
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
No setup.py for installing #32
Comments
Hi, @Hororohoruru setup may not be required here as you can use Tell me if you succeeded or if you need more help. |
Hi @lkorczowski I have indeed installed the dependencies with the provided environment file, but when trying to run one of the notebooks, it raises an import error relative to the rasr package (utils module). Although all the requirements are installed, the README file specifies that the module needs to be installed after using the pip install -e . command, but this requires a setup.py file, afaik. |
Could you copy/past your NB error ? |
Yes: ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /home/dcas/j.torre-tresols/gitrepos/timeflux_rasr Edit: Sorry I just realized you are asking for the notebook error:
|
In that case, I believe it is just because the git repo is not yet in your python path (some IDE add it automaticaly).
at the beginning of your NB. Mind you that Config module requires that you have the data on your computer, and add your username and datapath here: Config is therefore a development module that will be removed when releasing. If you really want to use the NB on your data, I advice you to take the NB from the last version (waiting for review) |
The README file of the repo clearly states to run pip install on the root after creating the conda environment, I don't think there is a need to manually add the path to the repo. Although I can manually add the path to all the scripts I make that use this code, would not be easier to be able to add it to the installed packages and just import it directly? |
I'm not sure to understand completely
Activate on the root of the repo folder (not anywhere else) but yes, you are right. Activating the environment should also make the path available. Using
I believe you want to being able to do What we need to do before being able to import from anywhere :
|
I see, I think I understand now. Thank you very much for giving me the information! |
Hello, I just cloned the repo to try the analysis on some data, but I cannot seem to find the setup file to pip install the repo on the virtual environment.
Thank you.
The text was updated successfully, but these errors were encountered: