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

No data after new_file_format #565

Closed
morhe-blip opened this issue Feb 20, 2021 · 10 comments
Closed

No data after new_file_format #565

morhe-blip opened this issue Feb 20, 2021 · 10 comments

Comments

@morhe-blip
Copy link
Contributor

Hello,

after my last git pull --rebase (which installed the new_file_format) all data (tasks and tags) are empty.

If I create new task, close GTG and re-open it, the new task is also not present.
The original data in the /tmp folder is untouched.

How to reproduce is easy:
run GTG via ./launch.sh and this is it.

Debug information does not throw any warning or errors (at least none I can see).

Is there any additional information you need?
I am new to GitHub so I am not familiar with the procedures.

@WhilelM
Copy link

WhilelM commented Feb 21, 2021

Same problem here.

@diegogangl
Copy link
Contributor

Hey, thanks for reporting. Can you check if this is fixed for you now?

@morhe-blip
Copy link
Contributor Author

morhe-blip commented Feb 23, 2021

Hi,

sorry, it is still not fixed.
Still no tags/tasks at startup; creating some tasks, closing and re-opening GTG makes the list empty again.
I don't see any changes in any files. To me it looks as if there is no output from the program into a file.
However, I do not get any warnings, so this is just my opinion.

Is there anything I can try to help (maybe some output of the dev console, if you tell me what to try)?

Edit:
I activated the dev console and closed GTG. The config files in /tmp/default/xdg/config/gtg/gtg.conf and backends.conf are modified. The data folder however is not.

Maybe this helps.

@diegogangl
Copy link
Contributor

that's really weird, can you show me your directory structure in tmp/default?

@morhe-blip
Copy link
Contributor Author

morhe-blip commented Feb 23, 2021

ls -R in tmp/default gives

.:
xdg

./xdg:
cache config data

./xdg/cache:
event-sound-cache.tdb.5088b94f93964cf3815ce9a476403bfc.x86_64-pc-linux-gnu gstreamer-1.0 mesa_shader_cache mozilla yelp

./xdg/cache/gstreamer-1.0:
registry.x86_64.bin

./xdg/cache/mesa_shader_cache:
index

./xdg/cache/mozilla:
firefox

./xdg/cache/mozilla/firefox:

./xdg/cache/yelp:
CacheStorage WebKitCache

./xdg/cache/yelp/CacheStorage:

./xdg/cache/yelp/WebKitCache:
'Version 16'

'./xdg/cache/yelp/WebKitCache/Version 16':
Blobs salt

'./xdg/cache/yelp/WebKitCache/Version 16/Blobs':

./xdg/config:
gtg yelp

./xdg/config/gtg:
backends.conf gtg.conf plugins tasks.conf

./xdg/config/gtg/plugins:
'Urgency Color'

'./xdg/config/gtg/plugins/Urgency Color':
preferences

./xdg/config/yelp:

./xdg/data:
gtg webkitgtk

./xdg/data/gtg:
backup gtg_tasks.xml projects.xml tags.xml

./xdg/data/gtg/backup:
gtg_tasks.xml.2020-04-27.bak gtg_tasks.xml.2020-12-01.bak projects.xml.2020-04-27.bak projects.xml.2020-12-02.bak tags.xml.2020-04-28.bak tags.xml.2020-12-03.bak
gtg_tasks.xml.2020-04-28.bak gtg_tasks.xml.2020-12-02.bak projects.xml.2020-04-28.bak projects.xml.2020-12-03.bak tags.xml.2020-04-29.bak tags.xml.2020-12-07.bak
gtg_tasks.xml.2020-04-29.bak gtg_tasks.xml.2020-12-03.bak projects.xml.2020-04-29.bak projects.xml.2020-12-07.bak tags.xml.2020-04-30.bak tags.xml.2020-12-08.bak
gtg_tasks.xml.2020-04-30.bak gtg_tasks.xml.2020-12-07.bak projects.xml.2020-04-30.bak projects.xml.2020-12-08.bak tags.xml.2020-05-03.bak tags.xml.2020-12-09.bak
gtg_tasks.xml.2020-05-03.bak gtg_tasks.xml.2020-12-08.bak projects.xml.2020-05-03.bak projects.xml.2020-12-09.bak tags.xml.2020-05-04.bak tags.xml.2020-12-10.bak
gtg_tasks.xml.2020-05-04.bak gtg_tasks.xml.2020-12-09.bak projects.xml.2020-05-04.bak projects.xml.2020-12-10.bak tags.xml.2020-05-05.bak tags.xml.2020-12-11.bak
gtg_tasks.xml.2020-05-05.bak gtg_tasks.xml.2020-12-10.bak projects.xml.2020-05-05.bak projects.xml.2020-12-11.bak tags.xml.2020-05-06.bak tags.xml.2020-12-12.bak
gtg_tasks.xml.2020-05-06.bak gtg_tasks.xml.2020-12-11.bak projects.xml.2020-05-06.bak projects.xml.2020-12-12.bak tags.xml.2020-05-07.bak tags.xml.2020-12-13.bak
gtg_tasks.xml.2020-05-07.bak gtg_tasks.xml.2020-12-12.bak projects.xml.2020-05-07.bak projects.xml.2020-12-13.bak tags.xml.2020-05-08.bak tags.xml.2020-12-14.bak
gtg_tasks.xml.2020-05-08.bak gtg_tasks.xml.2020-12-13.bak projects.xml.2020-05-08.bak projects.xml.2020-12-14.bak tags.xml.2020-05-09.bak tags.xml.2020-12-15.bak
gtg_tasks.xml.2020-05-09.bak gtg_tasks.xml.2020-12-14.bak projects.xml.2020-05-09.bak projects.xml.2020-12-15.bak tags.xml.2020-05-10.bak tags.xml.2020-12-16.bak
gtg_tasks.xml.2020-05-10.bak gtg_tasks.xml.2020-12-15.bak projects.xml.2020-05-10.bak projects.xml.2020-12-16.bak tags.xml.2020-05-11.bak tags.xml.2020-12-17.bak
gtg_tasks.xml.2020-05-11.bak gtg_tasks.xml.2020-12-16.bak projects.xml.2020-05-11.bak projects.xml.2020-12-17.bak tags.xml.2020-05-13.bak tags.xml.2020-12-18.bak
gtg_tasks.xml.2020-05-13.bak gtg_tasks.xml.2020-12-17.bak projects.xml.2020-05-13.bak projects.xml.2020-12-18.bak tags.xml.2020-05-14.bak tags.xml.2020-12-19.bak
gtg_tasks.xml.2020-05-14.bak gtg_tasks.xml.2020-12-18.bak projects.xml.2020-05-14.bak projects.xml.2020-12-19.bak tags.xml.2020-05-15.bak tags.xml.2020-12-21.bak
gtg_tasks.xml.2020-05-15.bak gtg_tasks.xml.2020-12-19.bak projects.xml.2020-05-15.bak projects.xml.2020-12-21.bak tags.xml.2020-05-16.bak tags.xml.2020-12-22.bak
gtg_tasks.xml.2020-05-16.bak gtg_tasks.xml.2020-12-21.bak projects.xml.2020-05-16.bak projects.xml.2020-12-22.bak tags.xml.2020-05-17.bak tags.xml.2020-12-23.bak
gtg_tasks.xml.2020-05-17.bak gtg_tasks.xml.2020-12-22.bak projects.xml.2020-05-17.bak projects.xml.2020-12-23.bak tags.xml.2020-05-18.bak tags.xml.2020-12-26.bak
gtg_tasks.xml.2020-05-18.bak gtg_tasks.xml.2020-12-23.bak projects.xml.2020-05-18.bak projects.xml.2020-12-26.bak tags.xml.2020-05-19.bak tags.xml.2020-12-28.bak
gtg_tasks.xml.2020-05-19.bak gtg_tasks.xml.2020-12-26.bak projects.xml.2020-05-19.bak projects.xml.2020-12-28.bak tags.xml.2020-05-20.bak tags.xml.2020-12-29.bak
gtg_tasks.xml.2020-05-20.bak gtg_tasks.xml.2020-12-28.bak projects.xml.2020-05-20.bak projects.xml.2020-12-29.bak tags.xml.2020-05-21.bak tags.xml.2020-12-30.bak
gtg_tasks.xml.2020-05-21.bak gtg_tasks.xml.2020-12-29.bak projects.xml.2020-05-21.bak projects.xml.2020-12-30.bak tags.xml.2020-05-22.bak tags.xml.2020-12-31.bak
gtg_tasks.xml.2020-05-22.bak gtg_tasks.xml.2020-12-30.bak projects.xml.2020-05-22.bak projects.xml.2020-12-31.bak tags.xml.2020-05-23.bak tags.xml.2021-01-01.bak
gtg_tasks.xml.2020-05-23.bak gtg_tasks.xml.2020-12-31.bak projects.xml.2020-05-23.bak projects.xml.2021-01-01.bak tags.xml.2020-05-24.bak tags.xml.2021-01-02.bak
gtg_tasks.xml.2020-05-24.bak gtg_tasks.xml.2021-01-01.bak projects.xml.2020-05-24.bak projects.xml.2021-01-02.bak tags.xml.2020-05-26.bak tags.xml.2021-01-04.bak
gtg_tasks.xml.2020-05-25.bak gtg_tasks.xml.2021-01-02.bak projects.xml.2020-05-26.bak projects.xml.2021-01-04.bak tags.xml.2020-05-27.bak tags.xml.2021-01-05.bak
gtg_tasks.xml.2020-05-26.bak gtg_tasks.xml.2021-01-04.bak projects.xml.2020-05-27.bak projects.xml.2021-01-05.bak tags.xml.2020-05-28.bak tags.xml.2021-01-06.bak
gtg_tasks.xml.2020-05-27.bak gtg_tasks.xml.2021-01-05.bak projects.xml.2020-05-28.bak projects.xml.2021-01-06.bak tags.xml.2020-05-29.bak tags.xml.2021-01-07.bak
gtg_tasks.xml.2020-05-28.bak gtg_tasks.xml.2021-01-06.bak projects.xml.2020-05-29.bak projects.xml.2021-01-07.bak tags.xml.2020-05-30.bak tags.xml.2021-01-08.bak
gtg_tasks.xml.2020-05-29.bak gtg_tasks.xml.2021-01-07.bak projects.xml.2020-05-30.bak projects.xml.2021-01-08.bak tags.xml.2020-05-31.bak tags.xml.2021-01-09.bak
gtg_tasks.xml.2020-05-30.bak gtg_tasks.xml.2021-01-08.bak projects.xml.2020-05-31.bak projects.xml.2021-01-09.bak tags.xml.2020-06-01.bak tags.xml.2021-01-10.bak
gtg_tasks.xml.2020-05-31.bak gtg_tasks.xml.2021-01-09.bak projects.xml.2020-06-01.bak projects.xml.2021-01-10.bak tags.xml.2020-06-02.bak tags.xml.2021-01-11.bak
gtg_tasks.xml.2020-06-01.bak gtg_tasks.xml.2021-01-10.bak projects.xml.2020-06-02.bak projects.xml.2021-01-11.bak tags.xml.2020-06-03.bak tags.xml.2021-01-12.bak
gtg_tasks.xml.2020-06-02.bak gtg_tasks.xml.2021-01-11.bak projects.xml.2020-06-03.bak projects.xml.2021-01-12.bak tags.xml.2020-06-04.bak tags.xml.2021-01-13.bak
gtg_tasks.xml.2020-06-03.bak gtg_tasks.xml.2021-01-12.bak projects.xml.2020-06-04.bak projects.xml.2021-01-13.bak tags.xml.2020-06-05.bak tags.xml.2021-01-14.bak
gtg_tasks.xml.2020-06-04.bak gtg_tasks.xml.2021-01-13.bak projects.xml.2020-06-05.bak projects.xml.2021-01-14.bak tags.xml.2020-06-08.bak tags.xml.2021-01-15.bak
gtg_tasks.xml.2020-06-05.bak gtg_tasks.xml.2021-01-14.bak projects.xml.2020-06-08.bak projects.xml.2021-01-15.bak tags.xml.2020-06-09.bak tags.xml.2021-01-16.bak
gtg_tasks.xml.2020-06-08.bak gtg_tasks.xml.2021-01-15.bak projects.xml.2020-06-09.bak projects.xml.2021-01-16.bak tags.xml.2020-06-10.bak tags.xml.2021-01-17.bak
gtg_tasks.xml.2020-06-09.bak gtg_tasks.xml.2021-01-16.bak projects.xml.2020-06-10.bak projects.xml.2021-01-17.bak tags.xml.2020-06-11.bak tags.xml.2021-01-18.bak
gtg_tasks.xml.2020-06-10.bak gtg_tasks.xml.2021-01-17.bak projects.xml.2020-06-11.bak projects.xml.2021-01-18.bak tags.xml.2020-06-12.bak tags.xml.2021-01-19.bak
gtg_tasks.xml.2020-06-11.bak gtg_tasks.xml.2021-01-18.bak projects.xml.2020-06-12.bak projects.xml.2021-01-19.bak tags.xml.2020-06-15.bak tags.xml.2021-01-20.bak
gtg_tasks.xml.2020-06-12.bak gtg_tasks.xml.2021-01-19.bak projects.xml.2020-06-15.bak projects.xml.2021-01-20.bak tags.xml.2020-06-16.bak tags.xml.2021-01-21.bak
gtg_tasks.xml.2020-06-15.bak gtg_tasks.xml.2021-01-20.bak projects.xml.2020-06-16.bak projects.xml.2021-01-21.bak tags.xml.2020-06-17.bak tags.xml.2021-01-22.bak
gtg_tasks.xml.2020-06-16.bak gtg_tasks.xml.2021-01-21.bak projects.xml.2020-06-17.bak projects.xml.2021-01-22.bak tags.xml.2020-06-18.bak tags.xml.2021-01-23.bak
gtg_tasks.xml.2020-06-17.bak gtg_tasks.xml.2021-01-22.bak projects.xml.2020-06-18.bak projects.xml.2021-01-23.bak tags.xml.2020-06-19.bak tags.xml.2021-01-24.bak
gtg_tasks.xml.2020-06-18.bak gtg_tasks.xml.2021-01-23.bak projects.xml.2020-06-19.bak projects.xml.2021-01-24.bak tags.xml.2020-06-22.bak tags.xml.2021-01-25.bak
gtg_tasks.xml.2020-06-19.bak gtg_tasks.xml.2021-01-24.bak projects.xml.2020-06-22.bak projects.xml.2021-01-25.bak tags.xml.2020-06-23.bak tags.xml.2021-01-26.bak
gtg_tasks.xml.2020-06-22.bak gtg_tasks.xml.2021-01-25.bak projects.xml.2020-06-23.bak projects.xml.2021-01-26.bak tags.xml.2020-06-24.bak tags.xml.2021-01-27.bak
gtg_tasks.xml.2020-06-23.bak gtg_tasks.xml.2021-01-26.bak projects.xml.2020-06-24.bak projects.xml.2021-01-27.bak tags.xml.2020-06-25.bak tags.xml.2021-01-28.bak
gtg_tasks.xml.2020-06-24.bak gtg_tasks.xml.2021-01-27.bak projects.xml.2020-06-25.bak projects.xml.2021-01-28.bak tags.xml.2020-06-26.bak tags.xml.2021-01-29.bak
gtg_tasks.xml.2020-06-25.bak gtg_tasks.xml.2021-01-28.bak projects.xml.2020-06-26.bak projects.xml.2021-01-29.bak tags.xml.2020-06-28.bak tags.xml.2021-01-30.bak
gtg_tasks.xml.2020-06-26.bak gtg_tasks.xml.2021-01-29.bak projects.xml.2020-06-28.bak projects.xml.2021-01-30.bak tags.xml.2020-06-29.bak tags.xml.2021-02-01.bak
gtg_tasks.xml.2020-06-28.bak gtg_tasks.xml.2021-01-30.bak projects.xml.2020-06-29.bak projects.xml.2021-02-01.bak tags.xml.2020-07-05.bak tags.xml.2021-02-02.bak
gtg_tasks.xml.2020-06-29.bak gtg_tasks.xml.2021-02-01.bak projects.xml.2020-07-05.bak projects.xml.2021-02-02.bak tags.xml.2020-07-06.bak tags.xml.2021-02-03.bak
gtg_tasks.xml.2020-07-05.bak gtg_tasks.xml.2021-02-02.bak projects.xml.2020-07-06.bak projects.xml.2021-02-03.bak tags.xml.2020-07-07.bak tags.xml.2021-02-04.bak
gtg_tasks.xml.2020-07-06.bak gtg_tasks.xml.2021-02-03.bak projects.xml.2020-07-07.bak projects.xml.2021-02-04.bak tags.xml.2020-07-08.bak tags.xml.2021-02-05.bak
gtg_tasks.xml.2020-07-07.bak gtg_tasks.xml.2021-02-04.bak projects.xml.2020-07-08.bak projects.xml.2021-02-05.bak tags.xml.2020-07-09.bak tags.xml.2021-02-06.bak
gtg_tasks.xml.2020-07-08.bak gtg_tasks.xml.2021-02-05.bak projects.xml.2020-07-09.bak projects.xml.2021-02-06.bak tags.xml.2020-07-10.bak tags.xml.2021-02-07.bak
gtg_tasks.xml.2020-07-09.bak gtg_tasks.xml.2021-02-06.bak projects.xml.2020-07-10.bak projects.xml.2021-02-07.bak tags.xml.2020-10-09.bak tags.xml.2021-02-08.bak
gtg_tasks.xml.2020-07-10.bak gtg_tasks.xml.2021-02-07.bak projects.xml.2020-10-09.bak projects.xml.2021-02-08.bak tags.xml.2020-11-02.bak tags.xml.2021-02-09.bak
gtg_tasks.xml.2020-10-09.bak gtg_tasks.xml.2021-02-08.bak projects.xml.2020-11-02.bak projects.xml.2021-02-09.bak tags.xml.2020-11-03.bak tags.xml.2021-02-10.bak
gtg_tasks.xml.2020-11-02.bak gtg_tasks.xml.2021-02-09.bak projects.xml.2020-11-03.bak projects.xml.2021-02-10.bak tags.xml.2020-11-04.bak tags.xml.2021-02-11.bak
gtg_tasks.xml.2020-11-03.bak gtg_tasks.xml.2021-02-10.bak projects.xml.2020-11-04.bak projects.xml.2021-02-11.bak tags.xml.2020-11-05.bak tags.xml.2021-02-12.bak
gtg_tasks.xml.2020-11-04.bak gtg_tasks.xml.2021-02-11.bak projects.xml.2020-11-05.bak projects.xml.2021-02-12.bak tags.xml.2020-11-06.bak tags.xml.2021-02-13.bak
gtg_tasks.xml.2020-11-05.bak gtg_tasks.xml.2021-02-12.bak projects.xml.2020-11-06.bak projects.xml.2021-02-13.bak tags.xml.2020-11-09.bak tags.xml.2021-02-14.bak
gtg_tasks.xml.2020-11-06.bak gtg_tasks.xml.2021-02-13.bak projects.xml.2020-11-09.bak projects.xml.2021-02-14.bak tags.xml.2020-11-12.bak tags.xml.2021-02-15.bak
gtg_tasks.xml.2020-11-09.bak gtg_tasks.xml.2021-02-14.bak projects.xml.2020-11-12.bak projects.xml.2021-02-15.bak tags.xml.2020-11-14.bak tags.xml.2021-02-16.bak
gtg_tasks.xml.2020-11-12.bak gtg_tasks.xml.2021-02-15.bak projects.xml.2020-11-14.bak projects.xml.2021-02-16.bak tags.xml.2020-11-16.bak tags.xml.2021-02-17.bak
gtg_tasks.xml.2020-11-14.bak gtg_tasks.xml.2021-02-16.bak projects.xml.2020-11-16.bak projects.xml.2021-02-17.bak tags.xml.2020-11-17.bak tags.xml.2021-02-18.bak
gtg_tasks.xml.2020-11-16.bak gtg_tasks.xml.2021-02-17.bak projects.xml.2020-11-17.bak projects.xml.2021-02-18.bak tags.xml.2020-11-18.bak tags.xml.2021-02-19.bak
gtg_tasks.xml.2020-11-17.bak gtg_tasks.xml.2021-02-18.bak projects.xml.2020-11-18.bak projects.xml.2021-02-19.bak tags.xml.2020-11-19.bak tags.xml.bak.0
gtg_tasks.xml.2020-11-18.bak gtg_tasks.xml.2021-02-19.bak projects.xml.2020-11-19.bak projects.xml.bak.0 tags.xml.2020-11-20.bak tags.xml.bak.1
gtg_tasks.xml.2020-11-19.bak gtg_tasks.xml.bak.0 projects.xml.2020-11-20.bak projects.xml.bak.1 tags.xml.2020-11-23.bak tags.xml.bak.2
gtg_tasks.xml.2020-11-20.bak gtg_tasks.xml.bak.1 projects.xml.2020-11-23.bak projects.xml.bak.2 tags.xml.2020-11-24.bak tags.xml.bak.3
gtg_tasks.xml.2020-11-23.bak gtg_tasks.xml.bak.2 projects.xml.2020-11-24.bak projects.xml.bak.3 tags.xml.2020-11-25.bak tags.xml.bak.4
gtg_tasks.xml.2020-11-24.bak gtg_tasks.xml.bak.3 projects.xml.2020-11-25.bak projects.xml.bak.4 tags.xml.2020-11-26.bak tags.xml.bak.5
gtg_tasks.xml.2020-11-25.bak gtg_tasks.xml.bak.4 projects.xml.2020-11-26.bak projects.xml.bak.5 tags.xml.2020-11-27.bak tags.xml.bak.6
gtg_tasks.xml.2020-11-26.bak gtg_tasks.xml.bak.5 projects.xml.2020-11-27.bak projects.xml.bak.6 tags.xml.2020-11-30.bak tags.xml.bak.7
gtg_tasks.xml.2020-11-27.bak gtg_tasks.xml.bak.6 projects.xml.2020-11-30.bak projects.xml.bak.7 tags.xml.2020-12-01.bak
gtg_tasks.xml.2020-11-30.bak gtg_tasks.xml.bak.7 projects.xml.2020-12-01.bak tags.xml.2020-04-27.bak tags.xml.2020-12-02.bak

./xdg/data/webkitgtk:
databases deviceidhashsalts hsts-storage.sqlite localstorage serviceworkers

./xdg/data/webkitgtk/databases:
indexeddb

./xdg/data/webkitgtk/databases/indexeddb:
v0 v1

./xdg/data/webkitgtk/databases/indexeddb/v1:

./xdg/data/webkitgtk/deviceidhashsalts:
1

./xdg/data/webkitgtk/deviceidhashsalts/1:

./xdg/data/webkitgtk/localstorage:

./xdg/data/webkitgtk/serviceworkers:

@morhe-blip
Copy link
Contributor Author

I also read in the specs of the new file format, that all data is (or should be) stored in one file gtg_data.xml.
This file is not present and is not created in the /tmp directory. This is strange imho because even if the old gtg_tasks.xml is (for whatever reason) unused, a new file should be created.
But DEBUG does not throw any warning about permission problems (which would be strange as well, because it always worked in the past).
Maybe something in the Python code?

@morhe-blip
Copy link
Contributor Author

I tried some new things to get a better idea of what's happening:

  1. I deleted the entire tmp folder and ran the new version. Then everything is fine, it starts with an empty tasklist (as expected) and creates a new gtg_data.xml which then keeps tasks that I create within GTG.
  2. Importing the data from the Flatpak version changes nothing, the newly created gtg_data.xml is still used.
  3. Deleting gtg_data.xml and keeping the imported Flatpak data results in an empty tasklist, so no data is imported.
  4. Deleting gtg_data.xml and replacing it with my old gtg_tasks.xml, which I renamed to gtg_data.xml finally throws an error (as it should):

Traceback (most recent call last):
File "/home/moritz/gtg/.local_build/install/lib/python3.8/site-packages/GTG/gtk/application.py", line 97, in do_startup
datastore.register_backend(backend_dic)
File "/home/moritz/gtg/.local_build/install/lib/python3.8/site-packages/GTG/core/datastore.py", line 456, in register_backend
source.initialize(connect_signals=False)
File "/home/moritz/gtg/.local_build/install/lib/python3.8/site-packages/GTG/core/datastore.py", line 819, in initialize
self.backend.initialize()
File "/home/moritz/gtg/.local_build/install/lib/python3.8/site-packages/GTG/backends/backend_localfile.py", line 134, in initialize
self.datastore.load_tag_tree(self.tag_tree)
File "/home/moritz/gtg/.local_build/install/lib/python3.8/site-packages/GTG/core/datastore.py", line 229, in load_tag_tree
for element in tag_tree.iter('tag'):
AttributeError: 'NoneType' object has no attribute 'iter'
Traceback (most recent call last):
File "/home/moritz/gtg/.local_build/install/lib/python3.8/site-packages/GTG/gtk/application.py", line 123, in do_activate
self.init_shared()
File "/home/moritz/gtg/.local_build/install/lib/python3.8/site-packages/GTG/gtk/application.py", line 160, in init_shared
self.init_browser()
File "/home/moritz/gtg/.local_build/install/lib/python3.8/site-packages/GTG/gtk/application.py", line 168, in init_browser
self.browser = MainWindow(self.req, self)
File "/home/moritz/gtg/.local_build/install/lib/python3.8/site-packages/GTG/gtk/browser/main_window.py", line 70, in init
self.config = self.req.get_config('browser')
AttributeError: 'NoneType' object has no attribute 'get_config'

