-
Notifications
You must be signed in to change notification settings - Fork 2
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
Adding Own Environment Install Error #67
Comments
hi, can you provide the exact sequence of command lines you executed? In case you tried with jupyter, can you please try first with a python/ipython session? |
Here are my commands, I also attached the errors that come up (requirements.txt has all the dependencies I need to install, I can provide that if you'd like as well): ERROR: Command errored out with exit status 1: Building wheel for scikit-learn (setup.py) ... error pip install numpy --user Installing collected packages: numpy pip install -r requirements.txt --user (Same error as above) (Same error as above) I'm not familiar with the NERSC environment, can you elaborate on how to try this with a python/ipython session? |
Let's start from the beginning - we really wouldn't recommend doing
If that is successful, then you can add additional packages - I'll edit this further, but post this now so you can get started. At that point, you have an environment that already has numpy installed, as is scikit-learn, so you don't need to install them again. You can really just install cesium, which is available on conda-forge, by doing: |
Where would I find my .bashrc? Also, if I wanted to use cesium, would the file that uses it need to be within the new folder that this environment created in my $HOME? |
Look inside your $HOME, so do: I'm not sure about the 2nd question - are you referring to script or notebooks that use cesium? Those scripts or notebooks could be anywhere on Cori - they don't have to be located in or near your new environment. |
I ran into this problem earlier with Renee... I dont seem to have a .bashrc file. I confirmed that when I run echo $SHELL it returns bin/bash. (/global/homes/c/cstock/mydesc_new) cstock@cori02:~> ls -a $HOME/.bashrc I only ask my second question because when I run the notebook that contains the cesium import it still does not run. I get "no module named 'cesium'" as my error, which has been the error the entire time. |
I think you can go ahead and create $HOME/.bashrc and then just add this one line to it:
basically, point it at the directory where you cloned desc-python. |
I have done all these steps and it has said I have installed cesium correctly. I created a .bashrc file and added that line to it (it has since disappeared) and yet my file is still not able to import cesium correctly. I'm not getting any errors except when I run my notebook which tries to import cesium. |
As a check: You will need to make sure you are using a Jupyter kernel for your custom environment. |
Hi @CameronStockton Let's start by making sure things are working at the command line on Cori and then get things working on jupyter. If after all that, it does work.. then I would open up a fresh |
@heather999 Here is my output from your steps:
I ran which python and here is my output: /global/common/software/lsst/common/miniconda/py3.7-4.7.12.1-v2/envs/desc/bin/python I also just tried to install cesium again from your command above and try to import cesium again and it did not work either. |
It's difficult to read the above due the formatting. If you can put code in code blocks it will format correctly, see the After you updated your We might want to try scheduling 15 minutes on zoom to get this cleared up. I'm in US Eastern Time - so maybe you can suggest a couple times and we can see what works out. |
@CameronStockton It would help if you could turn your working area readable. When basic things fail as here, it is always good to go back to basic. Can you try :
and report results? |
Hi everyone, thanks so much for your help. After restarting Cori I ran an |
@CameronStockton That sounds like good news.. so to recap, it sounds like you have a To use this in jupyter at NERSC, do you already have the DESC jupyter kernels set up? Meaning, you already have access to |
@heather999 Yes I have set up my kernels. Whenever I choose |
@CameronStockton - can you try running this script that will dump some information into a log file that I can take a look at? |
@heather999 Here is the output: Currently Loaded Modulefiles:
|
Thanks! One more thing.. can you do: |
@heather999 Just ran it! There was no output but im guessing you can see stuff on your end? |
I see the file @CameronStockton I just need the permissions set to be able to read it (forgot about that!) Can you do: |
Just a note here, we were able to find the problem in the
which pointed to the need to remove the local conda cloned environment and start over to clone the env and add packages. Once that was done, importing cesium worked as expected when setting |
Hi I seem to have a similar issue. I scrupulously followed the steps to add my own package to the desc-stack..
So far so good. I have managed to install my package (a few lines of code at the moment, nothing fancy) and when I |
Hi @herjy |
The package is here. I used |
I have realised that I actually needed to restart my hub (not just the kernels or terminals) for some of the changes too take effect.
|
HI @herjy Thanks for the poke and sorry for the delay. First to address the explicit error above about "No such file or directory: 'shifter' " Now concerning the ongoing issue to just add desclamp to your cloned environment of desc-stack-weekly, since this is a develop install via I can repeat that same experiment with a fully released python module on PyPI, like for example |
Hi, thank you for your answer! I think the first point is actually related, because if I can't execute this line |
Hi @herjy I want to see whether this is failing in your default Cori environment. This was working for your originally, so I suspect you have set up some other conda environment or some other settings first and that's why your prompt looks like: Or show the output from running Even more information could be seen if you do:
and post the output log to an area at NERSC I can read so I can review the output. |
No it works on my default env for sure. Yes, it is inn my own environment that it fails. But according to the insstructions, that's what we're supposed to do once the env is activated. |
I think there is a misunderstanding and I am rewording the instructions to hopefully make it clearer. Going back to the instructions here: You started here and followed these directions on a freshly started Cori login node to set up your cloned environment. These steps are only required once, to get your cloned environment set up: If you want your cloned environment to be set up automatically the next time you are in a fresh Cori login or in jupyter.nersc.gov using the Then the next time you start up a fresh jupyter session and use Now, the next time you start a fresh Cori login session and want to use your cloned desc-stack-weekly environment, you would do: If you try to do |
@herjy are you able to run your cloned env? |
I'm trying to figure out why my cloned environment is not doing what it's supposed to: when activated, |
The version of lsst-scipipe for Now I do realize that my instructions are not correct though... and I see what you mean about being unable to Here's how to do this correctly:
That's without any cloned environment, I don't have any DESCSTACKUSERENV defined. Instead.. we should just pip install into another area (I truly don't suggest
As before - we still need to update the PYTHONPATH - and to use this in your jupyter environment, you'll still need to do that.. but there is no need to clone (and in fact as you've seen cloning in this case doesn't provide access to the LSST Sci Pipeline env) and no need of that $DESCSTACKUSERENV environment variable. sorry again for this long confusing thread... I"m hopeful this will get you going. |
Brilliant! It works now, thanks a lot for your efforts and I'm glad if it helps others who might encounter the issue in the future. As far as I'm concerned, the issue can be closed. Thanks again @heather999 . |
I have followed all the steps to add my own packages to an environment set out on this page: https://github.com/LSSTDESC/desc-python/wiki/Add-Your-Own-Packages-to-the-desc-python-Environment
I just want to install the cesium package from here: http://cesium-ml.org but the error I am getting is that I need NumPy installed in my environment and so I've installed NumPy with pip install NumPy --user and that said it was successfully installed but then I get the same error when trying to install cesium, that I need NumPy. So I did Conda install NumPy --user and that also said it was installed successfully but yet I get the same error when installing cesium. The same error also occurs when trying to install scikit-learn.
The text was updated successfully, but these errors were encountered: