Comments (16)
It's not obvious to me what versions of Cython support Python 3.11.
Cython v0.29.28 is the minimum for Python 3.11 and Cython v0.29.32 is current.
from mdtraj.
Thx for the fix conda-forge/mdtraj-feedstock@00cc3e8, building now works after the force cython pass.
from mdtraj.
I'm not very familiar with Nix so I can't help a whole lot with the automation here, unfortunately. If 3.11rcN is built somewhere on Conda I could try it out that way. In general I expect it to work since the code has barely changed in a couple of years, but it might take a few minor tweaks.
from mdtraj.
conda-forge/python-feedstock#577
from mdtraj.
Related conda-forge/mdtraj-feedstock#45
mdtraj/geometry/drid.cpp:230:12: fatal error: longintrepr.h: No such file or directory
230 | #include "longintrepr.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
error: command '/home/conda/feedstock_root/build_artifacts/mdtraj_1666877920242/_build_env/bin/x86_64-conda-linux-gnu-cc' failed with exit code 1
error: subprocess-exited-with-error
× Building wheel for mdtraj (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> See above for output.
from mdtraj.
The import probably just needs to be changed to Python.h
, from the Python 3.11 release notes:
The non-limited API files cellobject.h, classobject.h, code.h, context.h, funcobject.h, genobject.h and longintrepr.h have been moved to the Include/cpython directory. Moreover, the eval.h header file was removed. These files must not be included directly, as they are already included in Python.h: Include Files. If they have been included directly, consider including Python.h instead. (Contributed by Victor Stinner in bpo-35134.)
from mdtraj.
Thanks! I think that file is generated by Cython, let's see what I can get rolling in CI builds ...
from mdtraj.
Ah yes, the sources have to be cythonized with a newer version of cython for Python 3.11 to work.
from mdtraj.
Will that be included in the next release version? self compiled on CentOS-7 python 3.11 from source, with openssl 3.0.7 from source is failing pip3 install mdtraj
(mdtraj-1.9.7.tar.gz) with:
...
building 'mdtraj.geometry.drid' extension
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -I/c7/shared/openssl/3.0.7-gcc-9.3.1-devtoolset-9/include -I/opt/rh/devtoolset-9/root/usr/include -I/c7/shared/openssl/3.0.7-gcc-9.3.1-devtoolset-9/include -I/opt/rh/devtoolset-9/root/usr/include -I/c7/shared/Python/3.11.0/include -I/c7/shared/openssl/3.0.7-gcc-9.3.1-devtoolset-9/include -I/opt/rh/devtoolset-9/root/usr/include -I/c7/shared/Python/3.11.0/include -I/c7/shared/openssl/3.0.7-gcc-9.3.1-devtoolset-9/include -I/opt/rh/devtoolset-9/root/usr/include -fPIC -Imdtraj/geometry/include -I/tmp/pip-build-env-_yeski1m/overlay/lib/python3.11/site-packages/numpy/core/include -I/c7/shared/Python/3.11.0/include/python3.11 -c mdtraj/geometry/drid.cpp -o build/temp.linux-x86_64-cpython-311/mdtraj/geometry/drid.o -fopenmp -msse2 -mssse3 -O3 -funroll-loops --std=c++11 -Wno-unused-function -Wno-unreachable-code -Wno-sign-compare
mdtraj/geometry/drid.cpp:230:12: fatal error: longintrepr.h: No such file or directory
230 | #include "longintrepr.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
error: command '/opt/rh/devtoolset-9/root/usr/bin/gcc' failed with exit code 1
[end of output]
...
from mdtraj.
Probably at some point, either I need to get #1758 or working or somebody else can fix it. PRs welcome.
from mdtraj.
It's not obvious to me what versions of Cython support Python 3.11. I have had a hard time figuring out what is compatible with what. I'm not eager to push this forward until a new Cython release materializes.
from mdtraj.
For what it's worth, OpenMM builds and runs correctly under 3.11, and it also uses Cython. I didn't need to make any changes for it.
from mdtraj.
Could you (or maybe @chrisburr) guide me on how to cythonize the codebase? The farthest I got was cythonize -3 -f mdtraj
generating a long list of errors, which led me to believe that's not what I was supposed to be doing.
from mdtraj.
You shouldn't need to do that. It's done automatically at install time in setup.py:
Line 304 in 1a75727
from mdtraj.
That's what I thought ... I can get it built on my machine and tests pass (except for optional dependencies I don't want to bother installing). Maybe the real issue is in the conda build process?
from mdtraj.
Thanks to @chrisburr I think this is resolved now.
We still need to get the source builds online again but that's blocked by other issues.
from mdtraj.
Related Issues (20)
- mdtraj 1.9.9 and python 3.11.3 HOT 7
- Lammpstrj bounding box origin (shifts) in case os "scaled" coordinates representation HOT 2
- shrake-rupley error quits instead of raising error HOT 4
- xrdlib deprecation warning
- mdconvert dcd -> xtc breaks time field HOT 3
- Get velocity of atom from HDF5 trajectory. HOT 1
- Compiling in PPC64le HOT 2
- RMSD method HOT 3
- Support for velocities (& forces) in trajectory I/O HOT 9
- MDTraj reader not compatible with latest GSD
- bond angle computation results in 'nan' HOT 4
- Memory leak in NetCDF reporter HOT 2
- Drop old hard-coded version checks
- Compatibility with CMS topology files
- Memory issues when appending with XTCReporter HOT 16
- Update project status / add contributor's guide HOT 2
- Overwriting an Existing HDF5Reporter
- How to use topology to identify whether the C atom is aromatic or not? HOT 1
- Bug with mdtraj.rmsd when computing RMSD of a specific trajectory HOT 1
- Bond order not preserved for PDB files HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mdtraj.