This topic was automatically generated from Slack. You can find the original thread here.
Some Python help needed over here.
I am getting this error when using this Python SDK netsuitesdk
These are my imports. What am I missing or doing wrong pls
**import** os
**import** itertools
**import** json
**import** requests
**import** asyncio
**from** netsuitesdk **import** NetSuiteConnection
**from** zeep.cache **import** SqliteCache #Added this when I traced the below error and thought it will help
OperationalError
unable to open database file
Traceback (most recent call last):
File "/pipedream/dist/code/f222f9ca455306c0cbed46da9982c7d049bcea3154192d6a3033e26843961c17/code.py", line 60, in handler
nc = retry_until_success()
File "/pipedream/dist/code/f222f9ca455306c0cbed46da9982c7d049bcea3154192d6a3033e26843961c17/code.py", line 50, in retry_until_success
result = retry_function()
File "/pipedream/dist/code/f222f9ca455306c0cbed46da9982c7d049bcea3154192d6a3033e26843961c17/code.py", line 40, in retry_function
result = connect_tba() #some_function_that_might_fail()
File "/pipedream/dist/code/f222f9ca455306c0cbed46da9982c7d049bcea3154192d6a3033e26843961c17/code.py", line 28, in connect_tba
nc = NetSuiteConnection(
File "/pipedream/dist/python/netsuitesdk/connection.py", line 40, in __init__
ns_client = NetSuiteClient(account=account, caching=caching, caching_timeout=caching_timeout,
File "/pipedream/dist/python/netsuitesdk/internal/client.py", line 72, in __init__
cache = SqliteCache(path=path, timeout=timeout)
File "/pipedream/dist/python/zeep/cache.py", line 121, in __init__
with self.db_connection() as conn:
File "/var/lang/lib/python3.9/contextlib.py", line 119, in __enter__
return next(self.gen)
File "/pipedream/dist/python/zeep/cache.py", line 134, in db_connection
connection = sqlite3.connect(
sqlite3.OperationalError: unable to open database file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/nano-py/pipedream/worker.py", line 118, in execute
user_retval = handler(pd)
File "/pipedream/dist/code/f222f9ca455306c0cbed46da9982c7d049bcea3154192d6a3033e26843961c17/code.py", line 65, in handler
nc = connect_tba()
File "/pipedream/dist/code/f222f9ca455306c0cbed46da9982c7d049bcea3154192d6a3033e26843961c17/code.py", line 28, in connect_tba
nc = NetSuiteConnection(
File "/pipedream/dist/python/netsuitesdk/connection.py", line 40, in __init__
ns_client = NetSuiteClient(account=account, caching=caching, caching_timeout=caching_timeout,
File "/pipedream/dist/python/netsuitesdk/internal/client.py", line 72, in __init__
cache = SqliteCache(path=path, timeout=timeout)
File "/pipedream/dist/python/zeep/cache.py", line 121, in __init__
with self.db_connection() as conn:
File "/var/lang/lib/python3.9/contextlib.py", line 119, in __enter__
return next(self.gen)
File "/pipedream/dist/python/zeep/cache.py", line 134, in db_connection
connection = sqlite3.connect(
sqlite3.OperationalError: unable to open database file
(createFileInNetSuite)