Installation issue

211 views
Skip to first unread message

Bomber Gay

unread,
Jun 6, 2024, 2:27:19 AM6/6/24
to AequilibraE
Hi Pedro, hope this post finds you well. 

I was trying to re-install the newest version of qaequilibrae in QGIS and the following error message poped-up:

2024-06-06T14:05:01     WARNING    Traceback (most recent call last):
              File "C:\Users/Nigel/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qaequilibrae\modules\menu_actions\action_edit_parameters.py", line 2, in run_change_parameters
              from qaequilibrae.modules.common_tools import ParameterDialog
              File "C:\PROGRA~1/QGIS33~1.4/apps/qgis-ltr/./python\qgis\utils.py", line 892, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "C:\Users/Nigel/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qaequilibrae\modules\common_tools\__init__.py", line 1, in
              from .auxiliary_functions import *
              File "C:\PROGRA~1/QGIS33~1.4/apps/qgis-ltr/./python\qgis\utils.py", line 892, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "C:\Users/Nigel/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qaequilibrae\modules\common_tools\auxiliary_functions.py", line 8, in
              from aequilibrae import Parameters
             ImportError: cannot import name 'Parameters' from 'aequilibrae' (unknown location)


is there anyway that you guys missing the Parameters file in the newer version? if now, could you please help me to fix the issues here? Thank you for the help.


Cheers,


Leo
             

Felipe Hernández G.

unread,
Jul 2, 2024, 7:46:39 AM7/2/24
to AequilibraE
Hi, i have the same issue as yours. Did you fix it? I have spent days trying to figure out what is wrong :-/

Best regards

Renata Imai

unread,
Jul 2, 2024, 12:42:37 PM7/2/24
to AequilibraE

Hi!

Could you please give me more information on what you were doing that has returned the error? 

If you believe it's an installation error, try to uninstall the plugin, remove its contents from the qgis plugins folder, and install it again.

Cheers, Renata

Felipe Hernández G.

unread,
Jul 2, 2024, 5:46:32 PM7/2/24
to Renata Imai, AequilibraE
Hi Renata, many thanks for your fast answer. I am trying to install Qaequilibrae from the plugin manager in QGIS. I did what you said, and the installation process gave me the following error:

image.png

As a consequence, the log windows says:

image.png

I am using this QGIS version:

image.png

Again, many thanks for your help

Best regards


--
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 on the web visit https://groups.google.com/d/msgid/aequilibrae/4acde66b-12bd-42c6-943f-69a90e332b65n%40googlegroups.com.


--
Felipe Hernández G.
Ingeniero Civil en Computación
Magíster en Ciencias de la Computación 
Universidad de Chile

Pedro Camargo

unread,
Jul 2, 2024, 6:01:08 PM7/2/24
to AequilibraE
That's a weird place that you find yourself in, Felipe.

Try going to C:\Users\cephe\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\QPolaris\packages and deleting the NumPy folder from there.

If not:

1. De-activate QAequilibraE
2. Re-start QGIS
3. Open QGIS and remove the QAequilibraE plugin
4. Re-install the plugin

Cheers,
Pedro


---- On Wed, 03 Jul 2024 07:28:27 +1000 Felipe Hernández G. <cephe...@gmail.com> wrote ---

--
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.

Pedro Camargo

unread,
Jul 2, 2024, 6:40:05 PM7/2/24
to Aequi...@googlegroups.com
I meant inside QAequilibraE/packages... 

Cheers, 
Pedro 




---- On Wed, 03 Jul 2024 08:36:16 +1000 cephe...@gmail.com wrote ----

Hi Pedro, I swear that I did my best to install it jajajaj, many thanks for your answer. I checked the folder you mentioned, but I do not have the QPolaris folder, just the qaequilibrae folder in the plugin folder.

image.png

I tried with the second suggestion but i got the same error message:

image.png

I'm not entirely sure, but I think the problem might be due to the following installation process:

1- Install tables 3.9.2
2- During the process, tables specifies a requirement for numpy >= 1.19.0
3- The system finds numpy 2.0.0 and proceeds, thinking it's compatible
4- The system continues installing dependencies until it reaches shapely 2.0.3, but if you look at the release notes for that package, there is an issue that I found.

image.png

The important part is this: "The binary wheels are not yet compatible with a future NumPy 2.0 release, therefore a numpy<2 upper pin was added to the requirements (#1972)."

As a result, shapely 2.0.3 cannot be installed because it is not compatible with numpy 2.0.0.

How should we fix it? I am not sure, i need to read more.

Best regards


Felipe Hernández G.

unread,
Jul 2, 2024, 6:40:27 PM7/2/24
to Pedro Camargo, AequilibraE
Hi Pedro, I swear that I did my best to install it jajajaj, many thanks for your answer. I checked the folder you mentioned, but I do not have the QPolaris folder, just the qaequilibrae folder in the plugin folder.

image.png

I tried with the second suggestion but i got the same error message:

image.png

I'm not entirely sure, but I think the problem might be due to the following installation process:

