-
Notifications
You must be signed in to change notification settings - Fork 13
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
Issue when creating the conda environnement #145
Comments
Hi @NicolasLaporte , I will try to work up a new environment file and get that out later today. -Josh |
@NicolasLaporte Try using this environment file (note this is a temporary link). Install the environment using:
If it works for you, I'll put it in the repo for others to use. -Josh |
Dear Josh,
Thanks for your quick answer.
I can now create the mospy environment but when typing “mospy AutoDriver” I get the error “mospy: command not found”.
I think there is just a link missing in the .yaml file to install the pipeline, no ?
Thanks.
Nicolas
From: Josh Walawender <[email protected]>
Reply to: Keck-DataReductionPipelines/MosfireDRP <[email protected]>
Date: Friday, 4 September 2020 at 22:45
To: Keck-DataReductionPipelines/MosfireDRP <[email protected]>
Cc: "Laporte, Nicolas" <[email protected]>, Mention <[email protected]>
Subject: Re: [Keck-DataReductionPipelines/MosfireDRP] Issue when creating the conda environnement (#145)
@NicolasLaporte<https://github.com/NicolasLaporte> Try using this environment file<https://www.dropbox.com/s/3eqkbtlqo0c7vw0/mospy.yaml?dl=0> (note this is a temporary link).
Install the environment using:
conda env create -f mospy.yaml
If it works for you, I'll put it in the repo for others to use.
…-Josh
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#145 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIOQV4CB7NQCYFDGCRP7TLTSEFNZHANCNFSM4QX6GRFA>.
|
Please forget my last message…
I downloaded the MOSFIRE zip package, and I get the following issue when running “python setup.py install”
(mospy) nicolass-macbook-pro-2:MosfireDRP-master nlaporte$ python3.6 setup.py install
The requested path 'astropy_helpers' for importing astropy_helpers does not exist, or does not contain a copy of the astropy_helpers package. Attempting download instead.
Downloading astropy_helpers; run setup.py with the --offline option to force offline installation.
Traceback (most recent call last):
File "setup.py", line 18, in <module>
from astropy_helpers.setup_helpers import (
ModuleNotFoundError: No module named 'astropy_helpers.setup_helpers'
Best regards
Nicolas
From: Josh Walawender <[email protected]>
Reply to: Keck-DataReductionPipelines/MosfireDRP <[email protected]>
Date: Friday, 4 September 2020 at 22:45
To: Keck-DataReductionPipelines/MosfireDRP <[email protected]>
Cc: "Laporte, Nicolas" <[email protected]>, Mention <[email protected]>
Subject: Re: [Keck-DataReductionPipelines/MosfireDRP] Issue when creating the conda environnement (#145)
@NicolasLaporte<https://github.com/NicolasLaporte> Try using this environment file<https://www.dropbox.com/s/3eqkbtlqo0c7vw0/mospy.yaml?dl=0> (note this is a temporary link).
Install the environment using:
conda env create -f mospy.yaml
If it works for you, I'll put it in the repo for others to use.
…-Josh
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#145 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIOQV4CB7NQCYFDGCRP7TLTSEFNZHANCNFSM4QX6GRFA>.
|
Dear Josh,
I solved the problem by doing a simple “pip install astropy-helpers==3.1“
Now it works perfectly,
Many thanks for your help,
Nicolas
From: "Laporte, Nicolas" <[email protected]>
Date: Monday, 7 September 2020 at 08:02
To: Keck-DataReductionPipelines/MosfireDRP <[email protected]>, Keck-DataReductionPipelines/MosfireDRP <[email protected]>
Cc: Mention <[email protected]>
Subject: Re: [Keck-DataReductionPipelines/MosfireDRP] Issue when creating the conda environnement (#145)
Please forget my last message…
I downloaded the MOSFIRE zip package, and I get the following issue when running “python setup.py install”
(mospy) nicolass-macbook-pro-2:MosfireDRP-master nlaporte$ python3.6 setup.py install
The requested path 'astropy_helpers' for importing astropy_helpers does not exist, or does not contain a copy of the astropy_helpers package. Attempting download instead.
Downloading astropy_helpers; run setup.py with the --offline option to force offline installation.
Traceback (most recent call last):
File "setup.py", line 18, in <module>
from astropy_helpers.setup_helpers import (
ModuleNotFoundError: No module named 'astropy_helpers.setup_helpers'
Best regards
Nicolas
From: Josh Walawender <[email protected]>
Reply to: Keck-DataReductionPipelines/MosfireDRP <[email protected]>
Date: Friday, 4 September 2020 at 22:45
To: Keck-DataReductionPipelines/MosfireDRP <[email protected]>
Cc: "Laporte, Nicolas" <[email protected]>, Mention <[email protected]>
Subject: Re: [Keck-DataReductionPipelines/MosfireDRP] Issue when creating the conda environnement (#145)
@NicolasLaporte<https://github.com/NicolasLaporte> Try using this environment file<https://www.dropbox.com/s/3eqkbtlqo0c7vw0/mospy.yaml?dl=0> (note this is a temporary link).
Install the environment using:
conda env create -f mospy.yaml
If it works for you, I'll put it in the repo for others to use.
…-Josh
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#145 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIOQV4CB7NQCYFDGCRP7TLTSEFNZHANCNFSM4QX6GRFA>.
|
I have the same issue on macOS 10.15.7 and conda 4.9.2. When I tried the updated mospy.yaml file above with
Do you have any suggestions? |
Apparently, this was caused by
in my |
@joshwalawender I'm getting the same issue when installing through Anaconda with Solving environment: failed ResolvePackageNotFound:
The mospy.yaml file you posted above is gone, could you post that again? |
@mheida I've updated the environment spec on the anaconda cloud. Try running:
Note that I've removed the need to specify macOS or linux in the name. If that works, I'll update the installation instructions and add the environment file to the repository. |
Thanks @joshwalawender! The installation seems to have worked, but I'm now getting a 'mospy: command not found' error when I try to run things and indeed there is no mospy executable in envs/mospy/bin (or anywhere else in envs/mospy as far as I can tell). |
Recently, I found that the default setuptools installed along the mospy.yaml is >=58 (maybe with the latest conda-forge dependency), but it need to be earlier than that to install the MOSFIRE DRP. Also, astropy-helpers should be explicitly installed with a specific version around 3.2. Eventually, I used the following yaml file so that no additional package is required at the stage of the DRP installation. name: mospy
channels:
- conda-forge
- defaults
dependencies:
- ccdproc=1.3.0
- numpy=1.13.3
- scipy=1.0.0
- python=3.6.3
- astropy=2.0.3
- pyqt=5.6.0
- ipython=6.2.1
- setuptools=57
- pip
- pip:
- astropy-helpers==3.2.2 |
I share my experience. conda env create KeckObservatory/mospy seems to work but then with I fix it using: pip install setuptools==57 and running again: Thank you to all for share the information. |
Hi,
I got the following issue when creating my conda environnement, I am wondering if this is just not a repository issue :
`(base) nlaporte@nicolass-macbook-pro-2 J % conda env create KeckObservatory/mospy_2018_macos
Collecting package metadata (repodata.json): done
Solving environment: failed
ResolvePackageNotFound:
`
Any idea how I can solve this ?
Many thanks in advance
The text was updated successfully, but these errors were encountered: