Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pytest fail after installing orbitdeterminator on MacPro (2019) #197

Open
OrbitalMechanic opened this issue Aug 14, 2020 · 2 comments
Open

Comments

@OrbitalMechanic
Copy link

Attempting to install Orbitdeterminator on a Mac Pro (2019) running Mac OS X Catalina (10.15.6) under the Anaconda environment.

I began the installation by creating an environment for Orbitdeterminator called OrbDet under Python 3.6. The installation was successful as depicted in the listing that follows.

Last login: Fri Aug 14 01:42:03 on ttys000
(base) user@Samuels-Mac-Pro ~ % conda create -n OrbDet python=3.6
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /Users/user/opt/anaconda3/envs/OrbDet

  added / updated specs:
    - python=3.6


The following NEW packages will be INSTALLED:

  ca-certificates    conda-forge/osx-64::ca-certificates-2020.6.20-hecda079_0
  certifi            conda-forge/osx-64::certifi-2020.6.20-py36h9f0ad1d_0
  libcxx             conda-forge/osx-64::libcxx-10.0.1-h5f48129_0
  libffi             conda-forge/osx-64::libffi-3.2.1-hb1e8313_1007
  ncurses            conda-forge/osx-64::ncurses-6.2-hb1e8313_1
  openssl            conda-forge/osx-64::openssl-1.1.1g-haf1e3a3_1
  pip                conda-forge/noarch::pip-20.2.2-py_0
  python             conda-forge/osx-64::python-3.6.11-hc38f9c5_2_cpython
  python_abi         conda-forge/osx-64::python_abi-3.6-1_cp36m
  readline           conda-forge/osx-64::readline-8.0-h0678c8f_2
  setuptools         conda-forge/osx-64::setuptools-49.6.0-py36h9f0ad1d_0
  sqlite             conda-forge/osx-64::sqlite-3.32.3-h960bd1c_1
  tk                 conda-forge/osx-64::tk-8.6.10-hb0a8c7a_0
  wheel              conda-forge/noarch::wheel-0.34.2-py_1
  xz                 conda-forge/osx-64::xz-5.2.5-haf1e3a3_1
  zlib               conda-forge/osx-64::zlib-1.2.11-1007


Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate OrbDet
#
# To deactivate an active environment, use
#
#     $ conda deactivate

(base) user@Samuels-Mac-Pro ~ % conda activate OrbDet               
(OrbDet) user@Samuels-Mac-Pro ~ % pip install llvmlite --prefer-binary
Collecting llvmlite
  Using cached llvmlite-0.34.0-cp36-cp36m-macosx_10_9_x86_64.whl (18.4 MB)
Installing collected packages: llvmlite
Successfully installed llvmlite-0.34.0
(OrbDet) user@Samuels-Mac-Pro ~ % git clone https://github.com/aerospaceresearch/orbitdeterminator/
Cloning into 'orbitdeterminator'...
remote: Enumerating objects: 350, done.
remote: Counting objects: 100% (350/350), done.
remote: Compressing objects: 100% (286/286), done.
remote: Total 4319 (delta 233), reused 166 (delta 56), pack-reused 3969
Receiving objects: 100% (4319/4319), 26.82 MiB | 32.27 MiB/s, done.
Resolving deltas: 100% (2919/2919), done.
(OrbDet) user@Samuels-Mac-Pro ~ % cd orbitdeterminator
(OrbDet) user@Samuels-Mac-Pro orbitdeterminator % conda install pykep==2.1
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /Users/user/opt/anaconda3/envs/OrbDet

  added / updated specs:
    - pykep==2.1


