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

In doc: quotes are turned into another utf-8 char, creating errors. #11

Closed
dflvunoooooo opened this issue Dec 13, 2023 · 5 comments
Closed

Comments

@dflvunoooooo
Copy link
Contributor

If I try to run the CacheMeCode example I copied from the documentation, it wasn't working because of some wrong utf8 character (The code I pasted used ’ (U+2019) instead of ' (U+0027)). This was probably only a conversion error of the editor. But there was no robust-externalize log about this and the latex log was unprecise. If run with python directly, it said:

  File "test.py", line 5
    plt.xlabel(’Year’)
               ^
SyntaxError: invalid character '’' (U+2019)

Texstudio again only threw the error Package robExt Error: The pdf file. So maybe related to issue #9 ?

Here is the robust-externalize part of the latex log:

…
\openout5 = `robust-externalize_python-robExt-tmp-file-you-can-remove.tmp'.

runsystem(mkdir -p robustExternalize/)...executed.

\openout5 = `robustExternalize/robExt-639F27F5FB7B81D83A1534DF719478E7.deps'.

\openout5 = `robustExternalize/robExt-639F27F5FB7B81D83A1534DF719478E7.tex'.


Source saved in robustExternalize/robExt-639F27F5FB7B81D83A1534DF719478E7.tex.
[robExt]We will start the compilationusing: cd robustExternalize/ && python "ro
bExt-639F27F5FB7B81D83A1534DF719478E7.tex".
runsystem(cd robustExternalize/ && python "robExt-639F27F5FB7B81D83A1534DF71947
8E7.tex")...executed.



! Package robExt Error: The pdf file
(robExt)               
robustExternalize/robExt-639F27F5FB7B81D83A1534DF719478E7.pdf
(robExt)                is not present. The compilation command "cd
(robExt)                robustExternalize/ && python
(robExt)                "robExt-639F27F5FB7B81D83A1534DF719478E7.tex"" used
(robExt)                to compile the environment on line 21 certainly
(robExt)                failed, see logs above or in
(robExt)               
robustExternalize/robExt-639F27F5FB7B81D83A1534DF719478E7.log.

Type <return> to continue.
 ...                                              
                                                  
l.21 \end{CacheMeCode}
                      

LaTeX does not know anything more about this error, sorry.

Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.


Finished to include the file. [1

] (./robust-externalize_python.aux) ) 
…
@tobiasBora
Copy link
Contributor

Yes, this error is exactly like #9 : this error message would be print in the command line, but for some reasons this is not written in the log directly… The problem of the copy/pasted character is however good to know, I'll try to see what I can do.

@tobiasBora tobiasBora changed the title No error with CachMeCode / python In doc: quotes is turned into another utf-8 char, creating errors. Dec 13, 2023
@tobiasBora tobiasBora changed the title In doc: quotes is turned into another utf-8 char, creating errors. In doc: quotes are turned into another utf-8 char, creating errors. Dec 13, 2023
@dflvunoooooo
Copy link
Contributor Author

dflvunoooooo commented Dec 13, 2023

Yes, but this time there is not even a log in the robust-extrenalized. Don't know if that matters.

Edit: The log which is named in the latex log does not exist.

@tobiasBora
Copy link
Contributor

Yes, this is normal: the .log is actually created by latex when it compiles the cached image, but python does not create any log file by default… explaining why the log file does not exist.

@dflvunoooooo
Copy link
Contributor Author

I see. Thank you for the clarification.

@tobiasBora
Copy link
Contributor

The doc should be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants