Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'dict' object has no attribute 'path' #112

Open
madic-creates opened this issue Dec 30, 2024 · 3 comments
Open

'dict' object has no attribute 'path' #112

madic-creates opened this issue Dec 30, 2024 · 3 comments

Comments

@madic-creates
Copy link

When viewing a snapshot via the "See content" button from the GUI, I get the following error:

2024-12-30 15:26:53,493 :: CRITICAL :: GUI Execution error 'dict' object has no attribute 'path'
2024-12-30 15:26:53,493 :: INFO :: Trace:
Traceback (most recent call last):
  File "/home/mne-adm/Downloads/npbackup-gui/npbackup/gui/__main__.py", line 1171, in main_gui
  File "/home/mne-adm/Downloads/npbackup-gui/npbackup/gui/__main__.py", line 1069, in _main_gui
  File "/home/mne-adm/Downloads/npbackup-gui/npbackup/gui/__main__.py", line 381, in ls_window
  File "/home/mne-adm/Downloads/npbackup-gui/concurrent/futures/_base.py", line 439, in result
  File "/home/mne-adm/Downloads/npbackup-gui/concurrent/futures/_base.py", line 391, in __get_result
  File "/home/mne-adm/Downloads/npbackup-gui/ofunctions/threading/__init__.py", line 95, in call_with_future
  File "/home/mne-adm/Downloads/npbackup-gui/npbackup/gui/__main__.py", line 212, in _make_treedata_from_json
AttributeError: 'dict' object has no attribute 'path'
2024-12-30 15:26:53,517 :: INFO :: ExecTime = 0:00:46.417519, finished, state is: critical.

Example output from a file from the log:

{"name":"locallist_validator_test.py","type":"file","path":"/home/mne-adm/Git/web/tests/locallist_validator_test.py","uid":1000,"gid":1000,"size":1087,"mode":420,"permissions":"-rw-r--r--","mtime":"2023-11-09T16:25:14.432162184+01:00","atime":"2023-11-09T16:25:14.432162184+01:00","ctime":"2023-11-09T16:25:14.432162184+01:00","inode":4013469,"message_type":"node","struct_type":"node"}

npbackup Version: 3.0.0-rc12
Used asset: npbackup-linux-x64-gui-public.tar.gz
restic version: 0.17.3

Dou you need further information?

@deajan
Copy link
Contributor

deajan commented Dec 31, 2024

I definitly need more info ^^

For starters, what's your system ?
Could you re-run with --debug parameter and post the COMPLETE logs ?

@deajan
Copy link
Contributor

deajan commented Jan 2, 2025

I am not able to reproduce this, can you post the full logs with --debug to give me a better idea of what happens ? Of course you can anonymize the data ^^

@madic-creates
Copy link
Author

I'll create the logs as soon as I'm back on my notebook. Probably tomorrow or on the weekend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants