Closed arielah closed 5 months ago
@arielah thanks for posting the issue. I have two working versions:
importlib-metadata
version is 7.0.1
importlib-metadata
version is 6.8.0
Maybe try downgrading to importlib-metadata
to one of those versions?
Hi Matt, thanks for looking into this. I'm running Ubuntu 20.04, so I tried downgrading to 6.8.0
and got the same error: TypeError: entry_points() got an unexpected keyword argument 'group'
Same thing with 7.0.1
. Not sure where to go from here. Here's my pip list output if that's helpful:
Package Version Editable project location
--------------------------- ----------- --------------------------------------------------
absl-py 2.1.0
aiofiles 23.2.1
aiohttp 3.9.3
aiosignal 1.3.1
altair 5.2.0
antlr4-python3-runtime 4.9.3
anyio 4.3.0
argcomplete 3.2.2
astunparse 1.6.3
async-timeout 4.0.3
attrs 23.2.0
backports.zoneinfo 0.2.1
beautifulsoup4 4.12.3
blinker 1.7.0
boto3 1.34.50
botocore 1.34.50
Brotli 1.1.0
cachetools 5.3.3
certifi 2024.2.2
charset-normalizer 3.3.2
click 8.1.7
contourpy 1.1.1
cycler 0.12.1
dacite 1.7.0
decorator 4.4.2
Deprecated 1.2.14
dill 0.3.8
dm-tree 0.1.8
dnspython 2.6.1
exceptiongroup 1.2.0
fiftyone 0.23.5
fiftyone-brain 0.16.1
fiftyone-db 1.1.1
fiftyone-db-ubuntu2204 0.4.0
filelock 3.13.1
fonttools 4.49.0
frozenlist 1.4.1
fsspec 2024.2.0
ftfy 6.1.3
future 1.0.0
gast 0.5.4
gitdb 4.0.11
GitPython 3.1.42
glob2 0.7
google-auth 2.28.1
google-auth-oauthlib 1.0.0
graphql-core 3.2.3
grpcio 1.62.0
h11 0.14.0
h2 4.1.0
h5py 3.10.0
hpack 4.0.0
httpcore 1.0.4
httpx 0.27.0
humanize 4.9.0
hydra-core 1.3.2
Hypercorn 0.16.0
hyperframe 6.0.1
idna 3.6
imageio 2.34.0
imageio-ffmpeg 0.4.9
imgaug 0.4.0
importlib-metadata 7.0.1
importlib_resources 6.1.2
inflate64 1.0.0
iniconfig 2.0.0
Jinja2 3.1.3
jmespath 1.0.1
joblib 1.3.2
jsonlines 4.0.0
jsonschema 4.21.1
jsonschema-specifications 2023.12.1
kaleido 0.2.1
kiwisolver 1.4.5
kornia 0.7.1
lazy_loader 0.3
lightning 2.2.0.post0
lightning-pose 1.1.0 /redacted/path/to/lightning-pose/
lightning-utilities 0.10.1
Markdown 3.6
markdown-it-py 3.0.0
MarkupSafe 2.1.5
matplotlib 3.7.5
mdurl 0.1.2
mongoengine 0.24.2
motor 3.3.2
moviepy 1.0.3
mpmath 1.3.0
multidict 6.0.5
multivolumefile 0.2.3
networkx 3.1
numpy 1.24.4
nvidia-cublas-cu12 12.1.3.1
nvidia-cuda-cupti-cu12 12.1.105
nvidia-cuda-nvrtc-cu12 12.1.105
nvidia-cuda-runtime-cu12 12.1.105
nvidia-cudnn-cu12 8.9.2.26
nvidia-cufft-cu12 11.0.2.54
nvidia-curand-cu12 10.3.2.106
nvidia-cusolver-cu12 11.4.5.107
nvidia-cusparse-cu12 12.1.0.106
nvidia-dali-cuda110 1.34.0
nvidia-dali-cuda120 1.35.0
nvidia-nccl-cu12 2.19.3
nvidia-nvjitlink-cu12 12.3.101
nvidia-nvtx-cu12 12.1.105
oauthlib 3.2.2
omegaconf 2.3.0
opencv-python 4.9.0.80
opencv-python-headless 4.9.0.80
packaging 23.2
pandas 2.0.3
pillow 10.2.0
pip 24.0
pkgutil_resolve_name 1.3.10
plotly 5.19.0
pluggy 1.4.0
pprintpp 0.4.0
priority 2.0.0
proglog 0.1.10
protobuf 4.25.3
psutil 5.9.8
py7zr 0.20.8
pyarrow 15.0.0
pyasn1 0.5.1
pyasn1-modules 0.3.0
pybcj 1.0.2
pycryptodomex 3.20.0
pydeck 0.8.1b0
Pygments 2.17.2
pymongo 4.6.2
pyparsing 3.1.1
pyppmd 1.1.0
pytest 8.0.2
python-dateutil 2.8.2
pytorch-lightning 2.2.0.post0
pytz 2024.1
PyWavelets 1.4.1
PyYAML 6.0.1
pyzstd 0.15.9
rarfile 4.1
referencing 0.34.0
regex 2023.12.25
requests 2.31.0
requests-oauthlib 1.3.1
retrying 1.3.4
rich 13.7.0
rpds-py 0.18.0
rsa 4.9
s3transfer 0.10.0
scikit-image 0.21.0
scikit-learn 1.3.2
scipy 1.10.1
seaborn 0.13.2
segment-anything 1.0
setuptools 69.2.0
shapely 2.0.3
six 1.16.0
smmap 5.0.1
sniffio 1.3.1
sortedcontainers 2.4.0
soupsieve 2.5
sse-starlette 0.10.3
sseclient-py 1.8.0
starlette 0.37.1
strawberry-graphql 0.138.1
streamlit 1.31.1
sympy 1.12
tabulate 0.9.0
taskgroup 0.0.0a4
tenacity 8.2.3
tensorboard 2.14.0
tensorboard-data-server 0.7.2
texttable 1.7.0
threadpoolctl 3.3.0
tifffile 2023.7.10
toml 0.10.2
tomli 2.0.1
toolz 0.12.1
torch 2.2.1
torchmetrics 1.3.1
torchtyping 0.1.4
torchvision 0.17.1
tornado 6.4
tqdm 4.66.2
triton 2.2.0
typeguard 4.1.5
typing 3.7.4.3
typing_extensions 4.10.0
tzdata 2024.1
tzlocal 5.2
universal-analytics-python3 1.1.1
urllib3 1.26.18
validators 0.22.0
voxel51-eta 0.12.5
watchdog 4.0.0
wcwidth 0.2.13
Werkzeug 3.0.1
wheel 0.42.0
wrapt 1.16.0
wsproto 1.2.0
xmltodict 0.13.0
yarl 1.9.4
zipp 3.18.1
Ah frustrating. I tried a fresh install on Ubuntu 20.04 by first installing all of your package versions, but I ran into some errors with unpacking wheels. So instead I made another fresh install of lightning pose on 20.04, and the pip list
is below. One thing you could try is to convert the below into a requirements.txt file, and then (from inside the LP directory) do
pip install -r requirements.txt
pip install -e .
pytest
Then we can at least know if the difference is in the conda environment or some larger system difference.
absl-py 2.1.0
aiofiles 23.2.1
aiohttp 3.9.3
aiosignal 1.3.1
altair 5.2.0
annotated-types 0.6.0
antlr4-python3-runtime 4.9.3
anyio 4.3.0
argcomplete 3.2.3
argon2-cffi 23.1.0
argon2-cffi-bindings 21.2.0
arrow 1.3.0
asttokens 2.4.1
astunparse 1.6.3
async-lru 2.0.4
async-timeout 4.0.3
attrs 23.2.0
awscrt 0.19.19
Babel 2.14.0
backoff 2.2.1
beautifulsoup4 4.12.3
bleach 6.1.0
blinker 1.7.0
boto3 1.34.70
botocore 1.34.70
Brotli 1.1.0
cachetools 5.3.3
certifi 2024.2.2
cffi 1.16.0
charset-normalizer 3.3.2
click 8.1.7
comm 0.2.2
contourpy 1.2.0
cycler 0.12.1
dacite 1.7.0
debugpy 1.8.1
decorator 4.4.2
defusedxml 0.7.1
Deprecated 1.2.14
dill 0.3.8
dm-tree 0.1.8
dnspython 2.6.1
exceptiongroup 1.2.0
executing 2.0.1
fastapi 0.110.0
fastjsonschema 2.19.1
fiftyone 0.23.7
fiftyone-brain 0.16.1
fiftyone_db 1.1.2
filelock 3.13.3
fire 0.6.0
fonttools 4.50.0
fqdn 1.5.1
frozenlist 1.4.1
fsspec 2024.3.1
ftfy 6.2.0
future 1.0.0
gast 0.5.4
gitdb 4.0.11
GitPython 3.1.42
glob2 0.7
google-auth 2.29.0
google-auth-oauthlib 1.2.0
graphql-core 3.2.3
grpcio 1.62.1
h11 0.14.0
h2 4.1.0
h5py 3.10.0
hpack 4.0.0
httpcore 1.0.5
httpx 0.27.0
humanize 4.9.0
hydra-core 1.3.2
Hypercorn 0.16.0
hyperframe 6.0.1
idna 3.6
imageio 2.34.0
imageio-ffmpeg 0.4.9
imgaug 0.4.0
inflate64 1.0.0
iniconfig 2.0.0
ipykernel 6.26.0
ipython 8.17.2
ipywidgets 8.1.1
isoduration 20.11.0
jedi 0.19.1
Jinja2 3.1.3
jmespath 1.0.1
joblib 1.3.2
json5 0.9.24
jsonlines 4.0.0
jsonpointer 2.4
jsonschema 4.21.1
jsonschema-specifications 2023.12.1
jupyter_client 8.6.1
jupyter_core 5.7.2
jupyter-events 0.10.0
jupyter-lsp 2.2.4
jupyter_server 2.13.0
jupyter_server_terminals 0.5.3
jupyterlab 4.0.6
jupyterlab_pygments 0.3.0
jupyterlab_server 2.25.4
jupyterlab_widgets 3.0.10
kaleido 0.2.1
kiwisolver 1.4.5
kornia 0.7.2
kornia_rs 0.1.2
lazy_loader 0.3
lightning 2.2.1
lightning-cloud 0.5.64
lightning-pose 1.1.0 /teamspace/studios/this_studio/lightning-pose
lightning_sdk 0.1.2
lightning-utilities 0.10.1
litdata 0.2.2
Markdown 3.6
markdown-it-py 3.0.0
MarkupSafe 2.1.5
matplotlib 3.8.2
matplotlib-inline 0.1.6
mdurl 0.1.2
mistune 3.0.2
mongoengine 0.24.2
motor 3.4.0
moviepy 1.0.3
mpmath 1.3.0
multidict 6.0.5
multivolumefile 0.2.3
nbclient 0.10.0
nbconvert 7.16.3
nbformat 5.10.3
nest-asyncio 1.6.0
networkx 3.2.1
notebook_shim 0.2.4
numpy 1.26.2
nvidia-cublas-cu12 12.1.3.1
nvidia-cuda-cupti-cu12 12.1.105
nvidia-cuda-nvrtc-cu12 12.1.105
nvidia-cuda-runtime-cu12 12.1.105
nvidia-cudnn-cu12 8.9.2.26
nvidia-cufft-cu12 11.0.2.54
nvidia-curand-cu12 10.3.2.106
nvidia-cusolver-cu12 11.4.5.107
nvidia-cusparse-cu12 12.1.0.106
nvidia-dali-cuda120 1.36.0
nvidia-nccl-cu12 2.19.3
nvidia-nvimgcodec-cu12 0.2.0.7
nvidia-nvjitlink-cu12 12.4.99
nvidia-nvtx-cu12 12.1.105
oauthlib 3.2.2
objprint 0.2.3
omegaconf 2.3.0
opencv-python 4.9.0.80
opencv-python-headless 4.9.0.80
overrides 7.7.0
packaging 23.2
pandas 2.1.4
pandocfilters 1.5.1
parso 0.8.3
pexpect 4.9.0
pillow 10.2.0
pip 24.0
platformdirs 4.2.0
plotly 5.20.0
pluggy 1.4.0
pprintpp 0.4.0
priority 2.0.0
proglog 0.1.10
prometheus_client 0.20.0
prompt-toolkit 3.0.43
protobuf 4.23.4
psutil 5.9.8
ptyprocess 0.7.0
pure-eval 0.2.2
py7zr 0.21.0
pyarrow 15.0.2
pyasn1 0.5.1
pyasn1-modules 0.3.0
pybcj 1.0.2
pycparser 2.21
pycryptodomex 3.20.0
pydantic 2.6.4
pydantic_core 2.16.3
pydeck 0.8.1b0
Pygments 2.17.2
PyJWT 2.8.0
pymongo 4.6.3
pyparsing 3.1.2
pyppmd 1.1.0
pytest 8.1.1
python-dateutil 2.9.0.post0
python-json-logger 2.0.7
python-multipart 0.0.9
pytorch-lightning 2.2.1
pytz 2024.1
PyYAML 6.0.1
pyzmq 25.1.2
pyzstd 0.15.10
rarfile 4.1
referencing 0.34.0
regex 2023.12.25
requests 2.31.0
requests-oauthlib 2.0.0
retrying 1.3.4
rfc3339-validator 0.1.4
rfc3986-validator 0.1.1
rich 13.7.1
rpds-py 0.18.0
rsa 4.9
s3transfer 0.10.1
scikit-image 0.22.0
scikit-learn 1.3.2
scipy 1.11.4
seaborn 0.13.2
segment-anything 1.0
Send2Trash 1.8.2
setuptools 68.2.2
shapely 2.0.3
simple-term-menu 1.6.4
six 1.16.0
smmap 5.0.1
sniffio 1.3.1
sortedcontainers 2.4.0
soupsieve 2.5
sse-starlette 0.10.3
sseclient-py 1.8.0
stack-data 0.6.3
starlette 0.36.3
strawberry-graphql 0.138.1
streamlit 1.32.2
sympy 1.12
tabulate 0.9.0
taskgroup 0.0.0a4
tenacity 8.2.3
tensorboard 2.15.1
tensorboard-data-server 0.7.2
termcolor 2.4.0
terminado 0.18.1
texttable 1.7.0
threadpoolctl 3.4.0
tifffile 2024.2.12
tinycss2 1.2.1
toml 0.10.2
tomli 2.0.1
toolz 0.12.1
torch 2.2.1
torchaudio 2.2.1
torchmetrics 1.3.1
torchtyping 0.1.4
torchvision 0.17.1
tornado 6.4
tqdm 4.66.2
traitlets 5.14.2
triton 2.2.0
typeguard 4.2.1
types-python-dateutil 2.9.0.20240316
typing 3.7.4.3
typing_extensions 4.10.0
tzdata 2024.1
tzlocal 5.2
universal-analytics-python3 1.1.1
uri-template 1.3.0
urllib3 2.2.1
uvicorn 0.29.0
viztracer 0.16.2
voxel51-eta 0.12.6
watchdog 4.0.0
wcwidth 0.2.13
webcolors 1.13
webencodings 0.5.1
websocket-client 1.7.0
Werkzeug 3.0.1
wheel 0.41.2
widgetsnbextension 4.0.10
wrapt 1.16.0
wsproto 1.2.0
xmltodict 0.13.0
yarl 1.9.4
Thanks for your help, Matt. I made a fresh python 3.8 conda environment and ran pip install requirements.txt
with the versions you provided. I got the following error:
Requirement already satisfied: aiofiles==23.2.1 in /home/ubuntu/.local/lib/python3.8/site-packages (from -r requirements.txt (line 2)) (23.2.1)
Requirement already satisfied: aiohttp==3.9.3 in /home/ubuntu/.local/lib/python3.8/site-packages (from -r requirements.txt (line 3)) (3.9.3)
Requirement already satisfied: aiosignal==1.3.1 in /home/ubuntu/.local/lib/python3.8/site-packages (from -r requirements.txt (line 4)) (1.3.1)
Requirement already satisfied: altair==5.2.0 in /home/ubuntu/.local/lib/python3.8/site-packages (from -r requirements.txt (line 5)) (5.2.0)
Collecting annotated-types==0.6.0 (from -r requirements.txt (line 6))
Downloading annotated_types-0.6.0-py3-none-any.whl.metadata (12 kB)
Requirement already satisfied: antlr4-python3-runtime==4.9.3 in /home/ubuntu/.local/lib/python3.8/site-packages (from -r requirements.txt (line 7)) (4.9.3)
Requirement already satisfied: anyio==4.3.0 in /home/ubuntu/.local/lib/python3.8/site-packages (from -r requirements.txt (line 8)) (4.3.0)
Collecting argcomplete==3.2.3 (from -r requirements.txt (line 9))
Using cached argcomplete-3.2.3-py3-none-any.whl.metadata (16 kB)
Collecting argon2-cffi==23.1.0 (from -r requirements.txt (line 10))
Downloading argon2_cffi-23.1.0-py3-none-any.whl.metadata (5.2 kB)
Collecting argon2-cffi-bindings==21.2.0 (from -r requirements.txt (line 11))
Downloading argon2_cffi_bindings-21.2.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.7 kB)
Collecting arrow==1.3.0 (from -r requirements.txt (line 12))
Downloading arrow-1.3.0-py3-none-any.whl.metadata (7.5 kB)
Collecting asttokens==2.4.1 (from -r requirements.txt (line 13))
Downloading asttokens-2.4.1-py2.py3-none-any.whl.metadata (5.2 kB)
Requirement already satisfied: astunparse==1.6.3 in /home/ubuntu/.local/lib/python3.8/site-packages (from -r requirements.txt (line 14)) (1.6.3)
Collecting async-lru==2.0.4 (from -r requirements.txt (line 15))
Downloading async_lru-2.0.4-py3-none-any.whl.metadata (4.5 kB)
Requirement already satisfied: async-timeout==4.0.3 in /home/ubuntu/.local/lib/python3.8/site-packages (from -r requirements.txt (line 16)) (4.0.3)
Collecting attrs==23.2.0 (from -r requirements.txt (line 17))
Using cached attrs-23.2.0-py3-none-any.whl.metadata (9.5 kB)
Collecting awscrt==0.19.19 (from -r requirements.txt (line 18))
Downloading awscrt-0.19.19-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.3 kB)
Collecting Babel==2.14.0 (from -r requirements.txt (line 19))
Using cached Babel-2.14.0-py3-none-any.whl.metadata (1.6 kB)
Collecting backoff==2.2.1 (from -r requirements.txt (line 20))
Downloading backoff-2.2.1-py3-none-any.whl.metadata (14 kB)
Requirement already satisfied: beautifulsoup4==4.12.3 in /home/ubuntu/.local/lib/python3.8/site-packages (from -r requirements.txt (line 21)) (4.12.3)
Collecting bleach==6.1.0 (from -r requirements.txt (line 22))
Downloading bleach-6.1.0-py3-none-any.whl.metadata (30 kB)
Collecting blinker==1.7.0 (from -r requirements.txt (line 23))
Using cached blinker-1.7.0-py3-none-any.whl.metadata (1.9 kB)
Collecting boto3==1.34.70 (from -r requirements.txt (line 24))
Downloading boto3-1.34.70-py3-none-any.whl.metadata (6.6 kB)
Collecting botocore==1.34.70 (from -r requirements.txt (line 25))
Downloading botocore-1.34.70-py3-none-any.whl.metadata (5.7 kB)
Requirement already satisfied: Brotli==1.1.0 in /home/ubuntu/.local/lib/python3.8/site-packages (from -r requirements.txt (line 26)) (1.1.0)
Requirement already satisfied: cachetools==5.3.3 in /home/ubuntu/.local/lib/python3.8/site-packages (from -r requirements.txt (line 27)) (5.3.3)
Collecting certifi==2024.2.2 (from -r requirements.txt (line 28))
Using cached certifi-2024.2.2-py3-none-any.whl.metadata (2.2 kB)
Collecting cffi==1.16.0 (from -r requirements.txt (line 29))
Downloading cffi-1.16.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.5 kB)
Collecting charset-normalizer==3.3.2 (from -r requirements.txt (line 30))
Using cached charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (33 kB)
Collecting click==8.1.7 (from -r requirements.txt (line 31))
Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting comm==0.2.2 (from -r requirements.txt (line 32))
Downloading comm-0.2.2-py3-none-any.whl.metadata (3.7 kB)
ERROR: Ignored the following versions that require a different python version: 1.2.0 Requires-Python >=3.9; 1.2.1rc1 Requires-Python >=3.9
ERROR: Could not find a version that satisfies the requirement contourpy==1.2.0 (from versions: 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.1.0, 1.1.1rc1, 1.1.1)
ERROR: No matching distribution found for contourpy==1.2.0
Ugh so sorry this is a headache. Try a conda environment with python 3.10 instead of 3.8, that seems to be why it's complaining (I'm using python 3.10 in the ubuntu 20.04 version, apologies for not checking that, didn't think it would matter)
Hi Matt, sorry this is a headache for the both of us. I'll write out what I did exactly.
conda create --name testpython310 python=3.10
conda activate testpython310
git clone https://github.com/danbider/lightning-pose.git
cd lightning-pose/
pip install -r requirements.txt (made from your message 5 days ago)
pip install -e .
pytest
And still got the "TypeError: entry_points() got an unexpected keyword argument 'group'" error. If I'm getting errors on pytest, but I don't get any errors when I run 'python -c "import lightning_pose"', should I just stop worrying about it, or is it likely to give me errors down the line?
that's so frustrating. yeah maybe it's best if you try fitting a model on the example data and see if anything complains: https://lightning-pose.readthedocs.io/en/latest/source/user_guide/training.html#train-with-example-data
Running scripts/train_hydra.py
on Python 3.1 worked without any errors. I'll get to work on trying it on my data, sorry if that was a lot of worrying over nothing!
Glad to hear. I'll close this issue for now, but feel free to open another issue if you run into something else!
Hello, I am trying to install lightning-pose as outlined here: https://lightning-pose.readthedocs.io/en/latest/source/installation.html
I've created a conda environment in Python 3.8, installed lightning_pose from git, ran
python -c "import lightning_pose"
successfully, installed the dependencies with a success message, but when I trypytest
I get the following error:Based on related issues 1, 2, 3, 4, it seems like there's some incompatibility with the version of
importlib-metadata
. I've tried manually installing several different versions and still get the same error. Can you recommend a particular version that is compatible?After following all the directions on the lightning pose installation page (I'm on Ubuntu 20.04 so I skipped installing fiftyone-db-ubuntu2204), I get the following from
conda list
:Thanks for any suggestions you have.