sys-bio / tellurium

Python Environment for Modeling and Simulating Biological Systems
http://tellurium.analogmachine.org/
Apache License 2.0
107 stars 36 forks source link

installation problem with Python 3.7 #441

Open yarden opened 4 years ago

yarden commented 4 years ago

Hello,

I'm having trouble installing tellurium on Mac OS X 10.13.6 with pip. The error I get from pip is nondeterministic - sometimes it complains about phrasedml being unavailable, other times about tesedbml or sbml2matlab. Example:

$ pip install tellurium
Collecting tellurium
  Using cached https://files.pythonhosted.org/packages/5d/3a/77879c6cc93e9be58aef94ecfc7b0e4ae3ba7f9a4dd6b643f8846a6def78/tellurium-2.1.5-py2.py3-none-any.whl
Requirement already satisfied: numpy>=1.11.0 in /Users/yarden/miniconda2/envs/py3/lib/python3.7/site-packages (from tellurium) (1.16.3)
Collecting libroadrunner>=1.4.24
  Using cached https://files.pythonhosted.org/packages/e1/c1/80e7512d3a713c9fdfeca3d2a6a50f94074f1f6413d3c7573dd0043a0bff/libroadrunner-1.5.4-cp37-cp37m-macosx_10_9_x86_64.whl
Requirement already satisfied: scipy>=0.19.0 in /Users/yarden/miniconda2/envs/py3/lib/python3.7/site-packages (from tellurium) (1.2.1)
Requirement already satisfied: ipython in /Users/yarden/miniconda2/envs/py3/lib/python3.7/site-packages (from tellurium) (7.6.1)
ERROR: Could not find a version that satisfies the requirement phrasedml>=1.0.9 (from tellurium) (from versions: none)
ERROR: No matching distribution found for phrasedml>=1.0.9 (from tellurium)

And also:

$ pip install tellurium
Collecting tellurium
  Using cached https://files.pythonhosted.org/packages/5d/3a/77879c6cc93e9be58aef94ecfc7b0e4ae3ba7f9a4dd6b643f8846a6def78/tellurium-2.1.5-py2.py3-none-any.whl
Collecting libroadrunner>=1.4.24
  Using cached https://files.pythonhosted.org/packages/e1/c1/80e7512d3a713c9fdfeca3d2a6a50f94074f1f6413d3c7573dd0043a0bff/libroadrunner-1.5.4-cp37-cp37m-macosx_10_9_x86_64.whl
Collecting jupyter-client>=5.1.0
  Using cached https://files.pythonhosted.org/packages/13/81/fe0eee1bcf949851a120254b1f530ae1e01bdde2d3ab9710c6ff81525061/jupyter_client-5.3.4-py2.py3-none-any.whl
Requirement already satisfied: requests in /Users/yarden/miniconda2/envs/py3/lib/python3.7/site-packages (from tellurium) (2.21.0)
ERROR: Could not find a version that satisfies the requirement sbml2matlab>=0.9.1 (from tellurium) (from versions: none)
ERROR: No matching distribution found for sbml2matlab>=0.9.1 (from tellurium)

