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

tlmgr crash after install pythontex #19

Closed
yemeng77 opened this issue Sep 14, 2013 · 9 comments
Closed

tlmgr crash after install pythontex #19

yemeng77 opened this issue Sep 14, 2013 · 9 comments
Labels

Comments

@yemeng77
Copy link

@yemeng77 yemeng77 commented Sep 14, 2013

It seems this package has been in the latest TeXLive. However, after install it from tlmgr, tlmgr gives out message like this:

Tk::Error: Unknown docfile tag: texmf-dist/doc/latex/pythontex/pythontex_quickstart.pdf details=""Quick start" documentation" at /usr/local/texlive/current/tlpkg/TeXLive/TLPOBJ.pm line 127, line 127938.
TeXLive::TLPOBJ::from_fh at /usr/local/texlive/current/tlpkg/TeXLive/TLPOBJ.pm line 127
TeXLive::TLPDB::from_file at /usr/local/texlive/current/tlpkg/TeXLive/TLPDB.pm line 366
TeXLive::TLPDB::new at /usr/local/texlive/current/tlpkg/TeXLive/TLPDB.pm line 148
main::reinit_local_tlpdb at /usr/local/texlive/current/texmf-dist/scripts/texlive/tlmgrgui.pl line 2015
main::install_selected_packages at /usr/local/texlive/current/texmf-dist/scripts/texlive/tlmgrgui.pl line 1901
main::ANON at /usr/local/texlive/current/texmf-dist/scripts/texlive/tlmgrgui.pl line 441
Tk callback for .frame1.frame1.frame.frame1.button1
Tk::ANON at /usr/lib/perl5/Tk.pm line 250
Tk::Button::butUp at /usr/lib/perl5/Tk/Button.pm line 175

(command bound to event)

then tlmgr cannot start again. My OS is ubuntu 12.04 amd64.

@gpoore
Copy link
Owner

@gpoore gpoore commented Sep 14, 2013

This appears to be an issue related to how PythonTeX was added to TeX Live. Apparently one of the documentation files is triggering an error. I have contacted TeX Live and will update this as soon as I hear back from them.

My machine produced a similar error. I have fixed it (as far as I can tell) by opening texlive/2013/tlpkg/texlive.tlpdb, and changing the line

texmf-dist/doc/latex/pythontex/pythontex_quickstart.pdf details=""Quick start" documentation"

to

texmf-dist/doc/latex/pythontex/pythontex_quickstart.pdf details="Quick start documentation"

I believe the quotes inside quotes is causing the problem.

@yemeng77
Copy link
Author

@yemeng77 yemeng77 commented Sep 14, 2013

It works! Thanks for reply.

@gpoore
Copy link
Owner

@gpoore gpoore commented Sep 16, 2013

This is a bug in TeX Live related to the treatment of quotes in the descriptions of package files. It should be fixed in the next tlmgr update, which should be out soon. See the end of this thread for more: http://comments.gmane.org/gmane.comp.tex.live/34144.

@gpoore gpoore closed this Sep 16, 2013
@Doc73
Copy link

@Doc73 Doc73 commented Sep 16, 2013

Sorry, but you should reopen the issue.
Yesterday I applied the patch and all went well, but today I received the following error:

# tlmgr update --all
Unknown docfile tag:  texmf-dist/doc/latex/pythontex/pythontex_quickstart.pdf details=""Quick start" documentation" at /usr/local/texlive/2013/tlpkg/TeXLive/TLPOBJ.pm line 127, <$retfh> line 155550.

Hi and thank you very much!

@gpoore
Copy link
Owner

@gpoore gpoore commented Sep 16, 2013

@Doc73 That's an indication that TeX Live still hasn't released a fix (or if they have, it hasn't yet gotten to all the mirrors).

I closed the issue because this is a bug in TeX Live, not in PythonTeX, and the TeX Live admins have been notified. The bug just happens to have been triggered by the fact that CTAN decided to describe the PythonTeX Quickstart as "Quick start" documentation, and TeX Live took that, wrapped it in an additional set of double quotes, and subsequently crashed.

@Doc73
Copy link

@Doc73 Doc73 commented Sep 16, 2013

Yes, but, in the meantime, how can we update our system if tlmgr doesn't work?

Do you suggest to restore the previous state of texlive.tlpbdb or to maintain the correction to it?

@gpoore
Copy link
Owner

@gpoore gpoore commented Sep 16, 2013

@Doc73 Until TeX Live releases a fix, the best option is probably to keep editing the texlive.tlpdb to remove the quotes-within-quotes. According to the end of this thread, it should be a good solution until a fix is released. But I can't say for sure that it is the best option or superior to some type of restore, because I don't develop for TeX Live and thus don't know the internals.

@Doc73
Copy link

@Doc73 Doc73 commented Sep 17, 2013

GOOD NEWS!
I solved the problem by downloading and installing file update-tlmgr-latest.sh from http://tug.org/texlive/tlmgr.html.

@gpoore
Copy link
Owner

@gpoore gpoore commented Sep 17, 2013

@Doc73 Thanks for the link! Good to know this is patched now!

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

Successfully merging a pull request may close this issue.

None yet
3 participants