Comments (11)
Is a downgrade in Cython versions necessary?
Yes, that's the solution
from mdtraj.
I wasn't sure if Cython 3 was ever going to come out, but this isn't much of a surprise. I bet there's more code that needs to be updated.
We should definitely pin to version 2 for the time being.
from mdtraj.
conda-forge/mdtraj-feedstock#49
from mdtraj.
What needs to be done to fix things on the PyPI side of things? I assume updating the TOML file won't impact the sdist that's already released and uploaded?
from mdtraj.
Correct. After the TOML file fix commit, you'll need to push an additional bug fix release to PyPI to fix new installs. It would probably require a new version number (1.9.9
or with 1.9.8.post1
, though I've never personally used the post1
thing before).
from mdtraj.
Is this error fixed and can it be installed through Pip? Is a downgrade in Cython versions necessary? I am running mdtraj from Google Colab and receiving a similar error.
from mdtraj.
This should be resolved with release 1.9.9 - thanks again to @jeremyleung521 for bringing this to our attention and guiding us through to a fix
If there are any deployment issues with that release, please share them here: #1805
from mdtraj.
Could you please reopen the bug, to track support for Cython 3? At this point Cython 0.29* is no longer maintained, and is already facing first bugs related to GCC 14 (not saying mdtraj is affected, I haven't tried, just saying from a wider perspective of a distribution that aims to remove Cython<3 altogether).
from mdtraj.
A PR to migrate to Cython 3 would be welcome; for now our builds of existing are working, if that changes we'd have to revisit things
from mdtraj.
Could you please reopen the bug, to track support for Cython 3? At this point Cython 0.29* is no longer maintained, and is already facing first bugs related to GCC 14 (not saying mdtraj is affected, I haven't tried, just saying from a wider perspective of a distribution that aims to remove Cython<3 altogether).
Funnily enough, mdtraj is affected:
x86_64-pc-linux-gnu-gcc -Wsign-compare -DNDEBUG -march=native -fstack-protector-all -O2 -pipe -fdiagnostics-color=always -frecord-gcc-switches -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-clash-protection -flto=4 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -Wformat -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Werror=int-conversion -Werror=incompatible-pointer-types -fPIC -DUSE_ZLIB=1 -Imdtraj/formats/tng/include -I/usr/include -I/usr/lib/python3.11/site-packages/numpy/core/include -I/usr/include/python3.11 -c mdtraj/formats/tng/src/lib/tng_io.c -o /var/tmp/portage/sci-chemistry/mdtraj-1.9.7/work/mdtraj-1.9.7-python3_11/temp.linux-x86_64-3.11/mdtraj/formats/tng/src/lib/tng_io.o
mdtraj/formats/tng/src/lib/tng_io.c: In function ‘tng_block_header_read’:
mdtraj/formats/tng/src/lib/tng_io.c:1064:57: error: assignment to ‘tng_function_status (*)(struct tng_trajectory * const, int32_t *)’ {aka ‘tng_function_status (*)(struct tng_trajectory * const, int *)’} from incompatible pointer type ‘tng_function_status (*)(struct tng_trajectory * const, uint32_t *)’ {aka ‘tng_function_status (*)(struct tng_trajectory * const, unsigned int *)’} [-Werror=incompatible-pointer-types]
1064 | tng_data->input_endianness_swap_func_32 =
| ^
mdtraj/formats/tng/src/lib/tng_io.c:1073:57: error: assignment to ‘tng_function_status (*)(struct tng_trajectory * const, int64_t *)’ {aka ‘tng_function_status (*)(struct tng_trajectory * const, long int *)’} from incompatible pointer type ‘tng_function_status (*)(struct tng_trajectory * const, uint64_t *)’ {aka ‘tng_function_status (*)(struct tng_trajectory * const, long unsigned int *)’} [-Werror=incompatible-pointer-types]
1073 | tng_data->input_endianness_swap_func_64 =
| ^
mdtraj/formats/tng/src/lib/tng_io.c:1089:57: error: assignment to ‘tng_function_status (*)(struct tng_trajectory * const, int32_t *)’ {aka ‘tng_function_status (*)(struct tng_trajectory * const, int *)’} from incompatible pointer type ‘tng_function_status (*)(struct tng_trajectory * const, uint32_t *)’ {aka ‘tng_function_status (*)(struct tng_trajectory * const, unsigned int *)’} [-Werror=incompatible-pointer-types]
1089 | tng_data->input_endianness_swap_func_32 =
| ^
mdtraj/formats/tng/src/lib/tng_io.c:1098:57: error: assignment to ‘tng_function_status (*)(struct tng_trajectory * const, int64_t *)’ {aka ‘tng_function_status (*)(struct tng_trajectory * const, long int *)’} from incompatible pointer type ‘tng_function_status (*)(struct tng_trajectory * const, uint64_t *)’ {aka ‘tng_function_status (*)(struct tng_trajectory * const, long unsigned int *)’} [-Werror=incompatible-pointer-types]
1098 | tng_data->input_endianness_swap_func_64 =
| ^
It is just that this particular code isn't a cythonized file.
from mdtraj.
Looks like the issues there are related to reading and writing TNG
files, which I believe we removed support for with #1788. We may just need to remove that particular block of code and everything else would be fine (with at least what we currently have)
from mdtraj.
Related Issues (20)
- ValueError in geometry.distance.compute_distances_core still uses old variable "traj" HOT 1
- Rename default branch from `master` to `main` HOT 3
- Attempt to follow SPEC 0 HOT 1
- The load function warns about ignoring the top keyword argument when top is not supplied HOT 1
- Identify LI as a virtual site HOT 5
- Replace XDR code with BSD-relicensed copy HOT 2
- Numpy 2.0 Release is imminent HOT 5
- python version anaconda install HOT 1
- Gyration tensor, principal moments, and asphericity over PBCs HOT 1
- Update `import_` utility? HOT 4
- Upstream macOS compiler fix HOT 2
- How to micromamba (mistyped as minimamba, sorry) install release candidate? HOT 3
- Update/Audit docs HOT 5
- NETCDF4 Error HOT 10
- Set up better versioning scheme
- Add netCDF4 as an upstream dependency
- Deleting an atom does not update bond list in topology HOT 1
- Getting code coverage up and running HOT 1
- MDTraj can write some PDB files that it cannot read HOT 4
- Python 3.8 Backward Compatibility due to `ast.unparse` 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.