Social-Evolution-and-Behavior / anTraX

anTraX: high throughput tracking of color-tagged insects
https://antrax.readthedocs.io/
GNU General Public License v3.0
17 stars 3 forks source link

Installation issue #46

Open ArsenaultResearch opened 4 months ago

ArsenaultResearch commented 4 months ago

Hello, I have been trying to install anTraX on two seperate mac machines and have run into similar errors. I created a conda environment to install everything in and used homebrew to install ffmpeg as described. I cloned the git repo and ran the code below and recieved the following error message. I also tried manually installing all of the listed dependencies with conda and ran into conflicts between versions (also see below). I have run into this same issue using both a python 3.9 and 3.7 environment. Do you have any suggestions on how to proceed? Best, Sam

pip insall .

  Preparing metadata (setup.py) ... done
Collecting pymatreader@ git+https://github.com/Social-Evolution-and-Behavior/pymatreader.git (from antrax==1.0.2)
  Cloning https://github.com/Social-Evolution-and-Behavior/pymatreader.git to /private/var/folders/1j/0q6_b7r13cvdck7f3c91d3s40000gp/T/pip-install-l1l2t2lh/pymatreader_4832ad3cda364c66b8c5ddd59a2efedb
  Running command git clone --filter=blob:none --quiet https://github.com/Social-Evolution-and-Behavior/pymatreader.git /private/var/folders/1j/0q6_b7r13cvdck7f3c91d3s40000gp/T/pip-install-l1l2t2lh/pymatreader_4832ad3cda364c66b8c5ddd59a2efedb
  Resolved https://github.com/Social-Evolution-and-Behavior/pymatreader.git to commit 838bf248621e7ea31c96f2b9d25f79f02e666bc8
  Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in /Users/saa9662/opt/miniconda3/lib/python3.8/site-packages (from antrax==1.0.2) (1.23.4)
Collecting imageio (from antrax==1.0.2)
  Obtaining dependency information for imageio from https://files.pythonhosted.org/packages/a3/b6/39c7dad203d9984225f47e0aa39ac3ba3a47c77a02d0ef2a7be691855a06/imageio-2.34.1-py3-none-any.whl.metadata
  Using cached imageio-2.34.1-py3-none-any.whl.metadata (4.9 kB)
Requirement already satisfied: pandas in /Users/saa9662/opt/miniconda3/lib/python3.8/site-packages (from antrax==1.0.2) (1.5.1)
Collecting scipy (from antrax==1.0.2)
  Obtaining dependency information for scipy from https://files.pythonhosted.org/packages/a0/e3/37508a11dae501349d7c16e4dd18c706a023629eedc650ee094593887a89/scipy-1.10.1-cp38-cp38-macosx_10_9_x86_64.whl.metadata
  Using cached scipy-1.10.1-cp38-cp38-macosx_10_9_x86_64.whl.metadata (53 kB)
Collecting clize (from antrax==1.0.2)
  Obtaining dependency information for clize from https://files.pythonhosted.org/packages/21/67/267b54101fe899f957e70e21b461cb17fa63f0799316e690b4375db202e2/clize-5.0.2-py2.py3-none-any.whl.metadata
  Using cached clize-5.0.2-py2.py3-none-any.whl.metadata (4.3 kB)
