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