bd-j / prospector

Python code for Stellar Population Inference from Spectra and SEDs
http://prospect.readthedocs.io
MIT License
153 stars 71 forks source link

ModuleNotFoundError for 'prospect' After Running conda_install.sh on Linux Mint #318

Closed Bvogel4 closed 1 month ago

Bvogel4 commented 5 months ago

Issue: ModuleNotFoundError for 'prospect' after Installation

Description

After running the conda_install.sh script to set up the environment and install prospector along with its dependencies, attempting to run a Python script (prospect_test2.py) results in a ModuleNotFoundError. The error indicates that the prospect module cannot be found, even though the installation process completes without apparent issues.

Steps to Reproduce

  1. Execute the conda_install.sh script in the terminal.
  2. Try running a Python script that imports from prospect, for instance:
    from prospect.models.templates import TemplateLibrary, describe
  3. Encounter the error:
    File "/home/blake/prospect_test2.py", line 1, in <module>
      from prospect.models.templates import TemplateLibrary, describe
    ModuleNotFoundError: No module named 'prospect'

Environment

Additional Context

Request

Any assistance in resolving this ModuleNotFoundError would be greatly appreciated. It seems there might be an issue with how the prospector package is installed or recognized by the environment. Insights or fixes for ensuring prospect is correctly installed and accessible would be helpful.

bd-j commented 5 months ago

Hi,

I can't reproduce this error. Are you making sure to activate the environment before calling your script? Can you post a log of the installation output? Thanks

bd-j commented 1 month ago

Assuming this is resolved but please reopen if there is still a problem with installation.