The following NEW packages will be INSTALLED:

  boost              conda-forge/osx-64::boost-1.66.0-py36_1
  boost-cpp          conda-forge/osx-64::boost-cpp-1.66.0-1
  bzip2              conda-forge/osx-64::bzip2-1.0.8-haf1e3a3_2
  icu                conda-forge/osx-64::icu-58.2-h0a44026_1000
  libblas            conda-forge/osx-64::libblas-3.8.0-17_openblas
  libcblas           conda-forge/osx-64::libcblas-3.8.0-17_openblas
  libgfortran        conda-forge/osx-64::libgfortran-4.0.0-2
  liblapack          conda-forge/osx-64::liblapack-3.8.0-17_openblas
  libopenblas        conda-forge/osx-64::libopenblas-0.3.10-openmp_h63d9170_4
  llvm-openmp        conda-forge/osx-64::llvm-openmp-10.0.1-h28b9765_0
  numpy              conda-forge/osx-64::numpy-1.19.1-py36h4a66613_0
  pykep              conda-forge/osx-64::pykep-2.1-py36_1


Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
(OrbDet) user@Samuels-Mac-Pro orbitdeterminator % conda install matplotlib
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /Users/user/opt/anaconda3/envs/OrbDet

  added / updated specs:
    - matplotlib


The following NEW packages will be INSTALLED:

  cycler             conda-forge/noarch::cycler-0.10.0-py_2
  freetype           conda-forge/osx-64::freetype-2.10.2-h8da9a1a_0
  jpeg               conda-forge/osx-64::jpeg-9d-h0b31af3_0
  kiwisolver         conda-forge/osx-64::kiwisolver-1.2.0-py36h863e41a_0
  lcms2              conda-forge/osx-64::lcms2-2.11-h174193d_0
  libpng             conda-forge/osx-64::libpng-1.6.37-hb0a8c7a_2
  libtiff            conda-forge/osx-64::libtiff-4.1.0-h2ae36a8_6
  libwebp-base       conda-forge/osx-64::libwebp-base-1.1.0-h0b31af3_3
  lz4-c              conda-forge/osx-64::lz4-c-1.9.2-h4a8c4bd_1
  matplotlib         conda-forge/osx-64::matplotlib-3.3.0-1
  matplotlib-base    conda-forge/osx-64::matplotlib-base-3.3.0-py36h534ab7b_1
  olefile            conda-forge/noarch::olefile-0.46-py_0
  pillow             conda-forge/osx-64::pillow-7.2.0-py36h2ae5dfa_1
  pyparsing          conda-forge/noarch::pyparsing-2.4.7-pyh9f0ad1d_0
  python-dateutil    conda-forge/noarch::python-dateutil-2.8.1-py_0
  six                conda-forge/noarch::six-1.15.0-pyh9f0ad1d_0
  tornado            conda-forge/osx-64::tornado-6.0.4-py36h37b9a7d_1
  zstd               conda-forge/osx-64::zstd-1.4.5-h0384e3a_2


Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
(OrbDet) user@Samuels-Mac-Pro orbitdeterminator % pip install -r requirements.txt

Collecting https://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-1.0.12.tar.gz (from -r requirements.txt (line 17))
  Using cached https://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-1.0.12.tar.gz (230 kB)
Collecting astropy==3.0.3
  Using cached astropy-3.0.3-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (7.5 MB)
Collecting attrs==17.4.0
  Using cached attrs-17.4.0-py2.py3-none-any.whl (31 kB)
Collecting colorama==0.3.9
  Using cached colorama-0.3.9-py2.py3-none-any.whl (20 kB)
Requirement already satisfied: cycler==0.10.0 in /Users/user/opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages (from -r requirements.txt (line 4)) (0.10.0)
Collecting numpy==1.15.4
  Using cached numpy-1.15.4-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (24.5 MB)
Collecting pluggy==0.6.0
  Using cached pluggy-0.6.0-py3-none-any.whl (13 kB)
Collecting poliastro==0.9.1
  Using cached poliastro-0.9.1-py3-none-any.whl (76 kB)
Collecting py==1.5.2
  Using cached py-1.5.2-py2.py3-none-any.whl (88 kB)
Collecting pyparsing==2.2.0
  Using cached pyparsing-2.2.0-py2.py3-none-any.whl (56 kB)
Collecting pytest==3.4.0
  Using cached pytest-3.4.0-py2.py3-none-any.whl (188 kB)
