On 07/11/2018 22:00, Jakob Schiøtz wrote:
Hi,
I am working on an ASE easybuild that will work without net connection. I hope
to have it ready next week.
See https://github.com/easybuilders/easybuild-easyconfigs/pull/7139 ;)
In that connection, can anybody tell me how to get the packages listed in the
right order in a Bundle? Some of the packages fail their sanity check although
they are installed (and I can import them from the folder where the module is
being built). But it looks like it may be an incorrect report of failed pip
dependencies.
What were you seeing exactly? Maybe you forget to update $PYTHONPATH
when using the Bundle easyblock?
That'll be less of a problem with the new PythonBundle easyblock (which
will be included in the next EasyBuild release), cfr.
https://github.com/easybuilders/easybuild-easyblocks/pull/1553 .
Of course, I could download all the packages, unpack the tarballs and manually
go through the setup.py files to make a dependency tree. But there must be an
easier way!
I don't have a good automated way for this (yet), but I hope to find
time to work on this.
The easy_update tool available at https://github.com/fizwit/easy_update
can do this though.
I hope to work with John on getting this functionality integrated in the
EasyBuild framework sometime soon...
regards,
Kenneth
Best regards
Jakob
PS: If you work out where to dump the source files that ASE needs when it
pip-installs, here is the list of the packages that I got pulled in:
exts_list = [
('Click', '7.0', {
'source_urls': ['https://pypi.python.org/packages/source/c/click'],
'checksums':
['5b94b49521f6456670fdb30cd82a4eca9412788a93fa6dd6df72c94d5a8ff2d7'],
}),
('Flask', '1.0.2', {
'source_urls': ['https://pypi.python.org/packages/source/f/flask'],
'checksums':
['2271c0070dbcb5275fad4a82e29f23ab92682dc45f9dfbc22c02ba9b9322ce48'],
}),
('itsdangerous', '1.1.0', {
'source_urls':
['https://pypi.python.org/packages/source/i/itsdangerous'],
'checksums':
['321b033d07f2a4136d3ec762eac9f16a10ccd60f53c0c91af90217ace7ba1f19'],
}),
('Jinja2', '2.10', {
'source_urls': ['https://pypi.python.org/packages/source/j/jinja2'],
'checksums':
['f84be1bb0040caca4cea721fcbbbbd61f9be9464ca236387158b0feea01914a4'],
}),
('MarkupSafe', '1.0', {
'source_urls':
['https://pypi.python.org/packages/source/m/markupsafe'],
'checksums':
['a6be69091dac236ea9c6bc7d012beab42010fa914c459791d627dad4910eb665'],
}),
('Werkzeug', '0.14.1', {
'source_urls': ['https://pypi.python.org/packages/source/w/werkzeug'],
'checksums':
['c3fd7a7d41976d9f44db327260e263132466836cef6f91512889ed60ad26557c'],
}),
]
On 7 Nov 2018, at 12:23, Joaquim Jornet Somoza <j.jornet.som...@gmail.com>
wrote:
Dear Easybuilders,
I am trying to install ASE 1.16.2 with Easybuild 3.6.2, in a server without
direct net connection, but the installation fails
with the following error message:
Installed
.../ASE/3.16.2-intel-2016a-Python-3.5.1/lib/python3.5/site-packages/ase-3.16.2-py3.5.egg
Processing dependencies for ase==3.16.2
Searching for flask
Reading https://pypi.python.org/simple/flask/
Download error on https://pypi.python.org/simple/flask/: [Errno 101] Network is
unreachable -- Some packages may not be found!
Couldn't find index page for 'flask' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: [Errno 101] Network is
unreachable -- Some packages may not be found!
No local packages or download links found for flask
error: Could not find suitable distribution for Requirement.parse('flask')
(at easybuild/tools/run.py:501 in parse_cmd_output)
== 2018-11-05 15:42:04,123 easyblock.py:2776 WARNING build failed (first 300 chars): cmd
" /home/software/RHEL/6/Westmere/software/Python/3.5.1-intel-2016a/bin/python
setup.py install
--prefix=/home/software/RHEL/6/Westmere/software/ASE/3.16.2-intel-2016a-Python-3.5.1
" exited with exit code 1 and output:
I tried to manually put the flask tarball in the source extension folder for
both, ASE and Python...but the problem remains...
Can some of you tell me where does Easybuild look for the "local packages".
(ASE is build using PythonPackage easyblock)
Sincerely,
quim
--
----------------------------------------------------------------------------------------------------------------------------------------
Dr. Joaquim Jornet Somoza
Postdoctoral Researcher email: j.jornet.som...@gmail.com
tel: 0034 650 73 48 91
Theory Department
The Max Planck Institute for the Structure and Dynamics of Matter (MPSD)
Bldg. 99 (CFEL)
Luruper Chaussee 149
22761 Hamburg
Nano-Bio Spectroscopy group
Departamento de Física de Materiales
Universidad del País Vasco (UPV/EHU)
Donostia-San Sebastián, Gipuzkoa, Spain
--
Jakob Schiøtz, professor, Ph.D.
Department of Physics
Technical University of Denmark
DK-2800 Kongens Lyngby, Denmark
http://www.fysik.dtu.dk/~schiotz/