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

Error converting CSV to Mobipocket #368

Closed
skillhacker-code opened this issue Mar 13, 2022 · 5 comments
Closed

Error converting CSV to Mobipocket #368

skillhacker-code opened this issue Mar 13, 2022 · 5 comments

Comments

@skillhacker-code
Copy link

I am getting Errors when i am trying to convert .csv file to Mobipocket , I read the format specific requirement and did all the configuration .
dict.csv

I am trying to create Arabic to English Dictionary (attaching csv file )

I would be very grateful if you can fix it , or help me through it .

image

Still below errors are showing

[ERROR] Exception while calling plugin's write function
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Mu Editor\Python\lib\shutil.py", line 791, in move
os.rename(src, real_dst)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\User\AppData\Local\Temp\tmprnma0ku9' -> 'F:\Quran\Quran Kindle Dictionary Mine\New folder\v10'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\User\AppData\Local\python\mu\mu_venv-38-20220304-112627\lib\site-packages\pyglossary\glossary.py", line 830, in _write
gen.send(None)
File "C:\Users\User\AppData\Local\python\mu\mu_venv-38-20220304-112627\lib\site-packages\pyglossary\plugins\ebook_mobi.py", line 317, in write
yield from EbookWriter.write(self)
File "C:\Users\User\AppData\Local\python\mu\mu_venv-38-20220304-112627\lib\site-packages\pyglossary\ebook_base.py", line 434, in write
shutil.move(self._tmpDir, filename)
File "C:\Users\User\AppData\Local\Programs\Mu Editor\Python\lib\shutil.py", line 809, in move
rmtree(src)
File "C:\Users\User\AppData\Local\Programs\Mu Editor\Python\lib\shutil.py", line 740, in rmtree
return _rmtree_unsafe(path, onerror)
File "C:\Users\User\AppData\Local\Programs\Mu Editor\Python\lib\shutil.py", line 622, in _rmtree_unsafe
onerror(os.rmdir, path, sys.exc_info())
File "C:\Users\User\AppData\Local\Programs\Mu Editor\Python\lib\shutil.py", line 620, in _rmtree_unsafe
os.rmdir(path)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\User\AppData\Local\Temp\tmprnma0ku9'
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Mu Editor\Python\lib\shutil.py", line 791, in move
os.rename(src, real_dst)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\User\AppData\Local\Temp\tmprnma0ku9' -> 'F:\Quran\Quran Kindle Dictionary Mine\New folder\v10'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\User\AppData\Local\python\mu\mu_venv-38-20220304-112627\lib\site-packages\pyglossary\glossary.py", line 830, in _write
gen.send(None)
File "C:\Users\User\AppData\Local\python\mu\mu_venv-38-20220304-112627\lib\site-packages\pyglossary\plugins\ebook_mobi.py", line 317, in write
yield from EbookWriter.write(self)
File "C:\Users\User\AppData\Local\python\mu\mu_venv-38-20220304-112627\lib\site-packages\pyglossary\ebook_base.py", line 434, in write
shutil.move(self._tmpDir, filename)
File "C:\Users\User\AppData\Local\Programs\Mu Editor\Python\lib\shutil.py", line 809, in move
rmtree(src)
File "C:\Users\User\AppData\Local\Programs\Mu Editor\Python\lib\shutil.py", line 740, in rmtree
return _rmtree_unsafe(path, onerror)
File "C:\Users\User\AppData\Local\Programs\Mu Editor\Python\lib\shutil.py", line 622, in _rmtree_unsafe
onerror(os.rmdir, path, sys.exc_info())
File "C:\Users\User\AppData\Local\Programs\Mu Editor\Python\lib\shutil.py", line 620, in _rmtree_unsafe
os.rmdir(path)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\User\AppData\Local\Temp\tmprnma0ku9'

[CRITICAL] Writing file 'F:/Quran/Quran Kindle Dictionary Mine/New folder/v10' failed.

@ilius
Copy link
Owner

ilius commented Mar 13, 2022

In "Write Options" dialog that you attached, change "keep" to "True" (click on False), and try again.

@skillhacker-code
Copy link
Author

Error(prcgen):E23005: Language not specified in metadata. The dc:Language field is mandatory. Aborting.

Now this issue is coming

@ilius
Copy link
Owner

ilius commented Mar 16, 2022

Try adding --source-lang Arabic --target-lang English to your command.

Also with latest commit, you don't need to change keep option.

@skillhacker-code
Copy link
Author

Thank you for trying to help me . I really appreciate that you took your time to helping me .

@ilius
Copy link
Owner

ilius commented Mar 23, 2022

Is your problem resolved?
Feel free to open a new issue otherwise.

@ilius ilius changed the title Can you please help me with this ,I have tried for more than 10 times to get it to work Error converting CSV to Mobipocket Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants