Closed golivag closed 4 years ago
Adding to this.I have experienced this also. It seems that the pypi_urls.html file being downloaded from PYPI and being parsed now contains lines looking like:
<a href="..." data-requires-python="..." data-yanked>pip-20.0-py2.py3-none-any.whl</a><br/>
<a href="..." data-requires-python="..." data-yanked>pip-20.0.tar.gz</a><br/>
the "data-yanked" attributes are potentially valid HTML but "not well-formed" XML. Replacing the string data-yanked>
with data-yanked="1">
after reading the file into a string just before line 498 in filetools.py has allowed my build to continue for now. However, this feels like a hack, I would assume that one is suppose to ignore these lines; perhaps it would be better to strip out any line with the offending mal-formed XML. I can't remember if the PY XML parser can be set to be more forgiving.
This was fixed upstream during the week and will be in the next release, see https://github.com/easybuilders/easybuild-framework/pull/3303
On Fri, 1 May 2020, 23:02 Philip Thiem, notifications@github.com<mailto:notifications@github.com> wrote:
Adding to this.I have experienced that. It seems that the pypi_urls.html file being downloaded from PYPI and being parsed now contains lines looking like:
<a href="..." data-requires-python="..." data-yanked>pip-20.0-py2.py3-none-any.whl</a><br/>
<a href="..." data-requires-python="..." data-yanked>pip-20.0.tar.gz</a><br/>
the "data-yanked" attributes are potentially valid HTML but "not well-formed" XML. Replacing the string data-yanked> with data-yanked="1"> after reading the file into a string just before line 498 in filetools.py has allowed my build to continue for now. However, this feels like a hack, I would assume that one is suppose to ignore these lines; perhaps it would be better to strip out any line with the offending mal-formed XML. I can't remember if the PY XML parser can be set to be more forgiving.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/easybuilders/easybuild/issues/619#issuecomment-622567152, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AA5JTNKALV2VQBDWFM4WGVDRPM2IBANCNFSM4MXEWYLQ.
Already fixed in https://github.com/easybuilders/easybuild-framework/pull/3303, so closing. The fix will be included with the upcoming EasyBuild v4.2.1 release (or you can manually apply the fix from https://github.com/easybuilders/easybuild-framework/pull/3303/files#diff-80e271b8fd31ff4cff170771374ccbe2 to your EasyBuild installation.
@golivag @ptthiem The problem should only manifest itself when trying to download sources from PyPI.
As a workaround, you can manually downloaded the source tarball yourself, and put in the "source path" where EasyBuild looks for pre-downloaded source tarballs (see output of eb --show-config
for the source path location).
Hi, I'm trying to install R-3.6.2-foss-2019b.eb on debian 10.
gcc (Debian 8.3.0-6) 8.3.0 Python 2.7.16
Python/3.7.4-GCCcore-8.3.0 fails with this error:
any hint welcome. Thanks