Closed sarahsweet closed 9 months ago
Hi Sarah - thanks for bringing this up. I'm having difficulty reproducing this bug, but I've attempted to fix it by using pkgutils
rather than the __file__
variable as it apparently takes on inconsistent values depending on how the package is installed. Could you try cloning into the installation-issues
branch, installing using pip install .
and running the following?
from spaxelsleuth import load_user_config
I found the underlying cause of the error, which was that submodules weren't being loaded in correctly in setup.py. I made a new branch called 20-pip-install-incorrect-file-locations
for testing this - please try installing using pip install .
, changing directories, and then importing one of the submodules, e.g.
import spaxelsleuth.loaddata
Closing for now as I was able to install spaxelsleuth on Gabby's machine during the Hector busy week.
Both symptoms of incorrect setup for pip install?