-
Notifications
You must be signed in to change notification settings - Fork 862
Description
Hello,
I’m encountering a bug when trying to run the ImportWizardsAccountingData function in a Python macro within Collabora / LibreOffice.
The process fails with a URLError: Temporary failure in name resolution.
ScriptProtocolHandler::dispatch: caught com.sun.star.uno.RuntimeException:
Error during invoking function ImportWizardsAccountingData
in module file:///lo/share/Scripts/python/data-dream/DataDreamMacro.py
(<class 'urllib.error.URLError'>: <urlopen error [Errno -3] Temporary failure in name resolution>)
File "/lo/program/pythonscript.py", line 921, in invoke
ret = self.func(*args)
File "/lo/share/Scripts/python/data-dream/DataDreamMacro.py", line 495, in ImportWizardsAccountingData
macroFactory(wizard_name, url, user_lang)
File "/lo/share/Scripts/python/data-dream/DataDreamMacro.py", line 487, in macroFactory
macro.run(url=url)
File "/lo/share/Scripts/python/data-dream/DataDreamMacro.py", line 62, in run
self._init_data_by_CSV_file(url)
File "/lo/share/Scripts/python/data-dream/DataDreamMacro.py", line 105, in _init_data_by_CSV_file
with urlopen(url, context=ssl._create_unverified_context()) as csv_bin:
File "/lo/program/python-core-3.10.18/lib/urllib/request.py", line 216, in urlopen
return opener.open(url, data, timeout)
File "/lo/program/python-core-3.10.18/lib/urllib/request.py", line 519, in open
response = self._open(req, data)
File "/lo/program/python-core-3.10.18/lib/urllib/request.py", line 536, in _open
result = self._call_chain(self.handle_open, protocol, protocol + '_open')
File "/lo/program/python-core-3.10.18/lib/urllib/request.py", line 496, in _call_chain
result = func(*args)
File "/lo/program/python-core-3.10.18/lib/urllib/request.py", line 1391, in https_open
return self.do_open(http.client.HTTPSConnection, req)
File "/lo/program/python-core-3.10.18/lib/urllib/request.py", line 1351, in do_open
raise URLError(err)
Steps to Reproduce
1. Run the ImportWizardsAccountingData macro in Collabora / LibreOffice.
2. Provide a URL to fetch a CSV file.
3. Observe the error during the data import step.
⸻
Expected Behavior
The macro should download the CSV file and continue the import process without failing.
⸻
Actual Behavior
The macro crashes with Temporary failure in name resolution, meaning it cannot resolve the domain name when trying to fetch the CSV file.
⸻
Environment
• Collabora version: collabora/code:latest
• Python version: 3.10.18 (embedded in LibreOffice)
• LibreOffice environment: /lo/share/Scripts/python/
Metadata
Metadata
Assignees
Labels
Type
Projects
Status