Tests PySitools2¶
python2.7 OK¶
production@sdo3:/usr/local/pySitools2_1.0$ python setup.py test -q running test running egg_info writing requirements to pySitools2_1.0.egg-info/requires.txt error: [Errno 13] Permission denied: 'pySitools2_1.0.egg-info/requires.txt' production@sdo3:/usr/local/pySitools2_1.0$ sudo bash [sudo] password for production: root@sdo3:/usr/local/pySitools2_1.0# python setup.py test -q running test running egg_info writing requirements to pySitools2_1.0.egg-info/requires.txt writing pySitools2_1.0.egg-info/PKG-INFO writing top-level names to pySitools2_1.0.egg-info/top_level.txt writing dependency_links to pySitools2_1.0.egg-info/dependency_links.txt reading manifest file 'pySitools2_1.0.egg-info/SOURCES.txt' writing manifest file 'pySitools2_1.0.egg-info/SOURCES.txt' running build_ext ####Test gaia_search############################# Loading GAIA-DEM Sitools2 client : http://idoc-medoc-test.ias.u-psud.fr 10 results returned .####Test media_search ############################# server parameter not specified, default value is set : server='http://medoc-sdo.ias.u-psud.fr' series parameter not specified, default value is set : series='aia.lev1' Loading MEDIA Sitools2 client : http://medoc-sdo.ias.u-psud.fr 288 results returned .####Test gaia_get############################# Loading GAIA-DEM Sitools2 client : http://idoc-medoc-test.ias.u-psud.fr 10 results returned Download file DEM_aia_2012-08-10T00_05_temp.fits completed Download file DEM_aia_2012-08-10T00_05_em.fits completed Download file DEM_aia_2012-08-10T00_05_chi2.fits completed Download file DEM_aia_2012-08-10T00_05_width.fits completed Download file DEM_aia_2012-08-10T01_05_temp.fits completed Download file DEM_aia_2012-08-10T01_05_em.fits completed Download file DEM_aia_2012-08-10T01_05_width.fits completed Download file DEM_aia_2012-08-10T01_05_chi2.fits completed Download file DEM_aia_2012-08-10T02_05_em.fits completed Download file DEM_aia_2012-08-10T02_05_width.fits completed Download file DEM_aia_2012-08-10T02_05_temp.fits completed Download file DEM_aia_2012-08-10T02_05_chi2.fits completed Download file DEM_aia_2012-08-10T03_05_width.fits completed Download file DEM_aia_2012-08-10T03_05_temp.fits completed Download file DEM_aia_2012-08-10T03_05_em.fits completed Download file DEM_aia_2012-08-10T03_05_chi2.fits completed Download file DEM_aia_2012-08-10T04_05_chi2.fits completed Download file DEM_aia_2012-08-10T04_05_width.fits completed Download file DEM_aia_2012-08-10T04_05_temp.fits completed Download file DEM_aia_2012-08-10T04_05_em.fits completed Download file DEM_aia_2012-08-10T05_05_em.fits completed Download file DEM_aia_2012-08-10T05_05_width.fits completed Download file DEM_aia_2012-08-10T05_05_temp.fits completed Download file DEM_aia_2012-08-10T05_05_chi2.fits completed Download file DEM_aia_2012-08-10T06_05_chi2.fits completed Download file DEM_aia_2012-08-10T06_05_em.fits completed Download file DEM_aia_2012-08-10T06_05_width.fits completed Download file DEM_aia_2012-08-10T06_05_temp.fits completed Download file DEM_aia_2012-08-10T07_05_chi2.fits completed Download file DEM_aia_2012-08-10T07_05_width.fits completed Download file DEM_aia_2012-08-10T07_05_temp.fits completed Download file DEM_aia_2012-08-10T07_05_em.fits completed Download file DEM_aia_2012-08-10T08_05_temp.fits completed Download file DEM_aia_2012-08-10T08_05_em.fits completed Download file DEM_aia_2012-08-10T08_05_chi2.fits completed Download file DEM_aia_2012-08-10T08_05_width.fits completed Download file DEM_aia_2012-08-10T09_05_temp.fits completed Download file DEM_aia_2012-08-10T09_05_em.fits completed Download file DEM_aia_2012-08-10T09_05_width.fits completed Download file DEM_aia_2012-08-10T09_05_chi2.fits completed .####Test idoc-medoc_search ############################# Loading MEDIA Sitools2 client : http://idoc-medoc-test.ias.u-psud.fr 861 results returned .####Test idoc-solar-portal-test nbr projects ############### 1 projects detected [ Project object display() : resources list : 0) http://idoc-medoc-test.ias.u-psud.fr/project/solar/datasets 1) http://idoc-medoc-test.ias.u-psud.fr/project/solar/forms 2) http://idoc-medoc-test.ias.u-psud.fr/project/solar/opensearch 3) http://idoc-medoc-test.ias.u-psud.fr/project/solar/graph 4) http://idoc-medoc-test.ias.u-psud.fr/project/solar/feeds 5) http://idoc-medoc-test.ias.u-psud.fr/project/solar/clientFeeds/{feedsId} 6) http://idoc-medoc-test.ias.u-psud.fr/project/solar/services 7) http://idoc-medoc-test.ias.u-psud.fr/project/solar/formsProject 8) http://idoc-medoc-test.ias.u-psud.fr/project/solar/formsProject/{formId} 9) http://idoc-medoc-test.ias.u-psud.fr/project/solar/projectModules 10) http://idoc-medoc-test.ias.u-psud.fr/project/solar/datasetViews 11) http://idoc-medoc-test.ias.u-psud.fr/project/solar/guiServices 12) http://idoc-medoc-test.ias.u-psud.fr/project/solar/] .####Test media_search ############################# series parameter not specified, default value is set : series='aia.lev1' Loading MEDIA Sitools2 client : http://idoc-medoc-test.ias.u-psud.fr 288 results returned .####Test media nbr projects ################################# 2 projects detected .####Test idoc-medoc NbrDatasets ############################# 1 projects detected ('Nombre de projets : ', 1) Project object display() : resources list : 0) http://idoc-medoc-test.ias.u-psud.fr/project/solar/datasets 1) http://idoc-medoc-test.ias.u-psud.fr/project/solar/forms 2) http://idoc-medoc-test.ias.u-psud.fr/project/solar/opensearch 3) http://idoc-medoc-test.ias.u-psud.fr/project/solar/graph 4) http://idoc-medoc-test.ias.u-psud.fr/project/solar/feeds 5) http://idoc-medoc-test.ias.u-psud.fr/project/solar/clientFeeds/{feedsId} 6) http://idoc-medoc-test.ias.u-psud.fr/project/solar/services 7) http://idoc-medoc-test.ias.u-psud.fr/project/solar/formsProject 8) http://idoc-medoc-test.ias.u-psud.fr/project/solar/formsProject/{formId} 9) http://idoc-medoc-test.ias.u-psud.fr/project/solar/projectModules 10) http://idoc-medoc-test.ias.u-psud.fr/project/solar/datasetViews 11) http://idoc-medoc-test.ias.u-psud.fr/project/solar/guiServices 12) http://idoc-medoc-test.ias.u-psud.fr/project/solar/ Nbr datasets : 75 .####Test media_get ############################# server parameter not specified, default value is set : server='http://medoc-sdo.ias.u-psud.fr' series parameter not specified, default value is set : series='aia.lev1' Loading MEDIA Sitools2 client : http://medoc-sdo.ias.u-psud.fr 2 results returned Download file aia.lev1_335A_2012-08-10T00-00-26.image_lev1.fits completed Download file aia.lev1_304A_2012-08-10T00-00-31.image_lev1.fits completed . ---------------------------------------------------------------------- Ran 9 tests in 16.795s OK
python3.4 KO¶
update-alternatives --config python There are 2 choices for the alternative python (providing /usr/bin/python). Selection Path Priority Status ------------------------------------------------------------ 0 /usr/bin/python3.4 2 auto mode * 1 /usr/bin/python2.7 1 manual mode 2 /usr/bin/python3.4 2 manual mode Press enter to keep the current choice[*], or type selection number: 2 update-alternatives: using /usr/bin/python3.4 to provide /usr/bin/python (python) in manual mode update-alternatives: error: error creating symbolic link `/etc/alternatives/python.dpkg-tmp': Permission denied production@sdo3:~$ sudo update-alternatives --config python [sudo] password for production: Sorry, user production is not allowed to execute '/usr/sbin/update-alternatives --config python' as root on sdo3.ias.u-psud.fr. production@sdo3:~$ sudo bash [sudo] password for production: root@sdo3:/home/production# sudo update-alternatives --config python There are 2 choices for the alternative python (providing /usr/bin/python). Selection Path Priority Status ------------------------------------------------------------ 0 /usr/bin/python3.4 2 auto mode * 1 /usr/bin/python2.7 1 manual mode 2 /usr/bin/python3.4 2 manual mode Press enter to keep the current choice[*], or type selection number: 2 update-alternatives: using /usr/bin/python3.4 to provide /usr/bin/python (python) in manual mode root@sdo3:/home/production# cd /usr/local/pySitools2_1.0/ root@sdo3:/usr/local/pySitools2_1.0# ./reinstall_pySitools2.sh pip3 Exception: Traceback (most recent call last): File "/usr/local/lib/python3.4/dist-packages/pip/basecommand.py", line 215, in main status = self.run(options, args) File "/usr/local/lib/python3.4/dist-packages/pip/commands/install.py", line 272, in run with self._build_session(options) as session: File "/usr/local/lib/python3.4/dist-packages/pip/basecommand.py", line 72, in _build_session insecure_hosts=options.trusted_hosts, File "/usr/local/lib/python3.4/dist-packages/pip/download.py", line 329, in __init__ self.headers["User-Agent"] = user_agent() File "/usr/local/lib/python3.4/dist-packages/pip/download.py", line 93, in user_agent from pip._vendor import distro File "/usr/local/lib/python3.4/dist-packages/pip/_vendor/distro.py", line 1050, in <module> _distro = LinuxDistribution() File "/usr/local/lib/python3.4/dist-packages/pip/_vendor/distro.py", line 594, in __init__ if include_lsb else {} File "/usr/local/lib/python3.4/dist-packages/pip/_vendor/distro.py", line 933, in _get_lsb_release_info raise subprocess.CalledProcessError(code, cmd, stdout) subprocess.CalledProcessError: Command 'lsb_release -a' returned non-zero exit status 1 Traceback (most recent call last): File "/usr/local/bin/pip3", line 9, in <module> load_entry_point('pip==9.0.1', 'console_scripts', 'pip3')() File "/usr/local/lib/python3.4/dist-packages/pip/__init__.py", line 233, in main return command.main(cmd_args) File "/usr/local/lib/python3.4/dist-packages/pip/basecommand.py", line 251, in main timeout=min(5, options.timeout)) as session: File "/usr/local/lib/python3.4/dist-packages/pip/basecommand.py", line 72, in _build_session insecure_hosts=options.trusted_hosts, File "/usr/local/lib/python3.4/dist-packages/pip/download.py", line 329, in __init__ self.headers["User-Agent"] = user_agent() File "/usr/local/lib/python3.4/dist-packages/pip/download.py", line 93, in user_agent from pip._vendor import distro File "/usr/local/lib/python3.4/dist-packages/pip/_vendor/distro.py", line 1050, in <module> _distro = LinuxDistribution() File "/usr/local/lib/python3.4/dist-packages/pip/_vendor/distro.py", line 594, in __init__ if include_lsb else {} File "/usr/local/lib/python3.4/dist-packages/pip/_vendor/distro.py", line 933, in _get_lsb_release_info raise subprocess.CalledProcessError(code, cmd, stdout) subprocess.CalledProcessError: Command 'lsb_release -a' returned non-zero exit status 1
Update and correct pySitools2 ok for python3¶
see https://github.com/MedocIAS/pySitools2_1.0/commit/41d3da5039d18032fa9cb09b76f619207ab5276b
root@sdo3:/usr/local/pySitools2_1.0# python3 setup.py test -q running test running egg_info writing dependency_links to pySitools2_1.0.egg-info/dependency_links.txt writing top-level names to pySitools2_1.0.egg-info/top_level.txt writing requirements to pySitools2_1.0.egg-info/requires.txt writing pySitools2_1.0.egg-info/PKG-INFO reading manifest file 'pySitools2_1.0.egg-info/SOURCES.txt' writing manifest file 'pySitools2_1.0.egg-info/SOURCES.txt' running build_ext ####Test gaia_search############################# Loading GAIA-DEM Sitools2 client : http://idoc-medoc-test.ias.u-psud.fr 10 results returned .####Test media_search ############################# server parameter not specified, default value is set : server='http://medoc-sdo.ias.u-psud.fr' series parameter not specified, default value is set : series='aia.lev1' Loading MEDIA Sitools2 client : http://medoc-sdo.ias.u-psud.fr 288 results returned .####Test gaia_get############################# Loading GAIA-DEM Sitools2 client : http://idoc-medoc-test.ias.u-psud.fr 10 results returned Download file results/DEM_aia_2012-08-10T00_05_width.fits completed Download file results/DEM_aia_2012-08-10T00_05_temp.fits completed Download file results/DEM_aia_2012-08-10T00_05_em.fits completed Download file results/DEM_aia_2012-08-10T00_05_chi2.fits completed Download file results/DEM_aia_2012-08-10T01_05_em.fits completed Download file results/DEM_aia_2012-08-10T01_05_temp.fits completed Download file results/DEM_aia_2012-08-10T01_05_chi2.fits completed Download file results/DEM_aia_2012-08-10T01_05_width.fits completed Download file results/DEM_aia_2012-08-10T02_05_temp.fits completed Download file results/DEM_aia_2012-08-10T02_05_em.fits completed Download file results/DEM_aia_2012-08-10T02_05_chi2.fits completed Download file results/DEM_aia_2012-08-10T02_05_width.fits completed Download file results/DEM_aia_2012-08-10T03_05_chi2.fits completed Download file results/DEM_aia_2012-08-10T03_05_width.fits completed Download file results/DEM_aia_2012-08-10T03_05_em.fits completed Download file results/DEM_aia_2012-08-10T03_05_temp.fits completed Download file results/DEM_aia_2012-08-10T04_05_chi2.fits completed Download file results/DEM_aia_2012-08-10T04_05_em.fits completed Download file results/DEM_aia_2012-08-10T04_05_temp.fits completed Download file results/DEM_aia_2012-08-10T04_05_width.fits completed Download file results/DEM_aia_2012-08-10T05_05_temp.fits completed Download file results/DEM_aia_2012-08-10T05_05_chi2.fits completed Download file results/DEM_aia_2012-08-10T05_05_width.fits completed Download file results/DEM_aia_2012-08-10T05_05_em.fits completed Download file results/DEM_aia_2012-08-10T06_05_temp.fits completed Download file results/DEM_aia_2012-08-10T06_05_width.fits completed Download file results/DEM_aia_2012-08-10T06_05_em.fits completed Download file results/DEM_aia_2012-08-10T06_05_chi2.fits completed Download file results/DEM_aia_2012-08-10T07_05_width.fits completed Download file results/DEM_aia_2012-08-10T07_05_chi2.fits completed Download file results/DEM_aia_2012-08-10T07_05_em.fits completed Download file results/DEM_aia_2012-08-10T07_05_temp.fits completed Download file results/DEM_aia_2012-08-10T08_05_temp.fits completed Download file results/DEM_aia_2012-08-10T08_05_width.fits completed Download file results/DEM_aia_2012-08-10T08_05_chi2.fits completed Download file results/DEM_aia_2012-08-10T08_05_em.fits completed Download file results/DEM_aia_2012-08-10T09_05_temp.fits completed Download file results/DEM_aia_2012-08-10T09_05_em.fits completed Download file results/DEM_aia_2012-08-10T09_05_chi2.fits completed Download file results/DEM_aia_2012-08-10T09_05_width.fits completed .####Test idoc-medoc_search ############################# Loading MEDIA Sitools2 client : http://idoc-medoc-test.ias.u-psud.fr 861 results returned .####Test idoc-solar-portal-test nbr projects ############### 1 projects detected [ Project object display() : Medoc-Solar-Portal description : Solar datasets uri : /solar url : http://idoc-medoc-test.ias.u-psud.fr/project/solar resources list : 0) http://idoc-medoc-test.ias.u-psud.fr/project/solar/datasets 1) http://idoc-medoc-test.ias.u-psud.fr/project/solar/forms 2) http://idoc-medoc-test.ias.u-psud.fr/project/solar/opensearch 3) http://idoc-medoc-test.ias.u-psud.fr/project/solar/graph 4) http://idoc-medoc-test.ias.u-psud.fr/project/solar/feeds 5) http://idoc-medoc-test.ias.u-psud.fr/project/solar/clientFeeds/{feedsId} 6) http://idoc-medoc-test.ias.u-psud.fr/project/solar/services 7) http://idoc-medoc-test.ias.u-psud.fr/project/solar/formsProject 8) http://idoc-medoc-test.ias.u-psud.fr/project/solar/formsProject/{formId} 9) http://idoc-medoc-test.ias.u-psud.fr/project/solar/projectModules 10) http://idoc-medoc-test.ias.u-psud.fr/project/solar/datasetViews 11) http://idoc-medoc-test.ias.u-psud.fr/project/solar/guiServices 12) http://idoc-medoc-test.ias.u-psud.fr/project/solar/] .####User Test media_search & metadata_search ############################# server parameter not specified, default value is set : server='http://medoc-sdo.ias.u-psud.fr' series parameter not specified, default value is set : series='aia.lev1' cadence parameter not specified, default value for aia.lev1 is set : cadence=[1m] Loading MEDIA Sitools2 client : http://medoc-sdo.ias.u-psud.fr 60 results returned server parameter not specified, default value is set : server='http://medoc-sdo.ias.u-psud.fr' [{'quality': 0, 'date__obs': 1230681653.8368313}, {'quality': 0, 'date__obs': 1230681713.8368154}, {'quality': 0, 'date__obs': 1230681773.8368478}] .####Test media_search ############################# series parameter not specified, default value is set : series='aia.lev1' Loading MEDIA Sitools2 client : http://idoc-medoc-test.ias.u-psud.fr 288 results returned .####Test media nbr projects ################################# 2 projects detected .####Test idoc-medoc NbrDatasets ############################# 1 projects detected Nombre de projets : 1 Project object display() : Medoc-Solar-Portal description : Solar datasets uri : /solar url : http://idoc-medoc-test.ias.u-psud.fr/project/solar resources list : 0) http://idoc-medoc-test.ias.u-psud.fr/project/solar/datasets 1) http://idoc-medoc-test.ias.u-psud.fr/project/solar/forms 2) http://idoc-medoc-test.ias.u-psud.fr/project/solar/opensearch 3) http://idoc-medoc-test.ias.u-psud.fr/project/solar/graph 4) http://idoc-medoc-test.ias.u-psud.fr/project/solar/feeds 5) http://idoc-medoc-test.ias.u-psud.fr/project/solar/clientFeeds/{feedsId} 6) http://idoc-medoc-test.ias.u-psud.fr/project/solar/services 7) http://idoc-medoc-test.ias.u-psud.fr/project/solar/formsProject 8) http://idoc-medoc-test.ias.u-psud.fr/project/solar/formsProject/{formId} 9) http://idoc-medoc-test.ias.u-psud.fr/project/solar/projectModules 10) http://idoc-medoc-test.ias.u-psud.fr/project/solar/datasetViews 11) http://idoc-medoc-test.ias.u-psud.fr/project/solar/guiServices 12) http://idoc-medoc-test.ias.u-psud.fr/project/solar/ Nbr datasets : 75 .####Test media_get ############################# server parameter not specified, default value is set : server='http://medoc-sdo.ias.u-psud.fr' series parameter not specified, default value is set : series='aia.lev1' Loading MEDIA Sitools2 client : http://medoc-sdo.ias.u-psud.fr 2 results returned Download file results/aia.lev1_335A_2012-08-10T00-00-26.image_lev1.fits completed Download file results/aia.lev1_304A_2012-08-10T00-00-31.image_lev1.fits completed . ---------------------------------------------------------------------- Ran 10 tests in 17.875s OK