1- Install tables 3.9.2
2- During the process, tables specifies a requirement for numpy >= 1.19.0
3- The system finds numpy 2.0.0 and proceeds, thinking it's compatible
4- The system continues installing dependencies until it reaches shapely 2.0.3, but if you look at the release notes for that package, there is an issue that I found.

image.png

The important part is this: "The binary wheels are not yet compatible with a future NumPy 2.0 release, therefore a numpy<2 upper pin was added to the requirements (#1972)."

As a result, shapely 2.0.3 cannot be installed because it is not compatible with numpy 2.0.0.

How should we fix it? I am not sure, i need to read more.

Best regards


El mié, 3 jul 2024 a las 0:01, Pedro Camargo (<c...@margo.co>) escribió:

Bomber Gay

unread,
Jul 3, 2024, 4:51:28 AM7/3/24
to AequilibraE
Hi guys, I ended up changed to a new laptop, but there is some other error messages poped up, is this anything to do with pyarrow?

Screenshot 2024-07-03 165028.png

Bomber Gay

unread,
Jul 3, 2024, 11:35:00 PM7/3/24
to AequilibraE
guys, finally found a solution - It's nothing to do with aequilibrae, but qgis. 

I think it's somthing to do with QGIS version 3.34.6-Prizren.

Try uninstall pyarrow and install pyarrow version 15.0.2 with solve my issue

Cheers,

Pedro Camargo

unread,
Jul 6, 2024, 1:33:58 AM7/6/24
to AequilibraE
That's brilliant!

The Python ecosystem is going through a lot of major changes in the last few months, including the release of NumPy 2.0, Scipy 1.14 and a flurry of new PyArrow versions.

With the QGIS switch to Python 3.12, everything seems to be breaking at the same time and we are still coming up with permanent robust solutions for the problem.

In the meantime, attached there are two alternative packagings of QAequilibraE that may go through installation a bit better.

Cheers,
Pedro



---- On Thu, 04 Jul 2024 13:35:00 +1000 Bomber Gay <asxz...@gmail.com> wrote ---

qaequilibrae.1.0.3.zip
qaequilibrae.zip

Tim Klein

unread,
Jul 30, 2024, 3:09:36 AM7/30/24
to AequilibraE
Hi,

i tried those two installations with QGIS 3.38.1. 
On my machine, qaequilibrae.1.0.3.zip  fails to build a wheel for fastparquet:

2024-07-30T06:52:36     WARNING    "C:\PROGRA~1\QGIS33~1.1\apps\Python312\python3.exe" -m pip install fastparquet -t "C:\Users/t.klein/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qaequilibrae\packages" --break-system-packages
2024-07-30T06:52:36     WARNING    Collecting fastparquet
             
2024-07-30T06:52:36     WARNING     Using cached fastparquet-2024.5.0.tar.gz (466 kB)
             
2024-07-30T06:52:36     WARNING     Installing build dependencies: started
             
2024-07-30T06:52:36     WARNING     Installing build dependencies: finished with status 'done'
             
2024-07-30T06:52:36     WARNING     Getting requirements to build wheel: started
             
2024-07-30T06:52:36     WARNING     Getting requirements to build wheel: finished with status 'error'

[...]

qaequilibrae.zip installs without errors, but when i try to build a project from layers, it seems to have a problem with the modes:

2024-07-30T07:09:09     WARNING    Ein Fehler trat bei der Ausführung von Python-Code auf:
             
             
             TypeError: 'QVariant' object is not iterable

             
             
             Traceback (most recent call last):
              File "C:\Users/t.klein/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qaequilibrae\packages\aequilibrae\utils\worker_thread.py", line 28, in run
              success = self.doWork()
              ^^^^^^^^^^^^^
              File "C:\Users/t.klein/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qaequilibrae\modules\project_procedures\creates_transponet_procedure.py", line 39, in doWork
              self.transfer_layer_features("links", self.link_layer, self.link_fields)
              File "C:\Users/t.klein/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qaequilibrae\modules\project_procedures\creates_transponet_procedure.py", line 133, in transfer_layer_features
              all_modes.update(list(f.attributes()[layer_fields["modes"]]))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
             TypeError: 'QVariant' object is not iterable
             
             
             
             
             Python-Version: 3.12.4 (main, Jun 10 2024, 12:48:35) [MSC v.1938 64 bit (AMD64)]
             
             
             QGIS-Version: 3.38.1-Grenoble Grenoble, 3d4177afc6
            


I don't know if there's any quick fix for that; i'll try my luck with the python module for now...

Best, t

Op zaterdag 6 juli 2024 om 07:33:58 UTC+2 schreef Pedro Camargo:

Pedro Camargo

unread,
Jul 30, 2024, 3:10:53 AM7/30/24
to AequilibraE
Hey Tim,
               We finally have a fix for it that should be merged in the next 24h and available in the plugin store in 72h or so.

Cheers,
Pedro



---- On Tue, 30 Jul 2024 15:29:18 +1000 Tim Klein <tristram...@gmail.com> wrote ---

Reply all
Reply to author
Forward
0 new messages