-
Notifications
You must be signed in to change notification settings - Fork 37
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 encountered with textext 0.7.3 and 0.8 using TeXLive 2018 #34
Comments
The deletion of the temporary directory used for compilation of the TeX code fails. It would be great if you could help us by performing the following test:
def try_remove(filename):
"""Try to remove given file, skipping if it doesn't exist"""
if os.path.isfile(filename):
inkex.debug(filename) # <-- added
os.remove(filename)
elif os.path.isdir(filename):
inkex.debug(os.listdir(filename)) # <-added
os.rmdir(filename)
Thank you very much! |
Thanks. I did the test following your guide. Errors remain the same, but no such window pops out. Best wishes |
It seems that some tex distributions produce additional output compared to what has been observed so far. Hence, this patch forces deletion of the temp directory even if it is not empty after the usual TeX files have been removed. Resolves textext#34
Meanwhile I was able to reproduce the problem, see commit 76aab08 It would be nice if you could check this on your system. Please perform the following steps:
Thank you very much in advance! |
jcwinkler, thank you very much! I did the check, the results are:
upon save: [Error 2] : 'texput.log' Best regards |
Hmm, I am quite puzzled about what's going on on your system. I use Windows 7 and TexLive too as a test system... Please perform the following test:
In the attached file I completely removed the deletion of the temp directory created by TexText so there sould nothing go wrong. Instead the files and dirs TexText wants to delete are displayed only in the window. Thank you very much. |
Directory is also deleted if it has subdirectories or contains files which do not begin with tmp. It seems that some tex distributions produce additional output compared to what has been observed so far. Hence, this patch forces deletion of the temp directory even if it is not empty. See issue textext#34
Thank you very much for the efforts! In fact I did another test. I rolled back from TeXLive 2018 to TeXLive 2016 and all the errors disappeared. Best wishes |
Directory is also deleted if it has subdirectories or contains files which do not begin with tmp. It seems that some tex distributions produce additional output compared to what has been observed so far. Hence, this patch forces deletion of the temp directory even if it is not empty. See issue textext#34
Although not directly verified by the user the reason for this issue was a non safe deletion of the temp directory which has been fixed by commit 8c65ec0 and which went into release 0.8 of TexText. |
Upon Preview I received error:
[Error 145] : 'c:\users\admini~1\appdata\local\temp\tmp9etrww'
Upon Save I received error:
[Error 145] : 'c:\users\admini
1\appdata\local\temp\tmphc_sfz'1\appdata\local\temp\tmphc_sfz'Traceback (most recent call last):
File "asktext.py", line 583, in cb_ok
self._texcmd_cbox.get_active_text().lower())
File "textext.py", line 286, in callback
tex_cmd, original_scale=current_scale)
File "textext.py", line 389, in do_convert
converter.finish()
File "textext.py", line 703, in finish
self.remove_temp_files()
File "textext.py", line 802, in remove_temp_files
self.try_remove(self.tmp_path)
File "textext.py", line 810, in try_remove
os.rmdir(filename)
WindowsError: [Error 145] : 'c:\users\admini
The same errors occur for both textext0.7.3 and 0.8. I am under Windows 7.
The text was updated successfully, but these errors were encountered: