ukhsa-collaboration / pygom

ODE modelling in Python
GNU General Public License v2.0
27 stars 20 forks source link

Errors installing pygom on Mac (setup.py generating error) #61

Closed funkedavid82 closed 3 months ago

funkedavid82 commented 2 years ago

I work with Martin Grunnil and he has opened a previous issue (#58) on this subject on my behalf. In addition, no one has been able to use pygom on Mac in my lab. See the errors bellow. Thank you in anticipation.

Traceback (most recent call last): File "setup.py", line 105, in scripts=[] File "/Applications/Anaconda3/anaconda/lib/python3.5/site-packages/setuptools/init.py", line 140, in setup return distutils.core.setup(attrs) File "/Applications/Anaconda3/anaconda/lib/python3.5/distutils/core.py", line 108, in setup _setup_distribution = dist = klass(attrs) File "/Applications/Anaconda3/anaconda/lib/python3.5/site-packages/setuptools/dist.py", line 370, in init k: v for k, v in attrs.items() File "/Applications/Anaconda3/anaconda/lib/python3.5/distutils/dist.py", line 281, in init self.finalize_options() File "/Applications/Anaconda3/anaconda/lib/python3.5/site-packages/setuptools/dist.py", line 529, in finalize_options ep.load()(self, ep.name, value) File "/Applications/Anaconda3/anaconda/lib/python3.5/site-packages/pkg_resources/init.py", line 2325, in load return self.resolve() File "/Applications/Anaconda3/anaconda/lib/python3.5/site-packages/pkg_resources/init.py", line 2331, in resolve module = import(self.module_name, fromlist=['name'], level=0) File "/Users/jummy30/Documents/nextcloud/MacDocBK/YORK_PDV_FIELDS/Martin/PYGOM/pygom-master/.eggs/setuptools_scm-6.4.2-py3.5.egg/setuptools_scm/init.py", line 90 version: Optional[ScmVersion] ^ SyntaxError: invalid syntax**

m-d-grunnill commented 2 years ago

Within the setup.py file try replacing line 82:

    use_scm_version=True,

with:

    version=0.17,
twomagpi commented 3 months ago

Would be good to know if this works for Mac (we have no access to a Mac) so very hard to debug and CI setup is non-trivial.