From my perspective the problem, is that the old gtg_tasks is not translated into the new format. If gtg_data.xml is present, everything is just fine. So the transition with no gtg_data and gtg_tasks not translated seems to be the problem.

@diegogangl
Copy link
Contributor

There's something funny about that tmp folder structure, why is there webkit and yelp stuff?
Renaming gtg_tasks.xml to gtg_data.xml is going to break versioning because they are two fairly different file formats.

For some reason gtg isn't finding you gtg_tasks.xml to convert to the new format

@morhe-blip
Copy link
Contributor Author

I don't know, where these folders come from.
However I played around a little bit and I think I can narrow the problem somewhat.

I installed a complete new version of GTG and everything worked.
Inserting the old data files result in an error that is very similar to the one reported by nekohayo #522 (comment) :

2021-02-24 19:55:03,759 - WARNING - backend_localfile:initialize:118 - Found old file. Running versioning code.
Traceback (most recent call last):
File "/home/moritz/gtg/.local_build/install/lib/python3.8/site-packages/GTG/gtk/application.py", line 97, in do_startup
datastore.register_backend(backend_dic)
File "/home/moritz/gtg/.local_build/install/lib/python3.8/site-packages/GTG/core/datastore.py", line 456, in register_backend
source.initialize(connect_signals=False)
File "/home/moritz/gtg/.local_build/install/lib/python3.8/site-packages/GTG/core/datastore.py", line 819, in initialize
self.backend.initialize()
File "/home/moritz/gtg/.local_build/install/lib/python3.8/site-packages/GTG/backends/backend_localfile.py", line 120, in initialize
tree = versioning.convert(old_path, self.datastore)
File "/home/moritz/gtg/.local_build/install/lib/python3.8/site-packages/GTG/core/versioning.py", line 74, in convert
new_task = convert_task(task, ds)
File "/home/moritz/gtg/.local_build/install/lib/python3.8/site-packages/GTG/core/versioning.py", line 256, in convert_task
new_content.text = et.CDATA(convert_content(content.text))
File "/home/moritz/gtg/.local_build/install/lib/python3.8/site-packages/GTG/core/versioning.py", line 268, in convert_content
text = html.unescape(content)
File "/usr/lib/python3.8/html/init.py", line 130, in unescape
if '&' not in s:
TypeError: argument of type 'NoneType' is not iterable
Traceback (most recent call last):
File "/home/moritz/gtg/.local_build/install/lib/python3.8/site-packages/GTG/gtk/application.py", line 123, in do_activate
self.init_shared()
File "/home/moritz/gtg/.local_build/install/lib/python3.8/site-packages/GTG/gtk/application.py", line 160, in init_shared
self.init_browser()
File "/home/moritz/gtg/.local_build/install/lib/python3.8/site-packages/GTG/gtk/application.py", line 168, in init_browser
self.browser = MainWindow(self.req, self)
File "/home/moritz/gtg/.local_build/install/lib/python3.8/site-packages/GTG/gtk/browser/main_window.py", line 70, in init
self.config = self.req.get_config('browser')
AttributeError: 'NoneType' object has no attribute 'get_config'

Another similarity is that, the presence of the old backends.conf triggers the bug. So with an empty data folder, if the old backends.conf is present, the task list is empty an will not be saved. If you like I can post my old backends.conf here, but when I was testing I found that the bug only occurs when "default" is set to TRUE.

@morhe-blip
Copy link
Contributor Author

Now the old data is imported. Thanks a lot!

The old backends.conf seems to be the problem; if I delete the tmp folder an copy my old tmp folder, it still does not work. Deleting backends.conf however triggers the correct versioning. I cannot say if this is a problem because I messed around with so much backup copies and deleting/modifying single files that I don't know if this is just some relic from my mess.

If there are no objections this issue can be closed.

Thanks again to Diego!

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

No branches or pull requests

3 participants