ASP installation error on 3.0.0 and 3.0.1 versions

86 views
Skip to first unread message

diego.cus...@gmail.com

unread,
May 13, 2022, 11:37:22 AM5/13/22
to Ames Stereo Pipeline Support
Hi all,
I have been working with ASP version 2.7 using Linux in windows by WSL for quite some time now (works perfect in WSL :-)). Currently, i am trying to upgrade to ASP v. 3.0.1 since there is some new features have been added. However, when while running "stereo" command I get the following error message:

(py37) user27:~$stereo
/home/user27/ASP_install/StereoPipeline-3.0.1-alpha-2022-05-09-x86_64-Linux/libexec/stereo_parse: error while loading shared libraries: libopencv_calib3d.so.3.2: cannot enable executable stack as shared object requires: Invalid argument
Traceback (most recent call last):
  File "/home/user27/ASP_install/StereoPipeline-3.0.1-alpha-2022-05-09-x86_64-Linux/libexec/stereo", line 45, in <module>
    set in the stereo.default file.\n''' + get_asp_version()
  File "/home/user27/ASP_install/StereoPipeline-3.0.1-alpha-2022-05-09-x86_64-Linux/libexec/stereo_utils.py", line 74, in get_asp_version
    return asp_system_utils.get_prog_version(prog)
  File "/home/user27/ASP_install/StereoPipeline-3.0.1-alpha-2022-05-09-x86_64-Linux/libexec/asp_system_utils.py", line 72, in get_prog_version
    raise Exception("Could not find " + prog + " version")
Exception: Could not find /home/user27/ASP_install/StereoPipeline-3.0.1-alpha-2022-05-09-x86_64-Linux/libexec/stereo_parse version

I also tried with ASP V.3.0.0, getting the same error. Did you have already encountered the same issue? Do you have an idea how can i solve it?

Than you in advance for your help.
Best regards
Diego

Alexandrov, Oleg (ARC-TI)[KBR Wyle Services, LLC]

unread,
May 13, 2022, 1:02:58 PM5/13/22
to diego.cus...@gmail.com, Ames Stereo Pipeline Support
I never saw this error before. Apparently it is a generic issue. It is surely not introduced by ASP itself, as the OpenCV libraries we shipped are fetched from conda-forge. 

It looks that the "execstack" tool needs to be ran on those libraries to make them load. There are more details here:


And here's this tool's manual page, for context: https://linux.die.net/man/8/execstack.

I hope this works for you. If this becomes a persistent problem maybe the libraries we ship may need to be touched up with this tool as well. Or maybe upgrading OpenCV (which we should do at some point soon) may take care of this.

Oleg








From: ames-stereo-pi...@googlegroups.com <ames-stereo-pi...@googlegroups.com> on behalf of diego.cus...@gmail.com <diego.cus...@gmail.com>
Sent: Friday, May 13, 2022 8:37 AM
To: Ames Stereo Pipeline Support <ames-stereo-pi...@googlegroups.com>
Subject: [EXTERNAL] ASP installation error on 3.0.0 and 3.0.1 versions
 
--
You received this message because you are subscribed to the Google Groups "Ames Stereo Pipeline Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ames-stereo-pipeline...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ames-stereo-pipeline-support/83954ea0-4f92-464f-9277-d6fe797eb697n%40googlegroups.com.

YZ O

unread,
Sep 27, 2022, 9:04:43 AM9/27/22
to Ames Stereo Pipeline Support
Have you solved your problem? I have encountered similar problems. I installed it on the computer cluster, and the program that runs perfectly on version 2.7 reported an error on version 3.0.1.
Traceback (most recent call last):
  File "/public/home/2021050045/.conda/envs/asp/bin/parallel_stereo", line 1017, in <module>
    spawn_to_nodes(step, settings, parallel_args)
  File "/public/home/2021050045/.conda/envs/asp/bin/parallel_stereo", line 526, in spawn_to_nodes
    asp_system_utils.generic_run(cmd, opt.verbose)
  File "/public/home/2021050045/.conda/envs/asp/libexec/asp_system_utils.py", line 486, in generic_run
    raise Exception('Failed to run: ' + cmd_str)

Oleg Alexandrov

unread,
Sep 27, 2022, 1:09:14 PM9/27/22
to Ames Stereo Pipeline Support
I don't know what to do about this problem since it an issue with the third party OpenCV library on some architectures. I have not heard from more folks about it. I am hoping at some point updating the OpenCV version may make it go away. 

Did you try the fix suggested in the previous email? You can also try getting the latest packaged ASP, not the one shipped with conda, from here: https://github.com/NeoGeographyToolkit/StereoPipeline/releases.

Then, you say you have similar problems, but the text you pasted doesn't show that. It shows a generic python failure, without mentioning the "executable stack". So your problem may actually be a different failure.

diego.cus...@gmail.com

unread,
Sep 28, 2022, 4:41:34 AM9/28/22
to Ames Stereo Pipeline Support
Hello,

I also have the same issue but in my case it was installing ASP on WSL in windows 10.
The solution described in this blog (https://tatsuya-y.hatenablog.com/entry/2016/08/29/183331) worked from me.


Best!
Diego
Reply all
Reply to author
Forward
0 new messages