View Single Post
Old 07-01-2024, 07:42 AM   #5
rabe3ab
Enthusiast
rabe3ab began at the beginning.
 
Posts: 46
Karma: 10
Join Date: Mar 2015
Device: Kindle Paperwhite 3
I am using widows
and i got this error code:


[INFO] Automatically switching to SQLite mode for writing Stardict
[INFO] Using sortKeyName = 'stardict'
[ERROR] Failed to create SQLite file
Traceback (most recent call last):
File "C:\Users\rabe3\scoop\apps\python\current\Lib\ site-packages\pyglossary\glossary_v2.py", line 947, in _switchToSQLite
self._data = SqEntryList(
^^^^^^^^^^^^
File "C:\Users\rabe3\scoop\apps\python\current\Lib\ site-packages\pyglossary\sq_entry_list.py", line 74, in __init__
self._con: "sqlite3.Connection | None" = sqlite3.connect(filename)
^^^^^^^^^^^^^^^^^^^^^^^^^
sqlite3.OperationalError: unable to open database file
Traceback (most recent call last):
File "C:\Users\rabe3\scoop\apps\python\current\Lib\ site-packages\pyglossary\glossary_v2.py", line 947, in _switchToSQLite
self._data = SqEntryList(
^^^^^^^^^^^^
File "C:\Users\rabe3\scoop\apps\python\current\Lib\ site-packages\pyglossary\sq_entry_list.py", line 74, in __init__
self._con: "sqlite3.Connection | None" = sqlite3.connect(filename)
^^^^^^^^^^^^^^^^^^^^^^^^^
sqlite3.OperationalError: unable to open database file

[ERROR] 'SqEntryList' object has no attribute '_con'
unhandled exception:
Traceback (most recent call last):
File "C:\Users\rabe3\scoop\apps\python\current\Lib\ site-packages\pyglossary\ui\ui_cmd_interactive.py", line 1093, in main
succeed = ui_cmd.UI.run(self, **self.getRunKeywordArgs())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\rabe3\scoop\apps\python\current\Lib\ site-packages\pyglossary\ui\ui_cmd.py", line 340, in run
finalOutputFile = self.glos.convert(
^^^^^^^^^^^^^^^^^^
File "C:\Users\rabe3\scoop\apps\python\current\Lib\ site-packages\pyglossary\glossary_v2.py", line 1234, in convert
return self.convertV2(args)
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\rabe3\scoop\apps\python\current\Lib\ site-packages\pyglossary\glossary_v2.py", line 1176, in convertV2
sort = self._convertPrepare(
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\rabe3\scoop\apps\python\current\Lib\ site-packages\pyglossary\glossary_v2.py", line 1126, in _convertPrepare
self._setTmpDataDir(args.inputFilename)
File "C:\Users\rabe3\scoop\apps\python\current\Lib\ site-packages\pyglossary\glossary_v2.py", line 631, in _setTmpDataDir
os.makedirs(self._tmpDataDir, mode=0o700, exist_ok=True)
File "<frozen os>", line 225, in makedirs
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'C:\\Users\\rabe3\\AppData\\Local\\PyGlossary\\Cac he\\bulbagarden_en_all_nopic_2022-02.zim"_res'


i tried using ubuntu and got similar error
rabe3ab is offline   Reply With Quote