PlotPyStack / guidata

Python library generating graphical user interfaces for easy dataset editing and display
https://pypi.python.org/pypi/guidata
BSD 3-Clause "New" or "Revised" License
61 stars 18 forks source link

[3.0.2] sphinx doc hang when building on the Debian infra #62

Closed picca closed 1 year ago

picca commented 1 year ago

the Debian infrastructure si not connected to internet in order to avoid security issues. so the network is not accessible during the build.

It seems that the documentation try to access something on internet when I run the sphinx-build script.

I am wondering if this is not something related to the get_package_summary_from_pypi...

I can patch this part but maybe the best solution would be to generate these file at release time.

Cheers

Fred

picca commented 1 year ago

If I do a strace on the hang process...

picca@grades-01:~$ ps aux | grep sphinx
picca    2573697  0.0  0.0   2600   932 ?        S    15:17   0:00 /bin/sh -c env PYTHONPATH=/build/guidata-L6FXsk/guidata-3.0.2+dfsg1/.pybuild/cpython3_3.11_guidata/build \ SPHINXBUILD="python3 -m sphinx" \ SPHINXOPTS="-D mathjax_path=MathJax.js" \ sphinx-build -vvv -N -bhtml doc build/html
picca    2573698  0.1  0.0  62636 50840 ?        S    15:17   0:00 /usr/bin/python3 /usr/bin/sphinx-build -vvv -N -bhtml doc build/html
picca    2573877  0.0  0.0   6256  2496 pts/49   S+   15:19   0:00 grep sphinx
picca@grades-01:~$ strace -p 2573698
strace: Process 2573698 attached
connect(4, {sa_family=AF_INET, sin_port=htons(443), sin_addr=inet_addr("151.101.192.223")}, 16^Cstrace: Process 2573698 detached
 <detached ...>
picca commented 1 year ago

Once deactivated I get this error message

Extension error (sphinx_qt_documentation.utils):
Handler <function missing_reference at 0x7fb0f501c680> for event 'missing-reference' threw an exception (exception: 'PySide6')
make[1]: *** [debian/rules:14: execute_after_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:7: binary] Error 2

???

picca commented 1 year ago

the ip adresse is the one from

$ host pypi.org pypi.org has address 151.101.128.223 pypi.org has address 151.101.192.223 pypi.org has address 151.101.64.223 pypi.org has address 151.101.0.223