evan-sm / cyberdrop-dl

📦🌏 Cyberdrop.me album downloader
https://crates.io/crates/cyberdrop-dl
138 stars 15 forks source link

sqlite3 database locked #18

Open ars1614 opened 1 year ago

ars1614 commented 1 year ago

I am using the app on a raspberry pi3 ubuntu:

Distributor ID: Ubuntu Description: Ubuntu 22.04.2 LTS Release: 22.04 Codename: jammy

When I execute the batch from the folder, it returns this error:

We are running version 4.2.28 of Cyberdrop Downloader
Traceback (most recent call last):
  File "/home/ars/.local/bin/cyberdrop-dl", line 8, in <module>
    sys.exit(main())
  File "/home/ars/.local/lib/python3.10/site-packages/cyberdrop_dl/main.py", line 303, in main
    loop.run_until_complete(director(args, links))
  File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
    return future.result()
  File "/home/ars/.local/lib/python3.10/site-packages/cyberdrop_dl/main.py", line 245, in director
    await SQL_Helper.sql_initialize()
  File "/home/ars/.local/lib/python3.10/site-packages/cyberdrop_dl/base_functions/sql_helper.py", line 54, in sql_initialize
    await self._pre_allocate()
  File "/home/ars/.local/lib/python3.10/site-packages/cyberdrop_dl/base_functions/sql_helper.py", line 114, in _pre_allocate
    self.curs.execute(pre_alloc)
sqlite3.OperationalError: database is locked

When I execute it from a Windows OS, it works nicely.

evan-sm commented 1 year ago

You're trying to run another python application, try type -a cyberdrop-dl to see full path

ars1614 commented 1 year ago

I had two of them: /home/MyUser/.local/bin/cyberdrop-dl /usr/local/bin/cyberdrop-dl

I renamed the one from /usr/local/bin and it's giving the same error.