Required packages not in setup.py
eric-czech opened this issue · 2 comments
eric-czech commented
Hey @CarlKCarlK, I see only numpy is in the setup.py dependency list:
Line 149 in a775a57
But the requirements.txt has several others:
Lines 1 to 5 in a775a57
pooch
being missing is currently breaking the sgkit-plink build with:
ImportError while importing test module '/home/runner/work/sgkit-plink/sgkit-plink/sgkit_plink/tests/test_pysnptools.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
sgkit_plink/__init__.py:1: in <module>
from .pysnptools import read_plink # noqa: F401
sgkit_plink/pysnptools.py:8: in <module>
from bed_reader import open_bed
/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/bed_reader/__init__.py:2: in <module>
from bed_reader._sample_data import sample_file, tmp_path
/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/bed_reader/_sample_data.py:7: in <module>
import pooch
E ModuleNotFoundError: No module named 'pooch'
I'm guessing _sample_data.py
isn't critical for downstream usage so is it possible to only import that when a function in that module is called instead?
CarlKCarlK commented
I’ll work on a new alpha release this afternoon that will fix that.
The requirements.txt will be something like:
numpy
pandas
dataclass
pooch
From: Eric Czech<mailto:notifications@github.com>
Sent: Thursday, September 3, 2020 11:43 AM
To: fastlmm/bed-reader<mailto:bed-reader@noreply.github.com>
Cc: Carl Kadie<mailto:carlk@msn.com>; Mention<mailto:mention@noreply.github.com>
Subject: [fastlmm/bed-reader] Required packages not in setup.py (#1)
Hey @CarlKCarlK<https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FCarlKCarlK&data=02%7C01%7C%7C1cef8625c8414c104c6d08d850394381%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637347554156222459&sdata=Dk2iQzMwcAWgLxQdPAeJJCrM26jy2dwbx1mgkHCbMf0%3D&reserved=0>, I see only numpy is in the setup.py dependency list: https://github.com/fastlmm/bed-reader/blob/a775a57060ec39c70531ca09f7b5dbe9a683b34f/setup.py#L149<https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ffastlmm%2Fbed-reader%2Fblob%2Fa775a57060ec39c70531ca09f7b5dbe9a683b34f%2Fsetup.py%23L149&data=02%7C01%7C%7C1cef8625c8414c104c6d08d850394381%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637347554156222459&sdata=ch57RM8HbXwt2iR%2B%2FYX7p5gQ1rAcU8QZ0Pe6cZXsfMY%3D&reserved=0>
But the requirements.txt has several others: https://github.com/fastlmm/bed-reader/blob/a775a57060ec39c70531ca09f7b5dbe9a683b34f/requirements.txt#L1-L5<https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ffastlmm%2Fbed-reader%2Fblob%2Fa775a57060ec39c70531ca09f7b5dbe9a683b34f%2Frequirements.txt%23L1-L5&data=02%7C01%7C%7C1cef8625c8414c104c6d08d850394381%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637347554156232452&sdata=dNdtVGCv2zk%2FITg2H13kn3ebQDcVv96zamFwknaySPQ%3D&reserved=0>
pooch being missing is currently breaking the sgkit-plink build<https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpystatgen%2Fsgkit-plink%2Fpull%2F30%2Fchecks%3Fcheck_run_id%3D1068392010&data=02%7C01%7C%7C1cef8625c8414c104c6d08d850394381%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637347554156232452&sdata=tTBAzFgGuOWUrVcJ1Ey5L2BraWM8zciLsMDo8VmZjWY%3D&reserved=0> with:
ImportError while importing test module '/home/runner/work/sgkit-plink/sgkit-plink/sgkit_plink/tests/test_pysnptools.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
sgkit_plink/__init__.py:1: in <module>
from .pysnptools import read_plink # noqa: F401
sgkit_plink/pysnptools.py:8: in <module>
from bed_reader import open_bed
/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/bed_reader/__init__.py:2: in <module>
from bed_reader._sample_data import sample_file, tmp_path
/opt/hostedtoolcache/Python/3.8.5/x64/lib/python3.8/site-packages/bed_reader/_sample_data.py:7: in <module>
import pooch
E ModuleNotFoundError: No module named 'pooch'
I'm guessing _sample_data.py isn't critical for downstream usage so is it possible to only import that when a function in that module is called instead?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ffastlmm%2Fbed-reader%2Fissues%2F1&data=02%7C01%7C%7C1cef8625c8414c104c6d08d850394381%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637347554156242451&sdata=PNJLbfqX%2FtaCQ9d4RtYCFknXrVnfGoOlW4SXR1yua74%3D&reserved=0>, or unsubscribe<https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABR65P6DXSQIRYZGOXKJFX3SD7PVLANCNFSM4QVNBLFQ&data=02%7C01%7C%7C1cef8625c8414c104c6d08d850394381%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637347554156242451&sdata=nVECP9%2FK12E0ofiqu0I66ohZkzPMQ9FclDqOXvxJG%2F4%3D&reserved=0>.
CarlKCarlK commented
Fixed with https://pypi.org/project/bed-reader/0.0.5a0/