waynebhayes / SpArcFiRe

SPiral ARC FInder and REporter - find spiral arcs in galaxies.... and maybe hurricanes too?
9 stars 16 forks source link

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

Open cora-schallock opened 5 months ago

cora-schallock commented 5 months ago

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