Collecting python-dateutil==2.7.3
  Using cached python_dateutil-2.7.3-py2.py3-none-any.whl (211 kB)
Collecting pytz==2018.3
  Using cached pytz-2018.3-py2.py3-none-any.whl (509 kB)
Collecting scipy==1.0.0
  Using cached scipy-1.0.0-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (16.7 MB)
Processing /Users/user/Library/Caches/pip/wheels/19/1b/70/aa7b902255109898392ec189d0de477d9222dcc49eaea815f1/sgp4-1.4-py3-none-any.whl
Collecting six==1.11.0
  Using cached six-1.11.0-py2.py3-none-any.whl (10 kB)
Collecting beautifulsoup4==4.6
  Using cached beautifulsoup4-4.6.0-py3-none-any.whl (86 kB)
Collecting requests
  Using cached requests-2.24.0-py2.py3-none-any.whl (61 kB)
Collecting inquirer
  Using cached inquirer-2.7.0-py2.py3-none-any.whl (31 kB)
Requirement already satisfied: matplotlib>=2.0 in /Users/user/opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages (from poliastro==0.9.1->-r requirements.txt (line 7)) (3.3.0)
Collecting numba>=0.25; implementation_name == "cpython"
  Using cached numba-0.50.1-cp36-cp36m-macosx_10_14_x86_64.whl (2.1 MB)
Collecting pandas
  Using cached pandas-1.1.0-cp36-cp36m-macosx_10_9_x86_64.whl (10.6 MB)
Collecting plotly
  Using cached plotly-4.9.0-py2.py3-none-any.whl (12.9 MB)
Processing /Users/user/Library/Caches/pip/wheels/48/67/ed/21bb8af8724f9889e7f1f0bb77093a9a71b3f9296574a14837/jplephem-2.14-py3-none-any.whl
Processing /Users/user/Library/Caches/pip/wheels/7f/e1/15/2f09f04a8f604d9579d65109f0d034790c581b88515136235f/CALLHORIZONS-1.1.1-py3-none-any.whl
Requirement already satisfied: setuptools in /Users/user/opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages (from pytest==3.4.0->-r requirements.txt (line 10)) (49.6.0.post20200814)
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
  Using cached urllib3-1.25.10-py2.py3-none-any.whl (127 kB)
Collecting idna<3,>=2.5
  Using cached idna-2.10-py2.py3-none-any.whl (58 kB)
Collecting chardet<4,>=3.0.2
  Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Requirement already satisfied: certifi>=2017.4.17 in /Users/user/opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages (from requests->-r requirements.txt (line 18)) (2020.6.20)
Collecting python-editor==1.0.4
  Using cached python_editor-1.0.4-py3-none-any.whl (4.9 kB)
Collecting readchar==2.0.1
  Using cached readchar-2.0.1-py3-none-any.whl (6.9 kB)
Collecting blessed==1.17.6
  Using cached blessed-1.17.6-py2.py3-none-any.whl (76 kB)
Requirement already satisfied: kiwisolver>=1.0.1 in /Users/user/opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages (from matplotlib>=2.0->poliastro==0.9.1->-r requirements.txt (line 7)) (1.2.0)
Requirement already satisfied: pillow>=6.2.0 in /Users/user/opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages (from matplotlib>=2.0->poliastro==0.9.1->-r requirements.txt (line 7)) (7.2.0)
Collecting llvmlite<0.34,>=0.33.0.dev0
  Using cached llvmlite-0.33.0-cp36-cp36m-macosx_10_9_x86_64.whl (17.3 MB)
Processing /Users/user/Library/Caches/pip/wheels/ac/cb/8a/b27bf6323e2f4c462dcbf77d70b7c5e7868a7fbe12871770cf/retrying-1.3.3-py3-none-any.whl
Collecting wcwidth>=0.1.4
  Using cached wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
