mazurwiktor / albion-online-stats

Albion online stats is an extension to MMORPG game - Albion Online. It tracks network traffic and displays various statistics, such as damage and DPS meter calculated from in-game actions.
Apache License 2.0
196 stars 64 forks source link

[BUG] Unable to open application on windows #39

Closed Java-Superman closed 4 years ago

Java-Superman commented 4 years ago

Describe the bug After executing the latest release for albion-online-stats-x86_64-pc-windows-msvc.exe I get the following message.

image

I have npcap-0.9990.

To Reproduce Steps to reproduce the behavior:

  1. Execute albion-online-stats-x86_64-pc-windows-msvc.exe
  2. See error

Desktop (please complete the following information): OS Name Microsoft Windows 10 Pro Version 10.0.18363 Build 18363 OS Manufacturer Microsoft Corporation System Manufacturer Dell Inc. System Model Precision 7510 System Type x64-based PC Processor Intel(R) Xeon(R) CPU E3-1505M v5 @ 2.80GHz, 2801 Mhz, 4 Core(s), 8 Logical

mazurwiktor commented 4 years ago

@Java-Superman could you run albion-online-stats-x86_64-pc-windows-msvc.exe via cmd.exe and share the output?

Java-Superman commented 4 years ago

I'm not sure it matters, but I ran the exe and Process Monitor (SysInternals application). It shows the process trying to read/write to several directories that do not exist (marked in red below).

image

I ran the executable from C:\Users\Steven\Downloads and maybe it is just looking in various directories for things. It looks like most of the application is exploded into C:\Users\Steven\AppData\Local\_ME*

Java-Superman commented 4 years ago

Here is the the 64 bit

C:\Users\Steven\Downloads>albion-online-stats-x86_64-pc-windows-msvc-cmd.exe
PySide2/__init__.py: Unable to import shiboken2 from C:\Users\Steven\AppData\Local\Temp\_MEI165602\base_library.zip, C:\Users\Steven\AppData\Local\Temp\_MEI165602
Traceback (most recent call last):
  File "albion-online-stats.py", line 2, in <module>
  File "c:\python36-x64\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 623, in exec_module
  File "src\__init__.py", line 3, in <module>
  File "c:\python36-x64\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 623, in exec_module
  File "src\gui\app.py", line 6, in <module>
  File "c:\python36-x64\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 623, in exec_module
  File "site-packages\PySide2\__init__.py", line 88, in <module>
  File "site-packages\PySide2\__init__.py", line 54, in _setupQtDirectories
  File "c:\python36-x64\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 623, in exec_module
  File "site-packages\shiboken2\__init__.py", line 27, in <module>
ImportError: DLL load failed: The specified module could not be found.
[16756] Failed to execute script albion-online-stats
Java-Superman commented 4 years ago

Not sure if this helps, but here is the other cmd

C:\Users\Steven\Downloads>albion-online-stats-i686-pc-windows-msvc-cmd.exe
Traceback (most recent call last):
  File "albion-online-stats.py", line 2, in <module>
  File "c:\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 623, in exec_module
  File "src\__init__.py", line 3, in <module>
  File "c:\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 623, in exec_module
  File "src\gui\app.py", line 6, in <module>
ImportError: DLL load failed: The specified module could not be found.
[6896] Failed to execute script albion-online-stats
mazurwiktor commented 4 years ago

@Java-Superman Can you try to use latest version (https://ci.appveyor.com/api/buildjobs/4t0d9yq8dyuu5q2a/artifacts/build%2Fnsis%2FAlbion_Online_Stats_0.11.6.exe)?

I've found similar issue here https://wiki.qt.io/Qt_for_Python/Considerations, updated virtualenvpackage and others.

Java-Superman commented 4 years ago

The good news is that it starts, but I get the following error. image

I installed AO Stats for the current user only and reinstalled npcap 0.9990 in compatibility mode just in case.

mazurwiktor commented 4 years ago

@Java-Superman try this one then https://ci.appveyor.com/api/buildjobs/l3a4gxa1awov8po8/artifacts/build%2Fnsis%2FAlbion_Online_Stats_0.11.6.exe

I changed python version. It looks like wheels for python3.7 are broken for windows :(

Java-Superman commented 4 years ago

Seems to be working. Thanks.

mazurwiktor commented 4 years ago

@Java-Superman thanks!

Fixed in 0.11.6