-
Notifications
You must be signed in to change notification settings - Fork 46
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
numpy issue with python >= 3.12 #32
Comments
Hmm. The complicated part of migrating to setuptools is compiling the Fortran module. I don't really know how to do that in setuptools since I haven't done anything similar since I wrote PyTMatrix. |
We may be able to help. We have work coming up that needs PyTMatrix tag @mgrover1-sent from a mobile device-On Nov 6, 2023, at 4:41 PM, Jussi Leinonen ***@***.***> wrote:
Hmm. The complicated part of migrating to setuptools is compiling the Fortran module. I don't really know how to do that in setuptools since I haven't done anything similar since I wrote PyTMatrix.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
@jleinonen @scollis @mgrover1 We're also looking for getting pytmatrix to run on Python >= 3.12. |
So i have run into problems getting this installed on a linux machine. No matter what I try, i end up with this error when trying to run the tests:
Note, i hid my actual path here, but the rest is there. I am not sure what the issue is. The package builds with no errors, Python 3.11. I have tried using pip and installing from source, I get the same error |
@dopplerchase I can confirm, having the same issues locally as well. Currently trying to mimic that over at conda-forge/pytmatrix-feedstock#33. |
What I found is the |
After patching the PyPI sdist with the missing file I was able to compile with setuptools<60 under Python 3.11 locally. The simple code given in the README works so far. But I did not manage to get it running in conda-forge/pytmatrix-feedstock#33. @jleinonen would you be able to fix the sdist on PyPI? |
Just confirming same issue here (Debian, Python 3.9):
Installation (and compilation) works OK if triggered with |
… with <pip install .> and run tests successfully!! - issue jleinonen#32 from original package
Hi all. I have the same problem with other packages, so I decided to try to find a solution for pytmatrix first. @jleinonen what do you think? The LONGER version: |
Thanks @DaveOri, that's great news. 👍 I've tried without success the CMAKE approach. Good to see that you've been successful with meson. Would be great, if your efforts could be upstreamed here. |
I don't really have much to add here other than to say that I also have python projects that rely on a few Fortran extensions, and have been using numpy.distutils within setup.py to compile them up until now. (Some of these I actually hope to modify to leverage pytmatrix at some point, which is why I'm commenting here). I also wanted to thank @DaveOri for showing a way forward, but I do hope that some of the existing documentation/tutorials out there can be updated soon to help us mere mortals! |
Hello: thanks for your help. I have been trying with Meson and Mesonpytmatrix but I still have errors after: |
In case anyone else is still having this issue when trying to install with pip or the setup.py methods, I tried a lot of work-arounds before realizing installing with conda-forge works. Hopefully that helps someone else save a couple hours of setting up new environments of different python and package versions :) |
when i conda-forge pytmatrix, i have the following issue :
I try to directly conda install the file ( wich is 0.3.2 version ), but it seems that the python import don't recognise it, and lead to . I also tried to download the files directly like in the doc, but i m having an issue with : |
It would seem that going forward this package might be limited to Python < 3.12, unless the package is updated to account for the new numpy changes. From this page: https://numpy.org/doc/stable/reference/distutils.html
numpy.distutils is deprecated, and will be removed for Python >= 3.12.
Not sure how much work it is to parse this over or if its worth it.
The text was updated successfully, but these errors were encountered: