Skip to content

Error message ~/SpArcFiRe/setup.bash should mention if pip module is missing #92

@cora-schallock

Description

@cora-schallock

running source ~/SpArcFiRe/setup.bash when missing pip yields a (slightly) misleading error message

Now installing python path and its library
now python is called by  and is version:
--version: command not found
Checking you have Python 2.7 or 3 installed.

Now checking for python3(.7 or greater) for GalfitModule.
Your python is called by python3 and is version:
Python 3.10.12

We need all of the following Python packages for python: numpy Pillow scipy astropy tsv
But you only have the following:
    (none)
To get the missing packages, please execute following commands, and note you may need to specify '--user':


SpArcFiRe repo is in /home/cora/SpArcFiRe
If you ran this script without the word 'source' before it, you messed up. Try again.
SETUP ERROR: missing pip packages
We need all of the following Python packages for python3: numpy Pillow scipy astropy pandas IPython scikit-image matplotlib pickle-mixin joblib
But you only have the following:
    (none)
To get the missing packages, please execute following commands, and note you may need to specify '--user':

However running python3 (when pip is missing), multiple libraries can be found while setup.bash output saying none is found:

python3
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> import Pillow
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'Pillow'
>>> import scipy
>>> import astropy
>>> import tsv
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'tsv'
>>> quit()

Solution:
sudo apt install python3-pip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions