Rollback to yt version 2.x problem
Dear yt users, recently I updated yt with the update command from version 2 to version 3, but (my error) I did not notice all the changes that had been made from one to the other version. I tried to rollback to version 2.x following the method suggested in this page of the website http://yt-project.org/docs/dev/installing.html for the installation made via the user_script, but when I launche the command python setup.py develop I get the following error: *(yt-x86_64)cthulhu@42828678:~/yt-x86_64/src/yt-hg$ python setup.py develop* *PNG_LOCATION: png.cfg: /home/cthulhu/yt-x86_64/include, /home/cthulhu/yt-x86_64/lib* *FTYPE_LOCATION: FTYPE found via ctypes in: /home/cthulhu/yt-x86_64/include, /home/cthulhu/yt-x86_64/lib* *HDF5_LOCATION: HDF5 found via ctypes in: /home/cthulhu/yt-x86_64/include, /home/cthulhu/yt-x86_64/lib* *running develop* *running build_scripts* *running egg_info* *running build_src* *running build_forthon* *Building package fKD* *Traceback (most recent call last):* * File "/home/cthulhu/yt-x86_64/bin/Forthon", line 2, in <module>* * import Forthon.Forthon_builder* * File "/home/cthulhu/yt-x86_64/lib/python2.7/site-packages/Forthon/Forthon_builder.py", line 88, in <module>* * raise Exception('Main fortran file can not be found, please specify using the fortranfile option')* *Exception: Main fortran file can not be found, please specify using the fortranfile option* *Traceback (most recent call last):* * File "setup.py", line 281, in <module>* * setup_package()* * File "setup.py", line 276, in setup_package* * 'build_src': my_build_src, 'install_data': my_install_data},* * File "/home/cthulhu/yt-x86_64/lib/python2.7/site-packages/numpy/distutils/core.py", line 169, in setup* * return old_setup(**new_attr)* * File "/home/cthulhu/yt-x86_64/lib/python2.7/distutils/core.py", line 151, in setup* * dist.run_commands()* * File "/home/cthulhu/yt-x86_64/lib/python2.7/distutils/dist.py", line 953, in run_commands* * self.run_command(cmd)* * File "/home/cthulhu/yt-x86_64/lib/python2.7/distutils/dist.py", line 972, in run_command* * cmd_obj.run()* * File "/home/cthulhu/yt-x86_64/lib/python2.7/site-packages/distribute-0.6.32-py2.7.egg/setuptools/command/develop.py", line 27, in run* * self.install_for_development()* * File "/home/cthulhu/yt-x86_64/lib/python2.7/site-packages/numpy/distutils/command/develop.py", line 17, in install_for_development* * old_develop.install_for_development(self)* * File "/home/cthulhu/yt-x86_64/lib/python2.7/site-packages/distribute-0.6.32-py2.7.egg/setuptools/command/develop.py", line 110, in install_for_development* * self.run_command('egg_info')* * File "/home/cthulhu/yt-x86_64/lib/python2.7/distutils/cmd.py", line 326, in run_command* * self.distribution.run_command(command)* * File "/home/cthulhu/yt-x86_64/lib/python2.7/distutils/dist.py", line 972, in run_command* * cmd_obj.run()* * File "/home/cthulhu/yt-x86_64/lib/python2.7/site-packages/numpy/distutils/command/egg_info.py", line 10, in run* * self.run_command("build_src")* * File "/home/cthulhu/yt-x86_64/lib/python2.7/distutils/cmd.py", line 326, in run_command* * self.distribution.run_command(command)* * File "/home/cthulhu/yt-x86_64/lib/python2.7/distutils/dist.py", line 972, in run_command* * cmd_obj.run()* * File "setup.py", line 192, in run* * self.run_command("build_forthon")* * File "/home/cthulhu/yt-x86_64/lib/python2.7/distutils/cmd.py", line 326, in run_command* * self.distribution.run_command(command)* * File "/home/cthulhu/yt-x86_64/lib/python2.7/distutils/dist.py", line 972, in run_command* * cmd_obj.run()* * File "setup.py", line 62, in run* * subprocess.check_call(cmd, shell=False)* * File "/home/cthulhu/yt-x86_64/lib/python2.7/subprocess.py", line 540, in check_call* * raise CalledProcessError(retcode, cmd)* *subprocess.CalledProcessError: Command '['/home/cthulhu/yt-x86_64/bin/Forthon', '-F', 'gfortran', '--compile_first', 'fKD_source', '--no2underscores', '--fopt', "'-O3'", 'fKD', 'fKD_source.f90']' returned non-zero exit status 1* I would like to ask some suggestions on how to solve the problem. Thanks, Roberto
Hi Roberto, I'm not sure what that error means, other than it can't make your fKDtree installation work. One workaround would be to "pip uninstall forthon" which will prevent it from trying to compile. Another would be to forcibly update, which may be dangerous if you have made modifications to the source: hg up -C -r yt-2.x hg purge python2.7 setup.py develop Stop by IRC if you want to work through this in lower-latency... -Matt On Wed, Sep 17, 2014 at 7:24 PM, trobolo dinni <trobolo.trobolo.dinni5@gmail.com> wrote:
Dear yt users,
recently I updated yt with the update command from version 2 to version 3, but (my error) I did not notice all the changes that had been made from one to the other version.
I tried to rollback to version 2.x following the method suggested in this page of the website http://yt-project.org/docs/dev/installing.html for the installation made via the user_script, but when I launche the command
python setup.py develop
I get the following error:
(yt-x86_64)cthulhu@42828678:~/yt-x86_64/src/yt-hg$ python setup.py develop PNG_LOCATION: png.cfg: /home/cthulhu/yt-x86_64/include, /home/cthulhu/yt-x86_64/lib FTYPE_LOCATION: FTYPE found via ctypes in: /home/cthulhu/yt-x86_64/include, /home/cthulhu/yt-x86_64/lib HDF5_LOCATION: HDF5 found via ctypes in: /home/cthulhu/yt-x86_64/include, /home/cthulhu/yt-x86_64/lib running develop running build_scripts running egg_info running build_src running build_forthon Building package fKD Traceback (most recent call last): File "/home/cthulhu/yt-x86_64/bin/Forthon", line 2, in <module> import Forthon.Forthon_builder File "/home/cthulhu/yt-x86_64/lib/python2.7/site-packages/Forthon/Forthon_builder.py", line 88, in <module> raise Exception('Main fortran file can not be found, please specify using the fortranfile option') Exception: Main fortran file can not be found, please specify using the fortranfile option Traceback (most recent call last): File "setup.py", line 281, in <module> setup_package() File "setup.py", line 276, in setup_package 'build_src': my_build_src, 'install_data': my_install_data}, File "/home/cthulhu/yt-x86_64/lib/python2.7/site-packages/numpy/distutils/core.py", line 169, in setup return old_setup(**new_attr) File "/home/cthulhu/yt-x86_64/lib/python2.7/distutils/core.py", line 151, in setup dist.run_commands() File "/home/cthulhu/yt-x86_64/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/home/cthulhu/yt-x86_64/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/home/cthulhu/yt-x86_64/lib/python2.7/site-packages/distribute-0.6.32-py2.7.egg/setuptools/command/develop.py", line 27, in run self.install_for_development() File "/home/cthulhu/yt-x86_64/lib/python2.7/site-packages/numpy/distutils/command/develop.py", line 17, in install_for_development old_develop.install_for_development(self) File "/home/cthulhu/yt-x86_64/lib/python2.7/site-packages/distribute-0.6.32-py2.7.egg/setuptools/command/develop.py", line 110, in install_for_development self.run_command('egg_info') File "/home/cthulhu/yt-x86_64/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/home/cthulhu/yt-x86_64/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/home/cthulhu/yt-x86_64/lib/python2.7/site-packages/numpy/distutils/command/egg_info.py", line 10, in run self.run_command("build_src") File "/home/cthulhu/yt-x86_64/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/home/cthulhu/yt-x86_64/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "setup.py", line 192, in run self.run_command("build_forthon") File "/home/cthulhu/yt-x86_64/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/home/cthulhu/yt-x86_64/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "setup.py", line 62, in run subprocess.check_call(cmd, shell=False) File "/home/cthulhu/yt-x86_64/lib/python2.7/subprocess.py", line 540, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/home/cthulhu/yt-x86_64/bin/Forthon', '-F', 'gfortran', '--compile_first', 'fKD_source', '--no2underscores', '--fopt', "'-O3'", 'fKD', 'fKD_source.f90']' returned non-zero exit status 1
I would like to ask some suggestions on how to solve the problem.
Thanks, Roberto
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Hi Matt, in the end I solved the problem by fully reinstalling yt using the script for the 2.x legacy version. I missed that from the main download page one can get the script pointing to the older version. Thanks for the suggestions anyway! Roberto On 18 September 2014 21:04, Matthew Turk <matthewturk@gmail.com> wrote:
Hi Roberto,
I'm not sure what that error means, other than it can't make your fKDtree installation work. One workaround would be to "pip uninstall forthon" which will prevent it from trying to compile. Another would be to forcibly update, which may be dangerous if you have made modifications to the source:
hg up -C -r yt-2.x hg purge python2.7 setup.py develop
Stop by IRC if you want to work through this in lower-latency...
-Matt
Dear yt users,
recently I updated yt with the update command from version 2 to version 3, but (my error) I did not notice all the changes that had been made from one to the other version.
I tried to rollback to version 2.x following the method suggested in this page of the website http://yt-project.org/docs/dev/installing.html for
On Wed, Sep 17, 2014 at 7:24 PM, trobolo dinni <trobolo.trobolo.dinni5@gmail.com> wrote: the
installation made via the user_script, but when I launche the command
python setup.py develop
I get the following error:
(yt-x86_64)cthulhu@42828678:~/yt-x86_64/src/yt-hg$ python setup.py develop PNG_LOCATION: png.cfg: /home/cthulhu/yt-x86_64/include, /home/cthulhu/yt-x86_64/lib FTYPE_LOCATION: FTYPE found via ctypes in: /home/cthulhu/yt-x86_64/include, /home/cthulhu/yt-x86_64/lib HDF5_LOCATION: HDF5 found via ctypes in: /home/cthulhu/yt-x86_64/include, /home/cthulhu/yt-x86_64/lib running develop running build_scripts running egg_info running build_src running build_forthon Building package fKD Traceback (most recent call last): File "/home/cthulhu/yt-x86_64/bin/Forthon", line 2, in <module> import Forthon.Forthon_builder File
"/home/cthulhu/yt-x86_64/lib/python2.7/site-packages/Forthon/Forthon_builder.py",
line 88, in <module> raise Exception('Main fortran file can not be found, please specify using the fortranfile option') Exception: Main fortran file can not be found, please specify using the fortranfile option Traceback (most recent call last): File "setup.py", line 281, in <module> setup_package() File "setup.py", line 276, in setup_package 'build_src': my_build_src, 'install_data': my_install_data}, File
"/home/cthulhu/yt-x86_64/lib/python2.7/site-packages/numpy/distutils/core.py",
line 169, in setup return old_setup(**new_attr) File "/home/cthulhu/yt-x86_64/lib/python2.7/distutils/core.py", line 151, in setup dist.run_commands() File "/home/cthulhu/yt-x86_64/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/home/cthulhu/yt-x86_64/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File
"/home/cthulhu/yt-x86_64/lib/python2.7/site-packages/distribute-0.6.32-py2.7.egg/setuptools/command/develop.py",
line 27, in run self.install_for_development() File
"/home/cthulhu/yt-x86_64/lib/python2.7/site-packages/numpy/distutils/command/develop.py",
line 17, in install_for_development old_develop.install_for_development(self) File
"/home/cthulhu/yt-x86_64/lib/python2.7/site-packages/distribute-0.6.32-py2.7.egg/setuptools/command/develop.py",
line 110, in install_for_development self.run_command('egg_info') File "/home/cthulhu/yt-x86_64/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/home/cthulhu/yt-x86_64/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File
"/home/cthulhu/yt-x86_64/lib/python2.7/site-packages/numpy/distutils/command/egg_info.py",
line 10, in run self.run_command("build_src") File "/home/cthulhu/yt-x86_64/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/home/cthulhu/yt-x86_64/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "setup.py", line 192, in run self.run_command("build_forthon") File "/home/cthulhu/yt-x86_64/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/home/cthulhu/yt-x86_64/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "setup.py", line 62, in run subprocess.check_call(cmd, shell=False) File "/home/cthulhu/yt-x86_64/lib/python2.7/subprocess.py", line 540, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/home/cthulhu/yt-x86_64/bin/Forthon', '-F', 'gfortran', '--compile_first', 'fKD_source', '--no2underscores', '--fopt', "'-O3'", 'fKD', 'fKD_source.f90']' returned non-zero exit status 1
I would like to ask some suggestions on how to solve the problem.
Thanks, Roberto
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (2)
-
Matthew Turk -
trobolo dinni