INFO: pip is looking at multiple versions of antrax to determine which version is compatible with other requirements. This could take a while.
ERROR: Ignored the following versions that require a different python version: 1.11.0 Requires-Python <3.13,>=3.9; 1.11.0rc1 Requires-Python <3.13,>=3.9; 1.11.0rc2 Requires-Python <3.13,>=3.9; 1.11.1 Requires-Python <3.13,>=3.9; 1.11.2 Requires-Python <3.13,>=3.9; 1.11.3 Requires-Python <3.13,>=3.9; 1.11.4 Requires-Python >=3.9; 1.12.0 Requires-Python >=3.9; 1.12.0rc1 Requires-Python >=3.9; 1.12.0rc2 Requires-Python >=3.9; 1.13.0 Requires-Python >=3.9; 1.13.0rc1 Requires-Python >=3.9; 1.13.1 Requires-Python >=3.9; 1.14.0rc1 Requires-Python >=3.10
ERROR: Could not find a version that satisfies the requirement tensorflow==1.15 (from antrax) (from versions: 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.6.0rc0, 2.6.0rc1, 2.6.0rc2, 2.6.0, 2.6.1, 2.6.2, 2.6.3, 2.6.4, 2.6.5, 2.7.0rc0, 2.7.0rc1, 2.7.0, 2.7.1, 2.7.2, 2.7.3, 2.7.4, 2.8.0rc0, 2.8.0rc1, 2.8.0, 2.8.1, 2.8.2, 2.8.3, 2.8.4, 2.9.0rc0, 2.9.0rc1, 2.9.0rc2, 2.9.0, 2.9.1, 2.9.2, 2.9.3, 2.10.0rc0, 2.10.0rc1, 2.10.0rc2, 2.10.0rc3, 2.10.0, 2.10.1, 2.11.0rc0, 2.11.0rc1, 2.11.0rc2, 2.11.0, 2.11.1, 2.12.0rc0, 2.12.0rc1, 2.12.0, 2.12.1, 2.13.0rc0, 2.13.0rc1, 2.13.0rc2, 2.13.0, 2.13.1)
ERROR: No matching distribution found for tensorflow==1.15
conda install absl-py==0.9.0 astor==0.8.1 attrs==19.3.0 certifi==2020.4.5.1 clize==4.1.1 cycler==0.10.0 docutils==0.16 future==0.18.2 gast==0.2.2 glob3==0.0.1 google-pasta==0.2.0 grpcio==1.28.1 h5py==2.10.0 imageio==2.8.0 joblib==0.14.1 Keras-Applications==1.0.8 Keras-Preprocessing==1.1.0 kiwisolver==1.2.0 Markdown==3.2.1 matlabengineforpython===R2018a matplotlib==3.2.1 numpy==1.18.3 od==1.0 opt-einsum==3.2.1 pandas==1.0.3 Pillow==7.1.2 protobuf==3.11.3 pymatreader==0.0.20 pyparsing==2.4.7 python-dateutil==2.8.1 pytz==2020.1 PyYAML==5.3.1 ruamel.yaml==0.16.10 ruamel.yaml.clib==0.2.0 scikit-learn==0.22.2.post1 scikit-video==1.1.11 scipy==1.4.1 sigtools==2.0.2 six==1.14.0 sklearn==0.0 tensorboard==1.15.0 tensorflow==1.15.0 tensorflow-estimator==1.15.1 termcolor==1.1.0 Werkzeug==1.0.1 wrapt==1.12.1 xlrd==1.2.0 xmltodict==0.12.0

PackagesNotFoundError: The following packages are not available from current channels:

  - pymatreader==0.0.20
  - grpcio==1.28.1
  - numpy==1.18.3
  - matlabengineforpython===R2018a
  - glob3==0.0.1
  - sklearn==0.0
  - opt-einsum==3.2.1
zevelijah commented 2 months ago

I think I had a problem similar to yours. The primary issue (in my case) is that tensorflow is supposed to be version 1.15 (see setup.py). I could not conceive of a way to make it work with the current tensorflow version, so I made it 2.2.0 instead, the oldest supported by python3.8, which in turn is the precise version required to satisfy all of these packages. I selected 3.8.17, and as a bit of bad practice, installed the whole version even when I could have done the same thing with pyenv. Whatever the case, when you have python3.8 available, make a virtual environment with that version and carry on with your day. By the way, I don't know how this happened, but until recently the main branch's setup.py had scikit-learn written as sklearn. you import sklearn in the python code, but you pip install scikit-learn on the command line. Does that make sense?