Building wheels for collected packages: mysql-connector-python
  Building wheel for mysql-connector-python (setup.py) ... done
  Created wheel for mysql-connector-python: filename=mysql_connector_python-1.0.12-py3-none-any.whl size=67307 sha256=a45534493ebd63d5aecd2e38b411422ab894e7fd60418f801b3fd578717aee3c
  Stored in directory: /Users/user/Library/Caches/pip/wheels/e4/e6/5b/da539652b3aff77375c113aecbfa951e2538f94ca30a2caa38
Successfully built mysql-connector-python
Installing collected packages: numpy, astropy, attrs, colorama, pluggy, beautifulsoup4, llvmlite, numba, pytz, six, python-dateutil, pandas, scipy, urllib3, idna, chardet, requests, retrying, plotly, jplephem, callhorizons, poliastro, py, pyparsing, pytest, sgp4, python-editor, readchar, wcwidth, blessed, inquirer, mysql-connector-python
  Attempting uninstall: numpy
    Found existing installation: numpy 1.19.1
    Uninstalling numpy-1.19.1:
      Successfully uninstalled numpy-1.19.1
  Attempting uninstall: llvmlite
    Found existing installation: llvmlite 0.34.0
    Uninstalling llvmlite-0.34.0:
      Successfully uninstalled llvmlite-0.34.0
  Attempting uninstall: six
    Found existing installation: six 1.15.0
    Uninstalling six-1.15.0:
      Successfully uninstalled six-1.15.0
  Attempting uninstall: python-dateutil
    Found existing installation: python-dateutil 2.8.1
    Uninstalling python-dateutil-2.8.1:
      Successfully uninstalled python-dateutil-2.8.1
  Attempting uninstall: pyparsing
    Found existing installation: pyparsing 2.4.7
    Uninstalling pyparsing-2.4.7:
      Successfully uninstalled pyparsing-2.4.7
Successfully installed astropy-3.0.3 attrs-17.4.0 beautifulsoup4-4.6.0 blessed-1.17.6 callhorizons-1.1.1 chardet-3.0.4 colorama-0.3.9 idna-2.10 inquirer-2.7.0 jplephem-2.14 llvmlite-0.33.0 mysql-connector-python-1.0.12 numba-0.50.1 numpy-1.15.4 pandas-1.1.0 plotly-4.9.0 pluggy-0.6.0 poliastro-0.9.1 py-1.5.2 pyparsing-2.2.0 pytest-3.4.0 python-dateutil-2.7.3 python-editor-1.0.4 pytz-2018.3 readchar-2.0.1 requests-2.24.0 retrying-1.3.3 scipy-1.0.0 sgp4-1.4 six-1.11.0 urllib3-1.25.10 wcwidth-0.2.5
(OrbDet) user@Samuels-Mac-Pro orbitdeterminator %

The problem occurs when I attempt to test the install as follows.

(OrbDet) user@Samuels-Mac-Pro orbitdeterminator % pytest
==================================================================================================================== test session starts =====================================================================================================================
platform darwin -- Python 3.6.11, pytest-3.4.0, py-1.5.2, pluggy-0.6.0
rootdir: /Users/user/orbitdeterminator, inifile:
collected 15 items / 6 errors                                                                                                                                                                                                                                

=========================================================================================================================== ERRORS ===========================================================================================================================
______________________________________________________________________________________________ ERROR collecting orbitdeterminator/tests/test_check_keplerian.py ______________________________________________________________________________________________
ImportError while importing test module '/Users/user/orbitdeterminator/orbitdeterminator/tests/test_check_keplerian.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
orbitdeterminator/tests/test_check_keplerian.py:4: in <module>
    from orbitdeterminator.kep_determination import lamberts_kalman
orbitdeterminator/kep_determination/lamberts_kalman.py:12: in <module>
    import matplotlib.pylab as plt
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/pylab.py:35: in <module>
    from matplotlib import cbook, mlab, pyplot as plt
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/pyplot.py:36: in <module>
    import matplotlib.colorbar
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/colorbar.py:44: in <module>
    import matplotlib.contour as contour
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/contour.py:17: in <module>
    import matplotlib.text as text
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/text.py:16: in <module>
    from .textpath import TextPath  # Unused, but imported by others.
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/textpath.py:11: in <module>
    from matplotlib.mathtext import MathTextParser
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/mathtext.py:27: in <module>
    from PIL import Image
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/PIL/Image.py:94: in <module>
    from . import _imaging as core
