-
Notifications
You must be signed in to change notification settings - Fork 92
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
Building documentation on Debian: warnings and failure #306
Comments
After having researched a bit, I discovered that that font file is actually n019003l.pfb: Nimbus Sans L:style=Regular that seems equivalent to /usr/share/fonts/X11/Type1/NimbusSans-Regular.pfb: Nimbus Sans:style=Regular. Do you have an idea where we could make the change ? |
I managed to create a symlink /usr/share/fonts/X11/Type1/NimbusSans-Regular.pfb -> n019003l.pfb. but the the documentation build fails differently: Chapter 1. ? If I enter 'q', then the build goes on. If I run that make latexpdf command twice (hitting 'q' twice), this is what I get (with the pdf file being generated seemingly succesfully): ? q However, the problem, even if the pdf file seems to be correct, is that the make error provokes the Debian package build failure. What do you think is involved in this error (that is, at this point I am stuck)? Sincerely, |
Hi @lopippo, We did not make the choice for this font explicitly (at least as far as I know). And thank you for taking care of the debian package and reporting this! Best, |
Greetings, Manuel,
Well, we always build new versions of packages for Debian unstable (sid) and I always work on testing (that is, what will be the version after bullseye: bookworm). I would suggest this link :-) https://www.debian.org/devel/debian-installer/. I have installed a brand new machine recently and that was flawless! Thank you for your endeavour on pymzML ! |
Greetings, Manuel, any advance on this issue? I would be glad to have this current version in Debian stable... |
OK, waiting for a more formal resolution, this is what I did:
The output is the following (only warnings shown):
I do not know how grave these warnings are. The LaTeX code that is generated is nonetheless usable to craft a pdf file using the make latexpdf command. However, for the building of Debian packages, the network accesses during the package building are prohibited and the image fetching above will create trouble while doing the building. Is it possible to somehow avoid any "live" build-time access to the network other than the downloading of dependencies in the form of debian packages? Sincerely, |
Going forward... oddly enough, I now tried this command sudo ln -sf /usr/share/fonts/X11/Type1/NimbusSans-Regular.pfb /usr/share/fonts/type1/gsfonts/n019003l.pfb and then make latexpdf and the build went fine (unless for the problematic network accessses during the build mentioned in the previous issue message). So, that means that I should be able, while building the package, to make that symbolic link. Could you please, then, provide me with instructions to avoid accessing the network during the docs build step ? Edit: I tried to look into the documentation source files and grepping appveyor or travis did not find anything. So, I wonder if these network accesses are actually coded in your documentation or if they are coded in the sphinx run time? Do you have any idea? Thank you! |
Again, going forward: I discovered that the actual documentation source files never mention appveyor or travis. These items get inserted in the pymzML.tex when building the latex version of the documentation. These are the lines:
The problem here is that 'make latex' not only seems to write these lines but also somehow tries to resolve these references, like this: resolving references... How can we disable the insertion of these network references? Sincerely, |
As for the two indentation errors, mentioned in my very first issue report message, here is something that does not make sphinx complain:
Is this correct ? Sincerely, |
Hey, Sorry for not answering, I'm in the midst of writing up my phD thesis and did not find the time. E: README is included in sources/intro.rst Best, |
I'll try to find out how/where to insert something like a |
Greetings, Manuel, thank you for helping. Yes, indeed, in the README.rst file (top source dir) there are all these images included that link to external web sites. I'll try to make a patch for the Debian packaging that removes these images and then rebuild. I'll report to you as soon as possible. |
Greetings,
I would like to build pymzML for the Debian python3-pymzml package, but when following the build.command recipe, this is what I get:
% make html:
reading sources... [100%] suppl_material
../README.rst:4: WARNING: Duplicate explicit target name: "here".
/home/rusconi/devel/python-pymzml/tarballs/pymzml-repack-2.5.2/pymzml/plot.py:docstring of pymzml.plot.Factory.add:6: ERROR: Unexpected indentation.
/home/rusconi/devel/python-pymzml/tarballs/pymzml-repack-2.5.2/pymzml/plot.py:docstring of pymzml.plot.Factory.add:15: ERROR: Unexpected indentation.
This warning is not serious because the documentation is built fine.
Then when doing
% make latexpdf
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
processing pymzML.tex... index intro quick_start modules pymzml_run pymzml_spec pymzml_utils plot file_handlers obo pymzml_regex_patterns examples index_gzip custom_fileclass example_scripts suppl_material
resolving references...
failed
Extension error:
convert exited with error:
[stderr]
b'convert convert: Unable to read font (/usr/share/fonts/type1/gsfonts/n019003l.pfb) [No such file or directory].\n'
[stdout]
I was wondering if that font file was required or if some config bit could change it. That font file does not belong in any font package in Debian, which makes things a bit complex... Does that font choice depend on your doc code or is it encoded by sphinx (or by who knows)?
Thank you for listening :-)
Filippo
The text was updated successfully, but these errors were encountered: