Python 3.10 numpy dependency

16 views
Skip to first unread message

Elfjes

unread,
Nov 24, 2025, 9:16:20 AMNov 24
to AequilibraE
I have a question regarding the numpy requirements for Aequilibrae. For 3.10 it explicitly requires numpy<2. This was apparently done because PyTables doesn't support numpy 2 on 3.10? However, PyTables doesn't seem to be a dependency of Aequilibrae, nor of QAequilibrae, so I was wondering what was the reasoning behind this choice? 

Pedro Camargo

unread,
Nov 24, 2025, 4:29:48 PMNov 24
to AequilibraE
Hey,

This is a good question, even though I had not expected it to be asked.

The short answer is that there is no solid reason for it.

The fact is that, when we migrated to NumPy 2.+, Python 3.10 was no longer support in the most recent versions (dropped in 2.3+). 

We figured that the users still using Python 3.10 would likely be using older setups, and we knew of a few people/instances where they were stuck on NumPy 1.26.

Long-story-short, AequilibraE 1.5+ will definitely work with any version of NumPy 2.2.6 or earlier, but you'll have to compile it yourself.

The upcoming release of AequilibraE 2.0 will drop the support for Python 3.10 altogether, so we are not particularly worried about that.

Cheers,
Pedro



---- On Tue, 25 Nov 2025 01:15:27 +1100 Elfjes <pelle...@octagonal.nl> wrote ---

I have a question regarding the numpy requirements for Aequilibrae. For 3.10 it explicitly requires numpy<2. This was apparently done because PyTables doesn't support numpy 2 on 3.10? However, PyTables doesn't seem to be a dependency of Aequilibrae, nor of QAequilibrae, so I was wondering what was the reasoning behind this choice? 


--
You received this message because you are subscribed to the Google Groups "AequilibraE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aequilibrae...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/aequilibrae/dd1d03bb-fbc3-4efa-a956-5c1a6929a331n%40googlegroups.com.


Jake Moss

unread,
Nov 24, 2025, 6:21:51 PMNov 24
to AequilibraE
Just to clarify one point,
However, PyTables doesn't seem to be a dependency of Aequilibrae, nor of QAequilibrae, so I was wondering what was the reasoning behind this choice? 
PyTables is a transitive dependency which comes from OpenMatrix (https://github.com/osPlanning/omx-python). It's used to read and write "omx" matrix files.



From: aequi...@googlegroups.com <aequi...@googlegroups.com> on behalf of Pedro Camargo <c...@margo.co>
Sent: Tuesday, November 25, 2025 7:29 AM
To: AequilibraE <aequi...@googlegroups.com>
Subject: Re: Python 3.10 numpy dependency

Pelle Koster

unread,
Nov 25, 2025, 2:53:17 AMNov 25
to AequilibraE
Ah I see. I hadn't realized yet that numpy had dropped support for py310. After a few years of dormancy we've picked up Movici development again, and we're still catching up to the latest versions of our dependencies. We have another package that we want to take in that no longer supports numpy<2 and we were wondering what to do on py310. Hence my question on the restrictive Aequilibrae requirement.

@Jake: Right! I was looking for an install pytables package, but couldn't find it, but then I realized that it's installed as tables :D. Looking at pytables, it seems to support numpy 2 but that  may have been added right around the time that Aequilibrae started supporting numpy 2, so perhaps Aequilibrae can now also just have numpy>=2 for all python versions? The binary of aequilibrae 1.5 on pypi seems to work fine on py3.10 with numpy 2.2.6, but I haven't tested all aspects.

OTOH, maybe we can just follow numpy and also drop support for py310. It would make some things simpler...


From: aequi...@googlegroups.com <aequi...@googlegroups.com> on behalf of Jake Moss <ja...@outerloop.io>
Sent: Tuesday, November 25, 2025 00:13
--
You received this message because you are subscribed to a topic in the Google Groups "AequilibraE" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/aequilibrae/V5X0RZ6ADNo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to aequilibrae...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/aequilibrae/SYYP282MB182142A93278674DF7EF0898B2D0A%40SYYP282MB1821.AUSP282.PROD.OUTLOOK.COM.
Reply all
Reply to author
Forward
0 new messages