rolfa / calendar-search

read/search entries in Jolla calendar db (Sailfish OS)
MIT License
3 stars 0 forks source link

SyntaxError on Xperia X #2

Closed matzgewinn closed 4 years ago

matzgewinn commented 4 years ago

Installed calendar-search.py succesfully on a friends Xperia X last year. This was the free version of sailfish Os for the device. After updating to the pay-version (3.2.1.20 (Nuuksio)) the command "sudo python calendar-search.py" gives an error: "calendar-search.py, linie 7 SyntaxError: invalid syntax"

I repeated the installationprocess, did a "pckon-refresh", installed python and python3 again, but it didn't work. I am sorry, I'm not a developer, just an enthusiastic linux user, can you fix this or give me advice to fix it? Do I have to modify the script? best regards

rolfa commented 4 years ago

Sorry for the late reply. I made a few changes to make it run with Python3. Use it as follows: sudo calendar-search.py Let me know if it works for you.

rolfa commented 4 years ago

Use it as follows: sudo ./calendar-search.py

matzgewinn commented 4 years ago

Thank You very much - this did it. Would it work with devel-su as well?

best regards and thank you for your work!

matzgewinn commented 4 years ago

can I buy you a cup of coffee??

rolfa commented 4 years ago

Enjoy the script - no need to pay me anything.

matzgewinn commented 3 years ago

Hello dear rolfa,

sorry for opening this issue again - or should I open a new one? - not sure...

Whatever: After updgrading on sailfish os 4 a few days ago, there is an error appearing after running the script:

"File "calendar-search.py", line 52, in

import os, sys, sqlite3

ImportError: No module named sqlite3"

What does that mean and do you have an idea how to fix this?

Best regards!

matzgewinn commented 3 years ago

I opened a new issue.