Dear Wolfram,

This has come a bit in the last few weeks, to quote @boegel from 
https://github.com/easybuilders/easybuild/issues/619:


Already fixed in 
easybuilders/easybuild-framework#3303<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<https://github.com/golivag> @ptthiem<https://github.com/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).

Hope that helps,

Alan


On Mon, 4 May 2020 at 15:57, Wolfram Zieger 
<[email protected]<mailto:[email protected]>> wrote:
Hello there,
Has anyone an idea why building

 * Python/2.7.16-GCCcore-8.3.0
 * Python/3.7.4-GCCcore-8.3.0

as provided upstream on 
https://github.com/easybuilders/easybuild-easyconfigs/tree/master/easybuild/easyconfigs/p/Python
(Master branch) will fail at least in the combination

  * foss/2019b
  * EasyBuild/4.2.0
  * RHEL 7.7 (and propably but not testet Centos7.7)

?
Replacing OS OpenSSL with easybuilds foss-2019b OpenSSL is not helping here.

The thing is: When removing "exts_default_options" and all "exts_list"-content 
both Pythons will build just fine. Just inserting the PIP extensions is enough 
to make it fail (tested on Python 3).

The Python traceback looks like this on both Python-Versions (example from 
Python2.17.16).
____________________________________________________________________________________
== building and installing Python/2.7.16-GCCcore-8.3.0...
== fetching files...
ERROR: Traceback (most recent call last):
  File 
"/somewhere/ebPrefix2019b/software/EasyBuild/4.2.0/lib/python2.7/site-packages/easybuild/main.py",
 line 114, in build_and_install_software
    (ec_res['success'], app_log, err) = build_and_install_one(ec, init_env)
  File 
"/somewhere/ebPrefix2019b/software/EasyBuild/4.2.0/lib/python2.7/site-packages/easybuild/framework/easyblock.py",
 line 3183, in build_and_install_one
    result = app.run_all_steps(run_test_cases=run_test_cases)
  File 
"/somewhere/ebPrefix2019b/software/EasyBuild/4.2.0/lib/python2.7/site-packages/easybuild/framework/easyblock.py",
 line 3087, in run_all_steps
    self.run_step(step_name, step_methods)
  File 
"/somewhere/ebPrefix2019b/software/EasyBuild/4.2.0/lib/python2.7/site-packages/easybuild/framework/easyblock.py",
 line 2926, in run_step
    step_method(self)()
  File 
"/somewhere/ebPrefix2019b/software/EasyBuild/4.2.0/lib/python2.7/site-packages/easybuild/easyblocks/generic/configuremake.py",
 line 180, in fetch_step
    super(ConfigureMake, self).fetch_step(*args, **kwargs)
  File 
"/somewhere/ebPrefix2019b/software/EasyBuild/4.2.0/lib/python2.7/site-packages/easybuild/framework/easyblock.py",
 line 1795, in fetch_step
    self.exts = self.fetch_extension_sources(skip_checksums=skip_checksums)
  File 
"/somewhere/ebPrefix2019b/software/EasyBuild/4.2.0/lib/python2.7/site-packages/easybuild/framework/easyblock.py",
 line 520, in fetch_extension_sources
    src_fn = self.obtain_file(fn, extension=True, urls=source_urls, 
force_download=force_download)
  File 
"/somewhere/ebPrefix2019b/software/EasyBuild/4.2.0/lib/python2.7/site-packages/easybuild/framework/easyblock.py",
 line 727, in obtain_file
    alt_url = derive_alt_pypi_url(fullurl)
  File 
"/somewhere/ebPrefix2019b/software/EasyBuild/4.2.0/lib/python2.7/site-packages/easybuild/tools/filetools.py",
 line 519, in derive_alt_pypi_url
    cand_urls = pypi_source_urls(pkg_name)
  File 
"/somewhere/ebPrefix2019b/software/EasyBuild/4.2.0/lib/python2.7/site-packages/easybuild/tools/filetools.py",
 line 498, in pypi_source_urls
    parsed_html = ElementTree.parse(urls_html)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1182, in parse
    tree.parse(source, parser)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 656, in parse
    parser.feed(data)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.7py", line 1642, in feed
    self._raiseerror(v)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1506, in 
_raiseerror
    raise err
ParseError: not well-formed (invalid token): line 143, column 306
____________________________________________________________________________________

I am by no means an expert in interpreting Python trackbacks - so no further 
comment on this one from me.

Thanks,
Wolfram



--
Dr. Alan O'Cais
E-CAM Software Manager
Juelich Supercomputing Centre
Forschungszentrum Juelich GmbH
52425 Juelich, Germany

Phone: +49 2461 61 5213
Fax: +49 2461 61 6656
E-mail: [email protected]<mailto:[email protected]>
WWW:    http://www.fz-juelich.de/ias/jsc/EN


------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Volker Rieke
Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------

Reply via email to