PanicException: called Result::unwrap()
on an Err
value: Os { code: 35, kind: WouldBlock, message: "Resource temporarily unavailable" }
#421
Labels
bug
Something isn't working
What language are you using?
Python
What version are you using?
connectorx 0.3.1
What database are you using?
sqlite3
What dataframe are you using?
Pandas
Can you describe your bug?
The exception happens while selecting in a loop.
After approx 1500 iterations.
If time.sleep(0.01) is added right after the query then the problem goes away.
What are the steps to reproduce the behavior?
Database setup if the error only happens on specific data or data type
Table schema and example data
Example query / code
result_df = cx.read_sql("sqlite://" + xdb_path, "SELECT * FROM '" + table_name + "'")
What is the error?
thread '' panicked at 'called
Result::unwrap()
on anErr
value: Os { code: 35, kind: WouldBlock, message: "Resource temporarily unavailable" }', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/scheduled-thread-pool-0.2.6/src/lib.rs:320:44note: run with
RUST_BACKTRACE=1
environment variable to display a backtraceException in thread Thread-1:
Traceback (most recent call last):
File "/opt/homebrew/Caskroom/miniforge/base/envs/tf/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/opt/homebrew/Caskroom/miniforge/base/envs/tf/lib/python3.9/threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "/Users/mac/tensorflow_macos_venv/monitor_cutoff.py", line 663, in get_dataframes
ResultDFArray[mode_index], FactorArray[mode_index], MinDaysArray[mode_index] = get_combined_data(mode_in_list)
File "/Users/mac/tensorflow_macos_venv/monitor_cutoff.py", line 382, in get_combined_data
result_df = cx.read_sql("sqlite://" + xdb_path, "SELECT * FROM '" + table_name + "'")
File "/opt/homebrew/Caskroom/miniforge/base/envs/tf/lib/python3.9/site-packages/connectorx/init.py", line 224, in read_sql
result = _read_sql(
pyo3_runtime.PanicException: called
Result::unwrap()
on anErr
value: Os { code: 35, kind: WouldBlock, message: "Resource temporarily unavailable" }The text was updated successfully, but these errors were encountered: