
Hi, Everybody-- I'm trying to build yt, and I keep getting the following error (full stack at the end) File "setup.py", line 317, in finalize_options if LooseVersion(numpy.__version__) < LooseVersion('1.10.4'): AttributeError: module 'numpy' has no attribute '__version__' Has anyone else seen this, and have a fix? I'm installing this from the install_script.sh, and it doesn't seem to matter what options I select for building. This is on an Ubuntu 16.04 box, I recently did a large update, after which I started getting this error. Thanks! d. EXECUTING: ln -s /home/dcollins4096/local-yt-2018-08-06/yt-conda/envs/py27/bin/hg /home/dcollins4096/local-yt-2018-08-06/yt-conda/bin EXECUTING: /home/dcollins4096/local-yt-2018-08-06/yt-conda/bin/git clone https://github.com/yt-project/yt_conda /home/dcollins4096/local-yt-2018-08-06/yt-conda/src/yt_conda Cloning into '/home/dcollins4096/local-yt-2018-08-06/yt-conda/src/yt_conda'... EXECUTING: /home/dcollins4096/local-yt-2018-08-06/yt-conda/bin/git clone https://github.com/yt-project/yt /home/dcollins4096/local-yt-2018-08-06/yt-conda/src/yt-git Cloning into '/home/dcollins4096/local-yt-2018-08-06/yt-conda/src/yt-git'... EXECUTING: /home/dcollins4096/local-yt-2018-08-06/yt-conda/bin/git -C /home/dcollins4096/local-yt-2018-08-06/yt-conda/src/yt-git checkout master Already on 'master' Your branch is up to date with 'origin/master'. Using OpenMP to compile parallel extensions running develop running egg_info creating yt.egg-info writing yt.egg-info/PKG-INFO writing dependency_links to yt.egg-info/dependency_links.txt writing entry points to yt.egg-info/entry_points.txt writing requirements to yt.egg-info/requires.txt writing top-level names to yt.egg-info/top_level.txt writing manifest file 'yt.egg-info/SOURCES.txt' Traceback (most recent call last): File "setup.py", line 399, in <module> python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*' File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/__init__.py", line 131, in setup return distutils.core.setup(**attrs) File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/core.py", line 148, in setup dist.run_commands() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/develop.py", line 38, in run self.install_for_development() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/develop.py", line 134, in install_for_development self.run_command('egg_info') File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/egg_info.py", line 278, in run self.find_sources() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/egg_info.py", line 293, in find_sources mm.run() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/egg_info.py", line 524, in run self.add_defaults() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/egg_info.py", line 560, in add_defaults sdist.add_defaults(self) File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/py36compat.py", line 36, in add_defaults self._add_defaults_ext() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/py36compat.py", line 119, in _add_defaults_ext build_ext = self.get_finalized_command('build_ext') File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/cmd.py", line 299, in get_finalized_command cmd_obj.ensure_finalized() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/cmd.py", line 107, in ensure_finalized self.finalize_options() File "setup.py", line 317, in finalize_options if LooseVersion(numpy.__version__) < LooseVersion('1.10.4'): AttributeError: module 'numpy' has no attribute '__version__' -- -- Sent from a computer. -- -- Sent from a computer.

Hi Dave, We’ve had reports of the install script generating errors like this before. Unfortunately I’ve been unable to pin down the root cause or reproduce it. By any chance was this on a cluster? If so, was there a python module loaded? Others have reported success doing what the install script does manually: downloading miniconda or anaconda, installing it, then using conda to install yt into an environment. Hope that’s helpful, Nathan On Wed, Aug 8, 2018 at 9:02 AM David Collins <dcollins4096@gmail.com> wrote:
Hi, Everybody--
I'm trying to build yt, and I keep getting the following error (full stack at the end) File "setup.py", line 317, in finalize_options if LooseVersion(numpy.__version__) < LooseVersion('1.10.4'): AttributeError: module 'numpy' has no attribute '__version__'
Has anyone else seen this, and have a fix? I'm installing this from the install_script.sh, and it doesn't seem to matter what options I select for building. This is on an Ubuntu 16.04 box, I recently did a large update, after which I started getting this error.
Thanks! d.
EXECUTING: ln -s /home/dcollins4096/local-yt-2018-08-06/yt-conda/envs/py27/bin/hg /home/dcollins4096/local-yt-2018-08-06/yt-conda/bin EXECUTING: /home/dcollins4096/local-yt-2018-08-06/yt-conda/bin/git clone https://github.com/yt-project/yt_conda /home/dcollins4096/local-yt-2018-08-06/yt-conda/src/yt_conda Cloning into '/home/dcollins4096/local-yt-2018-08-06/yt-conda/src/yt_conda'... EXECUTING: /home/dcollins4096/local-yt-2018-08-06/yt-conda/bin/git clone https://github.com/yt-project/yt /home/dcollins4096/local-yt-2018-08-06/yt-conda/src/yt-git Cloning into '/home/dcollins4096/local-yt-2018-08-06/yt-conda/src/yt-git'... EXECUTING: /home/dcollins4096/local-yt-2018-08-06/yt-conda/bin/git -C /home/dcollins4096/local-yt-2018-08-06/yt-conda/src/yt-git checkout master Already on 'master' Your branch is up to date with 'origin/master'. Using OpenMP to compile parallel extensions running develop running egg_info creating yt.egg-info writing yt.egg-info/PKG-INFO writing dependency_links to yt.egg-info/dependency_links.txt writing entry points to yt.egg-info/entry_points.txt writing requirements to yt.egg-info/requires.txt writing top-level names to yt.egg-info/top_level.txt writing manifest file 'yt.egg-info/SOURCES.txt' Traceback (most recent call last): File "setup.py", line 399, in <module> python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*' File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/__init__.py", line 131, in setup return distutils.core.setup(**attrs) File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/core.py", line 148, in setup dist.run_commands() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/develop.py", line 38, in run self.install_for_development() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/develop.py", line 134, in install_for_development self.run_command('egg_info') File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/egg_info.py", line 278, in run self.find_sources() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/egg_info.py", line 293, in find_sources mm.run() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/egg_info.py", line 524, in run self.add_defaults() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/egg_info.py", line 560, in add_defaults sdist.add_defaults(self) File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/py36compat.py", line 36, in add_defaults self._add_defaults_ext() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/py36compat.py", line 119, in _add_defaults_ext build_ext = self.get_finalized_command('build_ext') File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/cmd.py", line 299, in get_finalized_command cmd_obj.ensure_finalized() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/cmd.py", line 107, in ensure_finalized self.finalize_options() File "setup.py", line 317, in finalize_options if LooseVersion(numpy.__version__) < LooseVersion('1.10.4'): AttributeError: module 'numpy' has no attribute '__version__'
-- -- Sent from a computer.
-- -- Sent from a computer. _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org

I've been getting the same error off-and-on for the past few months in other contexts. As far as I can tell, it's an upstream issue in some distribution channel's build of numpy [1], not a problem with yt. One way to check if you're getting the same problem is to open a python interpreter for the environment that's causing the error, and do a simple "import numpy; numpy.__version__". If it's the same problem, that'll fail. If this is this problem, the way I've gotten around this is by updating numpy / changing the version of numpy / changing which channel you're getting it from. In my case, a simple "conda update numpy" often works. (If I do a "conda update --all" it'll usually reinstall the broken build of numpy, so I usually have to follow up all updates with a more targeted "conda update numpy") [1] - Right now I can reproduce this for numpy 1.15.0, on conda-forge's "py36_blas_openblashd3ea46f_200 [blas_openblas]" build on Mac. I've also been able to get this using conda on Ubuntu within Windows (using the Windows Subsystem for Linux). But maybe non-conda sources also have this problem? On Wed, Aug 8, 2018, 7:23 AM Nathan Goldbaum <nathan12343@gmail.com> wrote:
Hi Dave,
We’ve had reports of the install script generating errors like this before. Unfortunately I’ve been unable to pin down the root cause or reproduce it.
By any chance was this on a cluster? If so, was there a python module loaded?
Others have reported success doing what the install script does manually: downloading miniconda or anaconda, installing it, then using conda to install yt into an environment.
Hope that’s helpful,
Nathan
On Wed, Aug 8, 2018 at 9:02 AM David Collins <dcollins4096@gmail.com> wrote:
Hi, Everybody--
I'm trying to build yt, and I keep getting the following error (full stack at the end) File "setup.py", line 317, in finalize_options if LooseVersion(numpy.__version__) < LooseVersion('1.10.4'): AttributeError: module 'numpy' has no attribute '__version__'
Has anyone else seen this, and have a fix? I'm installing this from the install_script.sh, and it doesn't seem to matter what options I select for building. This is on an Ubuntu 16.04 box, I recently did a large update, after which I started getting this error.
Thanks! d.
EXECUTING: ln -s /home/dcollins4096/local-yt-2018-08-06/yt-conda/envs/py27/bin/hg /home/dcollins4096/local-yt-2018-08-06/yt-conda/bin EXECUTING: /home/dcollins4096/local-yt-2018-08-06/yt-conda/bin/git clone https://github.com/yt-project/yt_conda /home/dcollins4096/local-yt-2018-08-06/yt-conda/src/yt_conda Cloning into '/home/dcollins4096/local-yt-2018-08-06/yt-conda/src/yt_conda'... EXECUTING: /home/dcollins4096/local-yt-2018-08-06/yt-conda/bin/git clone https://github.com/yt-project/yt /home/dcollins4096/local-yt-2018-08-06/yt-conda/src/yt-git Cloning into '/home/dcollins4096/local-yt-2018-08-06/yt-conda/src/yt-git'... EXECUTING: /home/dcollins4096/local-yt-2018-08-06/yt-conda/bin/git -C /home/dcollins4096/local-yt-2018-08-06/yt-conda/src/yt-git checkout master Already on 'master' Your branch is up to date with 'origin/master'. Using OpenMP to compile parallel extensions running develop running egg_info creating yt.egg-info writing yt.egg-info/PKG-INFO writing dependency_links to yt.egg-info/dependency_links.txt writing entry points to yt.egg-info/entry_points.txt writing requirements to yt.egg-info/requires.txt writing top-level names to yt.egg-info/top_level.txt writing manifest file 'yt.egg-info/SOURCES.txt' Traceback (most recent call last): File "setup.py", line 399, in <module> python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*' File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/__init__.py", line 131, in setup return distutils.core.setup(**attrs) File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/core.py", line 148, in setup dist.run_commands() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/develop.py", line 38, in run self.install_for_development() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/develop.py", line 134, in install_for_development self.run_command('egg_info') File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/egg_info.py", line 278, in run self.find_sources() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/egg_info.py", line 293, in find_sources mm.run() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/egg_info.py", line 524, in run self.add_defaults() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/egg_info.py", line 560, in add_defaults sdist.add_defaults(self) File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/py36compat.py", line 36, in add_defaults self._add_defaults_ext() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/py36compat.py", line 119, in _add_defaults_ext build_ext = self.get_finalized_command('build_ext') File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/cmd.py", line 299, in get_finalized_command cmd_obj.ensure_finalized() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/cmd.py", line 107, in ensure_finalized self.finalize_options() File "setup.py", line 317, in finalize_options if LooseVersion(numpy.__version__) < LooseVersion('1.10.4'): AttributeError: module 'numpy' has no attribute '__version__'
-- -- Sent from a computer.
-- -- Sent from a computer. _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org

Hey Eric, Do you think there's anything we can do in the install script itself to patch over this problem? Maybe explicitly adding "conda update -c conda-forge numpy" to the script? -Nathan

(Oops, the build I listed actually doesn't fail and I've lost track of which build does fail. But the rest of the message should still be fine.) - Eric On Wed, Aug 8, 2018 at 7:59 AM Eric Gentry <gentry.e@gmail.com> wrote:
I've been getting the same error off-and-on for the past few months in other contexts. As far as I can tell, it's an upstream issue in some distribution channel's build of numpy [1], not a problem with yt.
One way to check if you're getting the same problem is to open a python interpreter for the environment that's causing the error, and do a simple "import numpy; numpy.__version__". If it's the same problem, that'll fail.
If this is this problem, the way I've gotten around this is by updating numpy / changing the version of numpy / changing which channel you're getting it from. In my case, a simple "conda update numpy" often works. (If I do a "conda update --all" it'll usually reinstall the broken build of numpy, so I usually have to follow up all updates with a more targeted "conda update numpy")
[1] - Right now I can reproduce this for numpy 1.15.0, on conda-forge's "py36_blas_openblashd3ea46f_200 [blas_openblas]" build on Mac. I've also been able to get this using conda on Ubuntu within Windows (using the Windows Subsystem for Linux). But maybe non-conda sources also have this problem?
On Wed, Aug 8, 2018, 7:23 AM Nathan Goldbaum <nathan12343@gmail.com> wrote:
Hi Dave,
We’ve had reports of the install script generating errors like this before. Unfortunately I’ve been unable to pin down the root cause or reproduce it.
By any chance was this on a cluster? If so, was there a python module loaded?
Others have reported success doing what the install script does manually: downloading miniconda or anaconda, installing it, then using conda to install yt into an environment.
Hope that’s helpful,
Nathan
On Wed, Aug 8, 2018 at 9:02 AM David Collins <dcollins4096@gmail.com> wrote:
Hi, Everybody--
I'm trying to build yt, and I keep getting the following error (full stack at the end) File "setup.py", line 317, in finalize_options if LooseVersion(numpy.__version__) < LooseVersion('1.10.4'): AttributeError: module 'numpy' has no attribute '__version__'
Has anyone else seen this, and have a fix? I'm installing this from the install_script.sh, and it doesn't seem to matter what options I select for building. This is on an Ubuntu 16.04 box, I recently did a large update, after which I started getting this error.
Thanks! d.
EXECUTING: ln -s /home/dcollins4096/local-yt-2018-08-06/yt-conda/envs/py27/bin/hg /home/dcollins4096/local-yt-2018-08-06/yt-conda/bin EXECUTING: /home/dcollins4096/local-yt-2018-08-06/yt-conda/bin/git clone https://github.com/yt-project/yt_conda /home/dcollins4096/local-yt-2018-08-06/yt-conda/src/yt_conda Cloning into '/home/dcollins4096/local-yt-2018-08-06/yt-conda/src/yt_conda'... EXECUTING: /home/dcollins4096/local-yt-2018-08-06/yt-conda/bin/git clone https://github.com/yt-project/yt /home/dcollins4096/local-yt-2018-08-06/yt-conda/src/yt-git Cloning into '/home/dcollins4096/local-yt-2018-08-06/yt-conda/src/yt-git'... EXECUTING: /home/dcollins4096/local-yt-2018-08-06/yt-conda/bin/git -C /home/dcollins4096/local-yt-2018-08-06/yt-conda/src/yt-git checkout master Already on 'master' Your branch is up to date with 'origin/master'. Using OpenMP to compile parallel extensions running develop running egg_info creating yt.egg-info writing yt.egg-info/PKG-INFO writing dependency_links to yt.egg-info/dependency_links.txt writing entry points to yt.egg-info/entry_points.txt writing requirements to yt.egg-info/requires.txt writing top-level names to yt.egg-info/top_level.txt writing manifest file 'yt.egg-info/SOURCES.txt' Traceback (most recent call last): File "setup.py", line 399, in <module> python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*' File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/__init__.py", line 131, in setup return distutils.core.setup(**attrs) File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/core.py", line 148, in setup dist.run_commands() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/develop.py", line 38, in run self.install_for_development() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/develop.py", line 134, in install_for_development self.run_command('egg_info') File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/egg_info.py", line 278, in run self.find_sources() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/egg_info.py", line 293, in find_sources mm.run() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/egg_info.py", line 524, in run self.add_defaults() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/egg_info.py", line 560, in add_defaults sdist.add_defaults(self) File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/py36compat.py", line 36, in add_defaults self._add_defaults_ext() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/py36compat.py", line 119, in _add_defaults_ext build_ext = self.get_finalized_command('build_ext') File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/cmd.py", line 299, in get_finalized_command cmd_obj.ensure_finalized() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/cmd.py", line 107, in ensure_finalized self.finalize_options() File "setup.py", line 317, in finalize_options if LooseVersion(numpy.__version__) < LooseVersion('1.10.4'): AttributeError: module 'numpy' has no attribute '__version__'
-- -- Sent from a computer.
-- -- Sent from a computer. _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org

Hi, Nathan-- Odd, I hate bugs that are hard to reproduce. This was on my desktop, which is a 2 socket, 12 core AMD server. It does have a python 2.7.12 installed in /usr/bin, but 3.6.5 should be first in the path from an existing yt install. If you want an environment that should reproduce the error, I can make an account on that machine. I'll try the conda install and let you know. If there are other things you think of that I can try, let me know. Thanks! d. On Wed, Aug 8, 2018 at 10:22 AM Nathan Goldbaum <nathan12343@gmail.com> wrote:
Hi Dave,
We’ve had reports of the install script generating errors like this before. Unfortunately I’ve been unable to pin down the root cause or reproduce it.
By any chance was this on a cluster? If so, was there a python module loaded?
Others have reported success doing what the install script does manually: downloading miniconda or anaconda, installing it, then using conda to install yt into an environment.
Hope that’s helpful,
Nathan
On Wed, Aug 8, 2018 at 9:02 AM David Collins <dcollins4096@gmail.com> wrote:
Hi, Everybody--
I'm trying to build yt, and I keep getting the following error (full stack at the end) File "setup.py", line 317, in finalize_options if LooseVersion(numpy.__version__) < LooseVersion('1.10.4'): AttributeError: module 'numpy' has no attribute '__version__'
Has anyone else seen this, and have a fix? I'm installing this from the install_script.sh, and it doesn't seem to matter what options I select for building. This is on an Ubuntu 16.04 box, I recently did a large update, after which I started getting this error.
Thanks! d.
EXECUTING: ln -s /home/dcollins4096/local-yt-2018-08-06/yt-conda/envs/py27/bin/hg /home/dcollins4096/local-yt-2018-08-06/yt-conda/bin EXECUTING: /home/dcollins4096/local-yt-2018-08-06/yt-conda/bin/git clone https://github.com/yt-project/yt_conda /home/dcollins4096/local-yt-2018-08-06/yt-conda/src/yt_conda Cloning into '/home/dcollins4096/local-yt-2018-08-06/yt-conda/src/yt_conda'... EXECUTING: /home/dcollins4096/local-yt-2018-08-06/yt-conda/bin/git clone https://github.com/yt-project/yt /home/dcollins4096/local-yt-2018-08-06/yt-conda/src/yt-git Cloning into '/home/dcollins4096/local-yt-2018-08-06/yt-conda/src/yt-git'... EXECUTING: /home/dcollins4096/local-yt-2018-08-06/yt-conda/bin/git -C /home/dcollins4096/local-yt-2018-08-06/yt-conda/src/yt-git checkout master Already on 'master' Your branch is up to date with 'origin/master'. Using OpenMP to compile parallel extensions running develop running egg_info creating yt.egg-info writing yt.egg-info/PKG-INFO writing dependency_links to yt.egg-info/dependency_links.txt writing entry points to yt.egg-info/entry_points.txt writing requirements to yt.egg-info/requires.txt writing top-level names to yt.egg-info/top_level.txt writing manifest file 'yt.egg-info/SOURCES.txt' Traceback (most recent call last): File "setup.py", line 399, in <module> python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*' File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/__init__.py", line 131, in setup return distutils.core.setup(**attrs) File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/core.py", line 148, in setup dist.run_commands() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/develop.py", line 38, in run self.install_for_development() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/develop.py", line 134, in install_for_development self.run_command('egg_info') File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/egg_info.py", line 278, in run self.find_sources() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/egg_info.py", line 293, in find_sources mm.run() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/egg_info.py", line 524, in run self.add_defaults() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/egg_info.py", line 560, in add_defaults sdist.add_defaults(self) File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/py36compat.py", line 36, in add_defaults self._add_defaults_ext() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/site-packages/setuptools/command/py36compat.py", line 119, in _add_defaults_ext build_ext = self.get_finalized_command('build_ext') File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/cmd.py", line 299, in get_finalized_command cmd_obj.ensure_finalized() File "/home/dcollins4096/local-yt-2018-08-06/yt-conda/lib/python3.6/distutils/cmd.py", line 107, in ensure_finalized self.finalize_options() File "setup.py", line 317, in finalize_options if LooseVersion(numpy.__version__) < LooseVersion('1.10.4'): AttributeError: module 'numpy' has no attribute '__version__'
-- -- Sent from a computer.
-- -- Sent from a computer. _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
-- -- Sent from a computer.
participants (3)
-
David Collins
-
Eric Gentry
-
Nathan Goldbaum