I'm guessing because some of those packages don't have wheels for my platform? The packages certainly appear on pypi. Perhaps this is related to this issue (https://github.com/sys-bio/tellurium/issues/417)?

It would be great if in the future these SBML dependencies could be consolidated into one package, since package management tools in Python are very unreliable and having multiple dependencies for one basic feature (SBML parsing I am assuming?) is error prone.

Thanks very much.

hsauro commented 4 years ago

They should all be there, we're working on a new version of the 3.7 release this month so this is a good time to hear about these issues. I will refer this problem to Andrew who might have more to say. the usual reason for these kinds of errors is that there isn't a 3.7 version for a particular package, we must ensure there is.

Herbert Sauro

On Mon, Dec 16, 2019 at 12:52 PM Yarden Katz notifications@github.com wrote:

Hello,

I'm having trouble installing tellurium on Mac OS X 10.13.6 with pip. The error I get from pip is nondeterministic - sometimes it complains about phrasedml being unavailable, other times about tesedbml or sbml2matlab. Example:

$ pip install tellurium Collecting tellurium Using cached https://files.pythonhosted.org/packages/5d/3a/77879c6cc93e9be58aef94ecfc7b0e4ae3ba7f9a4dd6b643f8846a6def78/tellurium-2.1.5-py2.py3-none-any.whl Requirement already satisfied: numpy>=1.11.0 in /Users/yarden/miniconda2/envs/py3/lib/python3.7/site-packages (from tellurium) (1.16.3) Collecting libroadrunner>=1.4.24 Using cached https://files.pythonhosted.org/packages/e1/c1/80e7512d3a713c9fdfeca3d2a6a50f94074f1f6413d3c7573dd0043a0bff/libroadrunner-1.5.4-cp37-cp37m-macosx_10_9_x86_64.whl Requirement already satisfied: scipy>=0.19.0 in /Users/yarden/miniconda2/envs/py3/lib/python3.7/site-packages (from tellurium) (1.2.1) Requirement already satisfied: ipython in /Users/yarden/miniconda2/envs/py3/lib/python3.7/site-packages (from tellurium) (7.6.1) ERROR: Could not find a version that satisfies the requirement phrasedml>=1.0.9 (from tellurium) (from versions: none) ERROR: No matching distribution found for phrasedml>=1.0.9 (from tellurium)

And also:

$ pip install tellurium Collecting tellurium Using cached https://files.pythonhosted.org/packages/5d/3a/77879c6cc93e9be58aef94ecfc7b0e4ae3ba7f9a4dd6b643f8846a6def78/tellurium-2.1.5-py2.py3-none-any.whl Collecting libroadrunner>=1.4.24 Using cached https://files.pythonhosted.org/packages/e1/c1/80e7512d3a713c9fdfeca3d2a6a50f94074f1f6413d3c7573dd0043a0bff/libroadrunner-1.5.4-cp37-cp37m-macosx_10_9_x86_64.whl Collecting jupyter-client>=5.1.0 Using cached https://files.pythonhosted.org/packages/13/81/fe0eee1bcf949851a120254b1f530ae1e01bdde2d3ab9710c6ff81525061/jupyter_client-5.3.4-py2.py3-none-any.whl Requirement already satisfied: requests in /Users/yarden/miniconda2/envs/py3/lib/python3.7/site-packages (from tellurium) (2.21.0) ERROR: Could not find a version that satisfies the requirement sbml2matlab>=0.9.1 (from tellurium) (from versions: none) ERROR: No matching distribution found for sbml2matlab>=0.9.1 (from tellurium)

I'm guessing because some of those packages don't have feels for my platform? The packages certainly appear on pypi. Perhaps this is related to this issue (#417 https://github.com/sys-bio/tellurium/issues/417)?

It would be great if in the future these SBML dependencies could be consolidated into one package, since package management tools in Python are very unreliable and having multiple dependencies for one basic feature (SBML parsing I am assuming?) is prone to not work.

Thanks very much.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sys-bio/tellurium/issues/441?email_source=notifications&email_token=AAIBSDT3P4NWFAMYDWMFTF3QY7SW3A5CNFSM4J3QPLEKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IA3EBPQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIBSDWWPA2RKH7QZN3RCGTQY7SW3ANCNFSM4J3QPLEA .

-- Herbert Sauro, Professor University of Washington, Bioengineering 206-685-2119, www.sys-bio.org hsauro@uw.edu Books: http://books.analogmachine.org/

andrewbriand commented 4 years ago

I think the issue might simply be that the wheels for those packages on PyPI are tagged macosx_10_14. Could you try installing the packages as follows? In your downloads folder:

git clone https://github.com/andrewbriand/cp37-macos_10_9_test.git
cd cp37-macos_10_9_test
pip install phrasedml-1.0.10-cp37-cp37m-macosx_10_9_x86_64.whl sbml2matlab-1.2.3-cp37-cp37m-macosx_10_9_x86_64.whl tesedml-0.4.5.0-cp37-cp37m-macosx_10_9_x86_64.whl
yarden commented 4 years ago

Thanks @andrewbriand - that resolved the SBML issues, but led to another problem. See trace below.

installing the wheels:

~/Software/cp37-macos_10_9_test$ pip install phrasedml-1.0.10-cp37-cp37m-macosx_10_9_x86_64.whl sbml2matlab-1.2.3-cp37-cp37m-macosx_10_9_x86_64.whl tesedml-0.4.5.0-cp37-cp37m-macosx_10_9_x86_64.whl
Processing ./phrasedml-1.0.10-cp37-cp37m-macosx_10_9_x86_64.whl
Processing ./sbml2matlab-1.2.3-cp37-cp37m-macosx_10_9_x86_64.whl
Processing ./tesedml-0.4.5.0-cp37-cp37m-macosx_10_9_x86_64.whl
Installing collected packages: phrasedml, sbml2matlab, tesedml
Successfully installed phrasedml-1.0.10 sbml2matlab-1.2.3 tesedml-0.4.5.0

now trying tellurium with pip again:

~/Software/cp37-macos_10_9_test$ pip install tellurium
Collecting tellurium
  Using cached https://files.pythonhosted.org/packages/5d/3a/77879c6cc93e9be58aef94ecfc7b0e4ae3ba7f9a4dd6b643f8846a6def78/tellurium-2.1.5-py2.py3-none-any.whl
Requirement already satisfied: scipy>=0.19.0 in /Users/yarden/miniconda2/envs/py3/lib/python3.7/site-packages (from tellurium) (1.2.1)
Collecting appdirs>=1.4.3
  Using cached https://files.pythonhosted.org/packages/56/eb/810e700ed1349edde4cbdc1b2a21e28cdf115f9faf263f6bbf8447c1abf3/appdirs-1.4.3-py2.py3-none-any.whl
Collecting antimony>=2.9.3
  Using cached https://files.pythonhosted.org/packages/fe/df/d8b0d8e581a7e6c7d27e4f9eb30c800842074c138df621e80b4ab3aea6e6/antimony-2.11.0-cp37-cp37m-macosx_10_9_x86_64.whl
Requirement already satisfied: matplotlib>=2.0.2 in /Users/yarden/miniconda2/envs/py3/lib/python3.7/site-packages (from tellurium) (3.1.0)
Requirement already satisfied: sbml2matlab>=0.9.1 in /Users/yarden/miniconda2/envs/py3/lib/python3.7/site-packages (from tellurium) (1.2.3)
Collecting jupyter-core>=4.3.0
  Using cached https://files.pythonhosted.org/packages/fb/82/86437f661875e30682e99d04c13ba6c216f86f5f6ca6ef212d3ee8b6ca11/jupyter_core-4.6.1-py2.py3-none-any.whl
Collecting jupyter-client>=5.1.0
  Using cached https://files.pythonhosted.org/packages/13/81/fe0eee1bcf949851a120254b1f530ae1e01bdde2d3ab9710c6ff81525061/jupyter_client-5.3.4-py2.py3-none-any.whl
Requirement already satisfied: ipython in /Users/yarden/miniconda2/envs/py3/lib/python3.7/site-packages (from tellurium) (7.6.1)
Requirement already satisfied: requests in /Users/yarden/miniconda2/envs/py3/lib/python3.7/site-packages (from tellurium) (2.21.0)
Requirement already satisfied: tesedml>=0.4.3 in /Users/yarden/miniconda2/envs/py3/lib/python3.7/site-packages (from tellurium) (0.4.5.0)
Collecting libroadrunner>=1.4.24
  Using cached https://files.pythonhosted.org/packages/e1/c1/80e7512d3a713c9fdfeca3d2a6a50f94074f1f6413d3c7573dd0043a0bff/libroadrunner-1.5.4-cp37-cp37m-macosx_10_9_x86_64.whl
Requirement already satisfied: numpy>=1.11.0 in /Users/yarden/miniconda2/envs/py3/lib/python3.7/site-packages (from tellurium) (1.16.3)
Collecting rrplugins>=1.1.8
  Using cached https://files.pythonhosted.org/packages/f0/ef/8905a20af657a6eea8a3160e49b85f96622c7bf3d8d137ea410e1bbcafea/rrplugins-1.2.2-py2.py3-none-any.whl
Requirement already satisfied: pandas>=0.20.2 in /Users/yarden/miniconda2/envs/py3/lib/python3.7/site-packages (from tellurium) (0.24.2)
ERROR: Could not find a version that satisfies the requirement tenuml>=1.1.1 (from tellurium) (from versions: none)
ERROR: No matching distribution found for tenuml>=1.1.1 (from tellurium)
hsauro commented 4 years ago

That's numl it couldn't find, didn't realize we used numl. Andrew, it might mean you'll have to compile a version of numl for 3.7.

Herbert

On Tue, Dec 17, 2019 at 6:16 AM Yarden Katz notifications@github.com wrote:

Thanks @andrewbriand https://github.com/andrewbriand - that resolved the SBML issues, but led to another problem. See trace below.

installing the wheels:

~/Software/cp37-macos_10_9_test$ pip install phrasedml-1.0.10-cp37-cp37m-macosx_10_9_x86_64.whl sbml2matlab-1.2.3-cp37-cp37m-macosx_10_9_x86_64.whl tesedml-0.4.5.0-cp37-cp37m-macosx_10_9_x86_64.whl Processing ./phrasedml-1.0.10-cp37-cp37m-macosx_10_9_x86_64.whl Processing ./sbml2matlab-1.2.3-cp37-cp37m-macosx_10_9_x86_64.whl Processing ./tesedml-0.4.5.0-cp37-cp37m-macosx_10_9_x86_64.whl Installing collected packages: phrasedml, sbml2matlab, tesedml Successfully installed phrasedml-1.0.10 sbml2matlab-1.2.3 tesedml-0.4.5.0

now trying tellurium with pip again:

~/Software/cp37-macos_10_9_test$ pip install tellurium Collecting tellurium Using cached https://files.pythonhosted.org/packages/5d/3a/77879c6cc93e9be58aef94ecfc7b0e4ae3ba7f9a4dd6b643f8846a6def78/tellurium-2.1.5-py2.py3-none-any.whl Requirement already satisfied: scipy>=0.19.0 in /Users/yarden/miniconda2/envs/py3/lib/python3.7/site-packages (from tellurium) (1.2.1) Collecting appdirs>=1.4.3 Using cached https://files.pythonhosted.org/packages/56/eb/810e700ed1349edde4cbdc1b2a21e28cdf115f9faf263f6bbf8447c1abf3/appdirs-1.4.3-py2.py3-none-any.whl Collecting antimony>=2.9.3 Using cached https://files.pythonhosted.org/packages/fe/df/d8b0d8e581a7e6c7d27e4f9eb30c800842074c138df621e80b4ab3aea6e6/antimony-2.11.0-cp37-cp37m-macosx_10_9_x86_64.whl Requirement already satisfied: matplotlib>=2.0.2 in /Users/yarden/miniconda2/envs/py3/lib/python3.7/site-packages (from tellurium) (3.1.0) Requirement already satisfied: sbml2matlab>=0.9.1 in /Users/yarden/miniconda2/envs/py3/lib/python3.7/site-packages (from tellurium) (1.2.3) Collecting jupyter-core>=4.3.0 Using cached https://files.pythonhosted.org/packages/fb/82/86437f661875e30682e99d04c13ba6c216f86f5f6ca6ef212d3ee8b6ca11/jupyter_core-4.6.1-py2.py3-none-any.whl Collecting jupyter-client>=5.1.0 Using cached https://files.pythonhosted.org/packages/13/81/fe0eee1bcf949851a120254b1f530ae1e01bdde2d3ab9710c6ff81525061/jupyter_client-5.3.4-py2.py3-none-any.whl Requirement already satisfied: ipython in /Users/yarden/miniconda2/envs/py3/lib/python3.7/site-packages (from tellurium) (7.6.1) Requirement already satisfied: requests in /Users/yarden/miniconda2/envs/py3/lib/python3.7/site-packages (from tellurium) (2.21.0) Requirement already satisfied: tesedml>=0.4.3 in /Users/yarden/miniconda2/envs/py3/lib/python3.7/site-packages (from tellurium) (0.4.5.0) Collecting libroadrunner>=1.4.24 Using cached https://files.pythonhosted.org/packages/e1/c1/80e7512d3a713c9fdfeca3d2a6a50f94074f1f6413d3c7573dd0043a0bff/libroadrunner-1.5.4-cp37-cp37m-macosx_10_9_x86_64.whl Requirement already satisfied: numpy>=1.11.0 in /Users/yarden/miniconda2/envs/py3/lib/python3.7/site-packages (from tellurium) (1.16.3) Collecting rrplugins>=1.1.8 Using cached https://files.pythonhosted.org/packages/f0/ef/8905a20af657a6eea8a3160e49b85f96622c7bf3d8d137ea410e1bbcafea/rrplugins-1.2.2-py2.py3-none-any.whl Requirement already satisfied: pandas>=0.20.2 in /Users/yarden/miniconda2/envs/py3/lib/python3.7/site-packages (from tellurium) (0.24.2) ERROR: Could not find a version that satisfies the requirement tenuml>=1.1.1 (from tellurium) (from versions: none) ERROR: No matching distribution found for tenuml>=1.1.1 (from tellurium)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sys-bio/tellurium/issues/441?email_source=notifications&email_token=AAIBSDXM3WN3JU6WS6DZVALQZDNGBA5CNFSM4J3QPLEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHCP6GA#issuecomment-566558488, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIBSDULEHNNMT3VUMTDGO3QZDNGBANCNFSM4J3QPLEA .

-- Herbert Sauro, Professor University of Washington, Bioengineering 206-685-2119, www.sys-bio.org hsauro@uw.edu Books: http://books.analogmachine.org/

andrewbriand commented 4 years ago

I have actually compiled a python 3.7 version of tenuml, but I think the issue is again that I tagged it macOS 10.14. Could you try installing it with this command?

pip install --index-url https://test.pypi.org/simple --extra-index-url https://pypi.org/simple tenuml
yarden commented 4 years ago

I tried doing pip install ... normally and it worked this time (on same machine, etc.) so it looks like you've fixed this for main distribution?

hsauro commented 4 years ago

We do have a new version uploaded since new year that accommodated Macs with older operating systems. Glad it worked.

Herbert

On Sun, Feb 2, 2020 at 9:55 AM Yarden Katz notifications@github.com wrote:

I tried doing pip install ... normally and it worked this time (on same machine, etc.) so it looks like you've fixed this for main distribution?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sys-bio/tellurium/issues/441?email_source=notifications&email_token=AAIBSDT3MVPW5IJMJKIRWZDRA4CJBA5CNFSM4J3QPLEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKR4Y7I#issuecomment-581160061, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIBSDUGY3HL4KEMBQ7QTCDRA4CJBANCNFSM4J3QPLEA .

-- Herbert Sauro, Professor University of Washington, Bioengineering 206-685-2119, www.sys-bio.org hsauro@uw.edu Books: http://books.analogmachine.org/