Keck-DataReductionPipelines / MosfireDRP

http://keck-datareductionpipelines.github.io/MosfireDRP
10 stars 13 forks source link

mospy handle fails due to ccdproc issue #151

Open CallumWitten opened 2 years ago

CallumWitten commented 2 years ago

I have created the mospy environment using, conda env create KeckObservatory/mospy, on Linux.

When I type mospy into the command line, it opens mospy, however when I try to run mospy handle, I get the following error: File "/home/.local/lib/python3.6/site-packages/MOSFIRE-1.0.dev0-py3.6.egg/MOSFIRE/IO.py", line 22, in import ccdproc ModuleNotFoundError: No module named 'ccdproc'

I have subsequently attempted to install ccdproc however, I get told: Requirement already satisfied.

Does anyone know how to solve this issue?

joshwalawender commented 2 years ago

@CallumWitten Try removing the environment

conda remove --name mospy --all

then creating it using the mospy.yaml file in the repo:

conda env create -f mospy.yaml

Let me know if that makes a difference.

thanks!

CallumWitten commented 2 years ago

@joshwalawender thanks for that, that appears to have solved that issue. When I enter mospy handle, I get a response that appears to be correct, ending with: "Usage: mospy handle [target]". However, when I then go to enter "mospy handle pathtofile", I get the following error: "mospy_handle.py: No match." Do you know what might be causing this?

Thanks!

CallumWitten commented 2 years ago

@joshwalawender please ignore my above comment for the minute, I think it may have been an issue with my path, that I may have now solved.