[QGIS-Developer] Error due to possible Qgis dependency

Pedro Peixoto pedropeixoto at psr-inc.com
Fri Jan 17 07:01:29 PST 2020


Hello, Alessandro and Qgis developer community.

Thank you for the feedback, Alessandro. I tried running a dependency walker
on the program and, although it pointed out some possible error related to
Qgis, I couldn't identify why this happened. As can be shown from the error
lines below, the error appears to be related to the path to some python
modules, however having checked, the paths appear correct. Do you have any
insight into what could be causing this, and if this might be the reason
for the error in launching the program?
The link below contains a zip file with the logs, one without Qgis
installed, and one with Qgis. I appreciate the help. Thank you.

Possible Qgis related errors found in Dependency Walker:
LoadLibraryExW("c:\psr\hera\qgis\_gui.pyd", 0x0000000000000000,
LOAD_WITH_ALTERED_SEARCH_PATH) returned NULL. Error: The specified module
could not be found (126).
LoadLibraryExW("c:\psr\hera\qgis\_core.pyd", 0x0000000000000000,
LOAD_WITH_ALTERED_SEARCH_PATH) returned NULL. Error: The specified module
could not be found (126).

Link to the zip file containing the Dependency Walker logs:
http://psr.me/13zgip5


Em qui., 16 de jan. de 2020 às 05:49, Alessandro Pasotti <apasotti at gmail.com>
escreveu:

>
>
> On Wed, Jan 15, 2020 at 10:50 PM Pedro Peixoto <pedropeixoto at psr-inc.com>
> wrote:
>
>> To the Qgis developer community,
>>
>> I am part of a team that develops a standalone software for Windows that
>> encountered a critical error involving the Qgis software.
>> The software, called "Hera", is developed in Python and currently uses
>> PyQgis. The problem is that Hera works on all computers that have Qgis
>> installed, but only on some computers that don't have Qgist installed.
>> While trying to install it in a computer that has never had Qgis installed,
>> a critical error is given when we try to open the now installed program.
>> The error message displayed is as follows: "Failed to execute script Hera"
>> (as can be seen in the image, available in the link below). Every
>> dependency that I could think of that could influence the installation was
>> previously installed, such as all the possible Microsoft visual studio C++
>> packages, as listed below:
>> - Microsoft Visual C++ Redistributable for Visual Studio 2008, 2013,
>> 2015, 2017 and 2019.
>> To test that the problem was truly due to the lack of some missing Qgis
>> dependency, we created a machine on the AWS Amazon server and tried to
>> install the software, as well as the  Microsoft visual studio C++ packages
>> and the previously mentioned error was given. Only after installing Qgis on
>> the machine was the Hera program successfully launched. However, after
>> uninstalling Qgis on the same machine, the Hera program continued to run
>> successfully, indicating to us that the source of the problem might be
>> because of some dependency or configuration that Qgis does while
>> installing.
>> Since PyQgis does not offer some kind of logging or error message showing
>> the user whats could possibly be missing, I was wondering if anyone could
>> offer me some insight into what it might be. I appreciate the help, thank
>> you.
>>
>> Link to the error message image:
>> http://psr.me/1ayvzfn
>>
>> --
>> Pedro R. Peixoto
>> PSR
>> www.psr-inc.com
>> Tel.: +55 21 3906.2100
>> <http://facebook.psr-inc.com/>  <http://twitter.psr-inc.com/>
>> <http://linkedin.psr-inc.com/>
>>
>
>
> Hi, it's hard to tell, did you try to run dependency walker on the
> installed DLLs ?
>
>
> --
> Alessandro Pasotti
> w3:   www.itopen.it
>


-- 
Pedro R. Peixoto
PSR
www.psr-inc.com
Tel.: +55 21 3906.2100
<http://facebook.psr-inc.com/>  <http://twitter.psr-inc.com/>
<http://linkedin.psr-inc.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20200117/29c20d94/attachment-0001.html>


More information about the QGIS-Developer mailing list