E   ImportError: dlopen(/Users/user/opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/PIL/_imaging.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libtiff.5.dylib
E     Referenced from: /Users/user/opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/PIL/_imaging.cpython-36m-darwin.so
E     Reason: Incompatible library version: _imaging.cpython-36m-darwin.so requires version 11.0.0 or later, but libtiff.5.dylib provides version 10.0.0
________________________________________________________________________________________________ ERROR collecting orbitdeterminator/tests/test_ellipse_fit.py ________________________________________________________________________________________________
ImportError while importing test module '/Users/user/orbitdeterminator/orbitdeterminator/tests/test_ellipse_fit.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
orbitdeterminator/tests/test_ellipse_fit.py:11: in <module>
    from kep_determination.ellipse_fit import determine_kep
orbitdeterminator/kep_determination/ellipse_fit.py:8: in <module>
    import matplotlib.pyplot as plt
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/pyplot.py:36: in <module>
    import matplotlib.colorbar
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/colorbar.py:44: in <module>
    import matplotlib.contour as contour
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/contour.py:17: in <module>
    import matplotlib.text as text
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/text.py:16: in <module>
    from .textpath import TextPath  # Unused, but imported by others.
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/textpath.py:11: in <module>
    from matplotlib.mathtext import MathTextParser
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/mathtext.py:27: in <module>
    from PIL import Image
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/PIL/Image.py:94: in <module>
    from . import _imaging as core
E   ImportError: dlopen(/Users/user/opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/PIL/_imaging.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libtiff.5.dylib
E     Referenced from: /Users/user/opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/PIL/_imaging.cpython-36m-darwin.so
E     Reason: Incompatible library version: _imaging.cpython-36m-darwin.so requires version 11.0.0 or later, but libtiff.5.dylib provides version 10.0.0
__________________________________________________________________________________________________ ERROR collecting orbitdeterminator/tests/test_filters.py __________________________________________________________________________________________________
ImportError while importing test module '/Users/user/orbitdeterminator/orbitdeterminator/tests/test_filters.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
orbitdeterminator/tests/test_filters.py:5: in <module>
    from orbitdeterminator.filters import triple_moving_average as tma
orbitdeterminator/filters/triple_moving_average.py:11: in <module>
    import matplotlib.pyplot as plt
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/pyplot.py:36: in <module>
    import matplotlib.colorbar
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/colorbar.py:44: in <module>
    import matplotlib.contour as contour
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/contour.py:17: in <module>
    import matplotlib.text as text
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/text.py:16: in <module>
    from .textpath import TextPath  # Unused, but imported by others.
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/textpath.py:11: in <module>
    from matplotlib.mathtext import MathTextParser
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/mathtext.py:27: in <module>
    from PIL import Image
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/PIL/Image.py:94: in <module>
    from . import _imaging as core
E   ImportError: dlopen(/Users/user/opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/PIL/_imaging.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libtiff.5.dylib
E     Referenced from: /Users/user/opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/PIL/_imaging.cpython-36m-darwin.so
E     Reason: Incompatible library version: _imaging.cpython-36m-darwin.so requires version 11.0.0 or later, but libtiff.5.dylib provides version 10.0.0
__________________________________________________________________________________________________ ERROR collecting orbitdeterminator/tests/test_kalman.py ___________________________________________________________________________________________________
ImportError while importing test module '/Users/user/orbitdeterminator/orbitdeterminator/tests/test_kalman.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
orbitdeterminator/tests/test_kalman.py:4: in <module>
    from orbitdeterminator.kep_determination import lamberts_kalman
orbitdeterminator/kep_determination/lamberts_kalman.py:12: in <module>
    import matplotlib.pylab as plt
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/pylab.py:35: in <module>
    from matplotlib import cbook, mlab, pyplot as plt
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/pyplot.py:36: in <module>
    import matplotlib.colorbar
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/colorbar.py:44: in <module>
    import matplotlib.contour as contour
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/contour.py:17: in <module>
    import matplotlib.text as text
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/text.py:16: in <module>
    from .textpath import TextPath  # Unused, but imported by others.
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/textpath.py:11: in <module>
    from matplotlib.mathtext import MathTextParser
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/mathtext.py:27: in <module>
    from PIL import Image
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/PIL/Image.py:94: in <module>
    from . import _imaging as core
E   ImportError: dlopen(/Users/user/opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/PIL/_imaging.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libtiff.5.dylib
E     Referenced from: /Users/user/opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/PIL/_imaging.cpython-36m-darwin.so
E     Reason: Incompatible library version: _imaging.cpython-36m-darwin.so requires version 11.0.0 or later, but libtiff.5.dylib provides version 10.0.0
______________________________________________________________________________________________ ERROR collecting orbitdeterminator/tests/test_lamberts_kalman.py ______________________________________________________________________________________________
ImportError while importing test module '/Users/user/orbitdeterminator/orbitdeterminator/tests/test_lamberts_kalman.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
orbitdeterminator/tests/test_lamberts_kalman.py:4: in <module>
    from orbitdeterminator.kep_determination import (lamberts_kalman, interpolation)
orbitdeterminator/kep_determination/lamberts_kalman.py:12: in <module>
    import matplotlib.pylab as plt
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/pylab.py:35: in <module>
    from matplotlib import cbook, mlab, pyplot as plt
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/pyplot.py:36: in <module>
    import matplotlib.colorbar
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/colorbar.py:44: in <module>
    import matplotlib.contour as contour
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/contour.py:17: in <module>
    import matplotlib.text as text
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/text.py:16: in <module>
    from .textpath import TextPath  # Unused, but imported by others.
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/textpath.py:11: in <module>
    from matplotlib.mathtext import MathTextParser
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/mathtext.py:27: in <module>
    from PIL import Image
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/PIL/Image.py:94: in <module>
    from . import _imaging as core
E   ImportError: dlopen(/Users/user/opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/PIL/_imaging.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libtiff.5.dylib
E     Referenced from: /Users/user/opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/PIL/_imaging.cpython-36m-darwin.so
E     Reason: Incompatible library version: _imaging.cpython-36m-darwin.so requires version 11.0.0 or later, but libtiff.5.dylib provides version 10.0.0
_____________________________________________________________________________________________ ERROR collecting orbitdeterminator/tests/test_orbit_trajectory.py ______________________________________________________________________________________________
ImportError while importing test module '/Users/user/orbitdeterminator/orbitdeterminator/tests/test_orbit_trajectory.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
orbitdeterminator/tests/test_orbit_trajectory.py:4: in <module>
    from orbitdeterminator.kep_determination import lamberts_kalman
orbitdeterminator/kep_determination/lamberts_kalman.py:12: in <module>
    import matplotlib.pylab as plt
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/pylab.py:35: in <module>
    from matplotlib import cbook, mlab, pyplot as plt
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/pyplot.py:36: in <module>
    import matplotlib.colorbar
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/colorbar.py:44: in <module>
    import matplotlib.contour as contour
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/contour.py:17: in <module>
    import matplotlib.text as text
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/text.py:16: in <module>
    from .textpath import TextPath  # Unused, but imported by others.
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/textpath.py:11: in <module>
    from matplotlib.mathtext import MathTextParser
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/matplotlib/mathtext.py:27: in <module>
    from PIL import Image
../opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/PIL/Image.py:94: in <module>
    from . import _imaging as core
E   ImportError: dlopen(/Users/user/opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/PIL/_imaging.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libtiff.5.dylib
E     Referenced from: /Users/user/opt/anaconda3/envs/OrbDet/lib/python3.6/site-packages/PIL/_imaging.cpython-36m-darwin.so
E     Reason: Incompatible library version: _imaging.cpython-36m-darwin.so requires version 11.0.0 or later, but libtiff.5.dylib provides version 10.0.0
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 6 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
================================================================================================================== 6 error in 7.79 seconds ===================================================================================================================
(OrbDet) user@Samuels-Mac-Pro orbitdeterminator % 

Did I miss a step in the install, or what?

Please advise.

Sam Dupree.

@OrbitalMechanic
Copy link
Author

I attempted to install Orbitdeterminator under Python 3.7. I was successful at installing Orbitdeterminator from the test I ran:

(xOrbDet) user@Samuels-Mac-Pro orbitdeterminator % pytest
======================================================================================== test session starts ========================================================================================
platform darwin -- Python 3.7.8, pytest-5.4.3, py-1.9.0, pluggy-0.13.1
rootdir: /Users/user/orbitdeterminator
plugins: timeout-1.3.4, doctestplus-0.7.0, arraydiff-0.3, hypothesis-5.20.2, remotedata-0.3.1, openfiles-0.5.0, astropy-header-0.1.2
collected 26 items                                                                                                                                                                                  

orbitdeterminator/tests/test_check_keplerian.py ....                                                                                                                                          [ 15%]
orbitdeterminator/tests/test_ellipse_fit.py .                                                                                                                                                 [ 19%]
orbitdeterminator/tests/test_filters.py .                                                                                                                                                     [ 23%]
orbitdeterminator/tests/test_gibbsMethod.py ........                                                                                                                                          [ 53%]
orbitdeterminator/tests/test_input_transf.py .                                                                                                                                                [ 57%]
orbitdeterminator/tests/test_kalman.py ..                                                                                                                                                     [ 65%]
orbitdeterminator/tests/test_lamberts_kalman.py .                                                                                                                                             [ 69%]
orbitdeterminator/tests/test_orbit_trajectory.py ..                                                                                                                                           [ 76%]
orbitdeterminator/tests/test_sav_golay.py ...                                                                                                                                                 [ 88%]
orbitdeterminator/tests/test_sgp4.py ..                                                                                                                                                       [ 96%]
orbitdeterminator/tests/test_statekep_kepstate.py .                                                                                                                                           [100%]

========================================================================================= warnings summary ==========================================================================================
orbitdeterminator/kep_determination/gibbsMethod.py:141
  /Users/user/orbitdeterminator/orbitdeterminator/kep_determination/gibbsMethod.py:141: DeprecationWarning: invalid escape sequence \s
    r1 = self.convert_list(re.split('\t|\s', str1))

orbitdeterminator/kep_determination/gibbsMethod.py:142
  /Users/user/orbitdeterminator/orbitdeterminator/kep_determination/gibbsMethod.py:142: DeprecationWarning: invalid escape sequence \s
    r2 = self.convert_list(re.split('\t|\s', str2))

orbitdeterminator/kep_determination/gibbsMethod.py:157
  /Users/user/orbitdeterminator/orbitdeterminator/kep_determination/gibbsMethod.py:157: DeprecationWarning: invalid escape sequence \s
    r3 = self.convert_list(re.split('\t|\s', str3))

-- Docs: https://docs.pytest.org/en/latest/warnings.html
================================================================================== 26 passed, 3 warnings in 6.66s ===================================================================================
(xOrbDet) user@Samuels-Mac-Pro orbitdeterminator % conda list
# packages in environment at /Users/user/opt/anaconda3/envs/xOrbDet:

The entire installation processed is captured in the attached file. My next step will be running the tutorial in the documentation. However, I still have questions concerning the three warning issued.

Please advise.

Sam Dupree

xOrbDet install.txt

@hornig
Copy link
Collaborator

hornig commented Oct 13, 2020

Hi @OrbitalMechanic,
as far as I was able to see, the tests had paths leading to nowhere.
I opened this PR for it #206 and it solved (at least my) problems. I still need to check for the check_sgp4 for what that is used #207
But I think it was these artifacts I also see in your copied logs.

For example the lamberts_kalman.py is in .kep_determinator and adding the orbitdeterminator before caused problems for me.
from orbitdeterminator.kep_determination import lamberts_kalman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants