"Binary Error: Please download it from the repository using the downloader from the menu"

482 views
Skip to first unread message

Samuel Martin

unread,
Dec 4, 2020, 5:52:52 PM12/4/20
to AequilibraE

Hi all,

for instance when I click on "Project -> Create Project from layers",
I obtain the following error : "Binary Error: Please download it from the repository using the downloader from the menu". The error does not occur when I click on "Project -> Create project from OSM".

My configuration : Running on Kubuntu (Ubuntu 20.04.1 LTS)

QGIS 3.16.1-Hannover

Installed AequilibraE version 0.6.2

Tried uninstalling and reinstalling Aequilibrae without succes.

Does someone has an idea ?

Many thanks,

Best,

Samuel


Pedro Camargo

unread,
Dec 4, 2020, 8:38:25 PM12/4/20
to samuel....@gmail.com, aequi...@googlegroups.com
Samuel, 

What version of Python is your QGIS running? 

There is a chance that there are no compatible binaries within the binary pack available, but have you made sure to restart qgis after downloading the binaries?

Cheers, 
Pedro 



---- On Sat, 05 Dec 2020 08:52:52 +1000 samuel....@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.
To view this discussion on the web visit https://groups.google.com/d/msgid/aequilibrae/37274326-4041-4dd0-ba34-548e7deb5b46n%40googlegroups.com.

Samuel Martin

unread,
Dec 5, 2020, 2:22:39 AM12/5/20
to Pedro Camargo, aequi...@googlegroups.com
Hi,

thanks for the swift reply. It's Python 3.8.5. I thought it was a problem of package location paths. I still haven't been able to solve the issue. I tried the following without success :

- changed line 52 in file AequilibraeMenu.py from
from ".aequilibrae.aequilibrae.paths import allOrNothing"
to ".aequilibrae.aequilibrae.paths.all_or_nothing import allOrNothing"
- install cython : python3 -m pip install cython (to make sure the AoN.pyx could be loaded.)
- add lines
    "import pyximport"
    "pyximport.install()"
to file all_or_nothing.py before line 7 : "from .AoN import one_to_all"
- In file "__init__.py" in paths folder : replaced "from aequilibrae.paths" by ""

Best;

Sam

Samuel Martin

unread,
Dec 6, 2020, 10:02:55 AM12/6/20
to Pedro Camargo, aequi...@googlegroups.com
Hi all,

I solve a few issues I had, I provide the modifications here. It's a bit technical and I'm not sure this is the place for this. Is it ?

So it seems that with python 3.8 it does not work to import a class from the package containing it. For example :
"from .aequilibrae.aequilibrae.paths import allOrNothing"
does not work, but
"from .aequilibrae.aequilibrae.paths.all_or_nothing import allOrNothing" DOES work

Also, each time I want to import pyx package I need to add
"import pyximport"
"pyximport.install()"
in files all_or_nothing.py and linear_approximation.py

Finally, in file parallel_numby.pyx before line 11, I added line "cimport cython"

Now, I can run QGIS without error. Also I could open :
Project -> Open Project : OK
Project -> Create Project from OSM : OK
Project -> Create Project from layers : OK
Network Manipulation -> Network Preparation : OK

Network Manipulation ->Add centroid connector : NOT OK : window pops up, I click on "OK" without doing anything -> QGIS closes unexpectedly. Note that I did not open any project or any file in QGIS, I'm just testing. In my terminal, I got :
"
QGIS died on signal 11Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No thread selected
No stack.
gdb returned 256
Aborted (core dumped)
sam@sam-HP-EliteBook-Folio-9470m:~/.local/share/QGIS/QGIS3/profiles/default/python/plugins/AequilibraE/aequilibrae/aequilibrae/paths$ qgis
QGIS died on signal 11Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No thread selected
No stack.
gdb returned 256
Aborted (core dumped)
"

I assume this is some silent bug due to the fact that I did not open any project.

I hope I can make Aequilibrae work on my machine soon. I'll try to run the siouxfall project when I have more time..

Best,

Samuel



Pedro Camargo

unread,
Dec 7, 2020, 5:14:31 AM12/7/20
to Samuel Martin, aequilibrae
Hi Samuel,
                  Sorry for the delay in responding.  The solution for your problem is actually compiling the AequilibraE code, which can be done by running the command

python setup_path_based.py build_ext --inplace
in the folder that contains AoN.pyx

I have checked the binaries and I am not exactly what the issue is, as there is a Python 3.8 binary for Linux there.

Cheers,
Pedro


---- On Sat, 05 Dec 2020 17:22:26 +1000 Samuel Martin <samuel....@gmail.com> wrote ----

Samuel Martin

unread,
Dec 7, 2020, 5:29:22 AM12/7/20
to Pedro Camargo, aequilibrae
Thank you Pedro. The folder containing AoN.pyx is ~/.local/share/QGIS/QGIS3/profiles/default/python/plugins/AequilibraE/aequilibrae/aequilibrae/paths
When I run the command :
> python setup_path_based.py build_ext --inplace  
python3: can't open file 'setup_path_based.py': [Errno 2] No such file or directory

I don't have the file setup_path_based.py
 
Thanks for your kind help.


Pedro Camargo

unread,
Dec 7, 2020, 5:30:59 AM12/7/20
to Samuel Martin, aequilibrae
I am sorry!!!!  Wrong command!!!!

python setup_Assignment.py build_ext --inplace

Cheers,
Pedro


---- On Mon, 07 Dec 2020 20:29:09 +1000 Samuel Martin <samuel....@gmail.com> wrote ----

Reply all
Reply to author
Forward
0 new messages