-
Notifications
You must be signed in to change notification settings - Fork 42
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
ERROR: Your setuptools version is too old (<12) #43
Comments
Same issue here |
Hi conda install -y -n pywafo2 -y -c conda-forge python=2.7 "setuptools_scm<2.0" "pbr=1.10" 'pyscaffold>=2.4rc1,<2.5a0' "scipy>=0.9" matplotlib numpy "numdifftools>=0.2" mpmath "numba<0.44" "setuptools<39" fortran-compiler pytest pytest-cov |
Hi, |
@Slagstad this package uses Python 2.7, so you will NOT be able to use it with 3.7. You can either set up a conda environment that uses Python 2.7 as above, or try using a Python 3 version of this repo, e.g. my one here: available. The downside of this of course is that I cannot guarantee any of the functionality as I do not update that repo and have not tested it beyond the few bits I actually use, but if it's useful to you then you are welcome to try it. |
Hi all, This package IS Python 3 compatible as well. Some time ago I got it to work to build for Python 3.6 using (I think) old versions of pyscaffold and setuptools, but I recently ran into problems after updating to Python 3.7 and I could not get an environment working with those old versions. Luckily I found a way of building it again which I have done for Python 3.6, 3.7 and 3.8. Here is what worked for me. Install a Fortran compiler and C++ Build Tools (e.g. from here and here) and download a copy of this repo. Use Anaconda3 and create a new environment (example for Python 3.7)
(This gives me setuptools 46.1.3 btw). The next step would be to run In setup.py, remove the upper version bound for pyscaffold, like so Running This was (for some reason I don't understand) solved by copying the PKG-INFO file from the wafo 0.3.1 release on pypi to the same folder as setup.py. So download this wafo release, extract the tarball and copy the PKG-INFO file. Now build with I always have to run this 3 times before the wheel is created in the dist folder. It seems different .mod files are not found after the first and second time. Install with Other notes
|
@morbult thank you for the detailed explanation! I did install the Fortran compiler and C++ Build Tools you mentioned. After running Now I dont know how to make the Fortran compiler and C++ Build Tools to be used during the installation. I tried to check the setup.py but i cannot see where to specify them. Can you help me? Thank you! |
@rscorrea1 you're welcome! |
@morbult Your explanation is pretty accurate! If I run the tutorial scripts (Chapter 1 - Estimation of spectrum) I face issues like Another issue which is related to pylab and/or matplotlib. the method stineman_interp is deprecated and the following import erros is raised: if you want to try to reproduce the aforementioned errors you can run the Section 1.4.1 Simulation from spectrum, Estimation of spectrum here (Jupyter notbook field [7]). If you are not facing that issue, could you share which numpy and matplotlib versions you are using? Again, many thanks! |
That's great! Regarding your new problems, I think you should create a new issue since they don't relate to this issue about setuptools. Include sample code to reproduce the errors. I don't think I will be able to help you though. I don't manage this package and don't know a whole lot about it really. The few functions I use relate to rainflow cycle counting and they work fine. I use numpy 1.18.1 and matplotlib 3.1.3 in my recent builds but I have used older versions before. |
I think it would probably be better to just get rid of pyscaffold altogether and create a proper |
Also a conda or pip install would be much easier, despite a few atempts, I was never able to install pywafo. |
Releasing wheels and conda packages would for sure be much appreciated by many people. I'd be happy to help to redo setup.py, make conda recipes etc if needed. I only run on Windows though and never got the Fortran extensions to compile correctly. |
Any help welcome! Getting the extensions to compile on Windows is not that straightforward, but it is doable. I am on Linux though and don't have working Windows setup ready to build the Windows packages. A conda recipe would also be much appreciated. |
@davidovitch Do you have any pointers on where to start looking to get it to work? It would be nice to be able to build properly. The extensions actually do compile and I get 5 .pyd files ( |
@morbult What version of SciPy did you use? I'm having trouble finding a valid version of SciPy for Python 3.7. |
The command "python setup.py bdist_wheel -d dist" produces "ERROR: Your setuptools version is too old (<12)". Yet, the installed setuptools version is 41.0.1, as seen below. Please help!
linux@linux:
/MODELOS/wafo/pywafo-master > python setup.py bdist_wheel -d dist/MODELOS/wafo/pywafo-master > python setup.py bdist_wheel -d dist > out.txtTraceback (most recent call last):
File "setup.py", line 110, in
setup_package_pyscaffold()
File "setup.py", line 106, in setup_package_pyscaffold
**config.todict())
File "/usr/lib/python2.7/dist-packages/numpy/distutils/core.py", line 169, in setup
return old_setup(**new_attr)
File "/usr/local/lib/python2.7/dist-packages/setuptools/init.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python2.7/dist-packages/numpy/distutils/numpy_distribution.py", line 16, in init
Distribution.init(self, attrs)
File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 444, in init
k: v for k, v in attrs.items()
File "/usr/lib/python2.7/distutils/dist.py", line 287, in init
self.finalize_options()
File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 732, in finalize_options
ep.load()(self, ep.name, value)
File "/home/linux/MODELOS/wafo/pywafo-master/.eggs/pyscaffold-2.4.4-py2.7.egg/pyscaffold/integration.py", line 105, in pyscaffold_keyword
check_setuptools_version()
File "/home/linux/MODELOS/wafo/pywafo-master/.eggs/pyscaffold-2.4.4-py2.7.egg/pyscaffold/utils.py", line 210, in check_setuptools_version
"ERROR: Your setuptools version is too old (<12).\n"
RuntimeError: ERROR: Your setuptools version is too old (<12).
Use
pip install -U setuptools
to upgrade.linux@linux:
Traceback (most recent call last):
File "setup.py", line 110, in
setup_package_pyscaffold()
File "setup.py", line 106, in setup_package_pyscaffold
**config.todict())
File "/usr/lib/python2.7/dist-packages/numpy/distutils/core.py", line 169, in setup
return old_setup(**new_attr)
File "/usr/local/lib/python2.7/dist-packages/setuptools/init.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python2.7/dist-packages/numpy/distutils/numpy_distribution.py", line 16, in init
Distribution.init(self, attrs)
File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 444, in init
k: v for k, v in attrs.items()
File "/usr/lib/python2.7/distutils/dist.py", line 287, in init
self.finalize_options()
File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 732, in finalize_options
ep.load()(self, ep.name, value)
File "/home/linux/MODELOS/wafo/pywafo-master/.eggs/pyscaffold-2.4.4-py2.7.egg/pyscaffold/integration.py", line 105, in pyscaffold_keyword
check_setuptools_version()
File "/home/linux/MODELOS/wafo/pywafo-master/.eggs/pyscaffold-2.4.4-py2.7.egg/pyscaffold/utils.py", line 210, in check_setuptools_version
"ERROR: Your setuptools version is too old (<12).\n"
RuntimeError: ERROR: Your setuptools version is too old (<12).
Use
pip install -U setuptools
to upgrade.linux@linux:~/MODELOS/wafo/pywafo-master > easy_install --version
setuptools 41.0.1 from /usr/local/lib/python2.7/dist-packages (Python 2.7)
The text was updated successfully, but these errors were encountered: