-
-
Notifications
You must be signed in to change notification settings - Fork 285
The astropy<5,>=3.2
dependency makes poliastro not installable on Python 3.10.2 since astropy-4.3.1 does not install on that version of python
#1496
Comments
Hello @danielk333 , thanks for opening this issue! The error you mention seems to be pallets/markupsafe#284. However, I don't see Can you paste a complete traceback of the error you are witnessing? |
Thanks for the quick reply, below is the entire terminal-dump of the commands and output.
|
I can also add that astropy install results in this for
and this for
|
I see - so, the problem is that "pip install 'astropy<5'" fails on Python 3.10? Probably this should be reported upstream. At some point soon we'll release a bugfix for compatibility with Astropy 5. |
I hesitated to open an issue upstream on it as
which it does not since they fixed that problem in |
Good point. In that case, I'll keep this open so that we can make poliastro work with the latest version of Astropy |
Just leaving notes for folks who find themselves here after a google search: As @danielk333 noted, astropy 5.x fixed this. I'm trying to integrate someone else's code in to an existing project where they used poliastro... I wouldn't put this issue specifically on the poliastro or astropy teams- it's weird that markupsafe did this breaking change on a minor version. That said, now I can't figure out if it will be faster to change the math to skyfield or to try and help fix poliastro. I'm brand new to this codebase- will start reading around. Appreciate you all! |
Sorry for double post- derpped. I saw the markupsafe ref above but didn't realize it linked to the same issue. Point still stands though, it's an awkward fix they could have avoided by not forcing deprecation until next major version -,- |
Thanks for the extra info @yakkonaut - all help is welcome to make poliastro work with Astropy 5 (#1493). I'm on PTO and ramping up a new job but I hope I'll have the resources to cut a bugfix release soon.
Would love to know more, feel free to reach out in private :) |
Hopefully #1501 fixes this, please have a look. |
Closed in poliastro 0.16.3 🚀 |
🐞 Problem
When installing poliastro trough pip on python 3.10.2 it uses
astropy-4.3.1
which fails installation with the error messageImportError: cannot import name 'soft_unicode' from 'markupsafe'
.🖥 Please paste the output of following commands
💡 Possible solutions
Upgrading the dependency to astropy>=5 and consequence revising the usage of astropy accordingly would probably make poliastro also support python >= 3.10.
The text was updated successfully, but these errors were encountered: