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

AttributeError while handling sqlite3.OperationalError #92

Open
phargogh opened this issue Jun 13, 2023 · 0 comments
Open

AttributeError while handling sqlite3.OperationalError #92

phargogh opened this issue Jun 13, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@phargogh
Copy link
Member

Just got a report with the following traceback:

Traceback (most recent call last):
  File "C:\DS_Beneficiaries\downstream-beneficiaries.py", line 278, in <module>
    main()
  File "C:\DS_Beneficiaries\downstream-beneficiaries.py", line 267, in main
    calculate_downstream_beneficiaries(
  File "C:\DS_Beneficiaries\downstream-beneficiaries.py", line 122, in calculate_downstream_beneficiaries
    graph = taskgraph.TaskGraph(
  File "C:\Users\ntrahan\AppData\Local\ESRI\conda\envs\NatCapPyGeo\lib\site-packages\taskgraph\Task.py", line 333, in _init_
    _create_taskgraph_table_schema(self._task_database_path)
  File "C:\Users\ntrahan\AppData\Local\ESRI\conda\envs\NatCapPyGeo\lib\site-packages\taskgraph\Task.py", line 223, in _create_taskgraph_table_schema
    _execute_sqlite(
  File "C:\Users\ntrahan\AppData\Local\ESRI\conda\envs\NatCapPyGeo\lib\site-packages\retrying.py", line 49, in wrapped_f
    return Retrying(*dargs, **dkw).call(f, *args, **kw)
  File "C:\Users\ntrahan\AppData\Local\ESRI\conda\envs\NatCapPyGeo\lib\site-packages\retrying.py", line 212, in call
    raise attempt.get()
  File "C:\Users\ntrahan\AppData\Local\ESRI\conda\envs\NatCapPyGeo\lib\site-packages\retrying.py", line 247, in get
    six.reraise(self.value[0], self.value[1], self.value[2])
  File "C:\Users\ntrahan\AppData\Local\ESRI\conda\envs\NatCapPyGeo\lib\site-packages\six.py", line 719, in reraise
    raise value
  File "C:\Users\ntrahan\AppData\Local\ESRI\conda\envs\NatCapPyGeo\lib\site-packages\retrying.py", line 200, in call
    attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
  File "C:\Users\ntrahan\AppData\Local\ESRI\conda\envs\NatCapPyGeo\lib\site-packages\taskgraph\Task.py", line 1563, in _execute_sqlite
    connection = sqlite3.connect(database_path)
sqlite3.OperationalError: unable to open database file
ERROR:taskgraph.Task:ignoring an exception that occurred during _terminate
Traceback (most recent call last):
  File "C:\Users\ntrahan\AppData\Local\ESRI\conda\envs\NatCapPyGeo\lib\site-packages\taskgraph\Task.py", line 842, in _terminate
    if self._n_workers >= 0:
AttributeError: 'TaskGraph' object has no attribute '_n_workers'
@phargogh phargogh added the bug Something isn't working label Jun 13, 2023
@phargogh phargogh self-assigned this Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant