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] No permission to write albion-online-stats.cfg in Windows 10 fresh install #44

Closed mmannerm closed 4 years ago

mmannerm commented 4 years ago

Describe the bug Albion-online-stats fresh installation fails to start on Windows 10. When launching from command promt, instead of launching, an error on permission denied for albion-online-stats.cfg (which does not exist and is being created). Running as administrator fixes the permission issue and allows executing the application.

Log file

"c:\Program Files\Albion Online Stats\Python\python.exe" "c:\Program Files\Albion Online Stats\Albion_Online_Stats.launch.pyw"
Traceback (most recent call last):
  File "c:\Program Files\Albion Online Stats\pkgs\src\utils\config.py", line 44, in config
    with open(conf_file, "r") as cfg_file:
FileNotFoundError: [Errno 2] No such file or directory: 'c:\\Program Files\\Albion Online Stats\\albion-online-stats.cfg'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\Program Files\Albion Online Stats\Albion_Online_Stats.launch.pyw", line 34, in <module>
    from src import run
  File "c:\Program Files\Albion Online Stats\pkgs\src\__init__.py", line 3, in <module>
    from .gui.app import run
  File "c:\Program Files\Albion Online Stats\pkgs\src\gui\app.py", line 18, in <module>
    from .styling import style
  File "c:\Program Files\Albion Online Stats\pkgs\src\gui\styling.py", line 3, in <module>
    cfg = config()
  File "c:\Program Files\Albion Online Stats\pkgs\src\utils\config.py", line 50, in config
    with open(conf_file, "w") as cfg_file:
PermissionError: [Errno 13] Permission denied: 'c:\\Program Files\\Albion Online Stats\\albion-online-stats.cfg'

To Reproduce Steps to reproduce the behavior:

  1. Download Albion_Online_Stats_0.11.6.exe (fresh install)
  2. Install
  3. Try to execute the Albion Online Stats
  4. Execute from command line prompt
  5. Right click "Albion Online Stats" and select Run as Administrator (to go around permission issue)

Expected behavior The client starts.

Desktop (please complete the following information):

mmannerm commented 4 years ago

One important additional piece of information. I installed for "all users in the computer", not just for myself. When installing with the radio button for "only for me", then the permissions allow creation of the file.

jgentil commented 4 years ago

Is this a duplicate of https://github.com/mazurwiktor/albion-online-stats/issues/41 ?

mmannerm commented 4 years ago

Looks like so actually, didn’t notice see initially the resemblance