Installing a development version alongside an Anaconda installation
Hi everyone, I'm trying to get a development version of yt going on a remote machine. I originally installed yt on that machine using Anaconda, and that's been working well. Since the Anaconda installation takes care of all the dependencies, I hoped I would just be able to install the development version and not have to worry about any of that. I created a directory called yt in my home directory, then cloned the yt repository: hg clone https://bitbucket.org/yt_analysis/yt . Then I ran hg update yt in the same directory, and then python setup.py develop also in the same directory. That almost immediately returns with the following error: File "setup.py", line 17, in <module> if StrictVersion(setuptools.__version__) < StrictVersion('0.7.0'): File "/<homedir>/miniconda/lib/python2.7/distutils/version.py", line 40, in __init__ self.parse(vstring) File "/<homedir>/miniconda/lib/python2.7/distutils/version.py", line 107, in parse raise ValueError, "invalid version number '%s'" % vstring ValueError: invalid version number '0.6c11' I'm not sure what this means. Can anyone shed some light on this for me? Thanks, Dan
Hi Daniel, In your miniconda environment, can you do "conda update setuptools". If that fails, try "conda install setuptools". For some reason you have an old version of setuptools (from ~2009) in your environment. To see where it is, you can do something like this:
import setuptools print setuptools.__file__
Which should tell you where the setuptools module is installed, and might give you a hint about how it has ended up in your environment. -Nathan On Mon Dec 08 2014 at 9:08:49 AM Daniel Fenn <dsfenn@gmail.com> wrote:
Hi everyone,
I'm trying to get a development version of yt going on a remote machine. I originally installed yt on that machine using Anaconda, and that's been working well. Since the Anaconda installation takes care of all the dependencies, I hoped I would just be able to install the development version and not have to worry about any of that.
I created a directory called yt in my home directory, then cloned the yt repository:
hg clone https://bitbucket.org/yt_analysis/yt .
Then I ran hg update yt in the same directory, and then
python setup.py develop
also in the same directory. That almost immediately returns with the following error:
File "setup.py", line 17, in <module> if StrictVersion(setuptools.__version__) < StrictVersion('0.7.0'): File "/<homedir>/miniconda/lib/python2.7/distutils/version.py", line 40, in __init__ self.parse(vstring) File "/<homedir>/miniconda/lib/python2.7/distutils/version.py", line 107, in parse raise ValueError, "invalid version number '%s'" % vstring ValueError: invalid version number '0.6c11'
I'm not sure what this means. Can anyone shed some light on this for me?
Thanks,
Dan _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Success! Doing print setuptools.__file__ showed that a system version of setuptools was being imported, rather than the anaconda version. I unloaded the module usg-default-modules, and that fixed that problem. I set it up the first time using the intel compiler, but that didn't work, so I switched to gnu, and now it's working. Thanks for your help! Dan 2014-12-08 12:20 GMT-05:00 Nathan Goldbaum <nathan12343@gmail.com>:
Hi Daniel,
In your miniconda environment, can you do "conda update setuptools". If that fails, try "conda install setuptools". For some reason you have an old version of setuptools (from ~2009) in your environment.
To see where it is, you can do something like this:
import setuptools print setuptools.__file__
Which should tell you where the setuptools module is installed, and might give you a hint about how it has ended up in your environment.
-Nathan
On Mon Dec 08 2014 at 9:08:49 AM Daniel Fenn <dsfenn@gmail.com> wrote:
Hi everyone,
I'm trying to get a development version of yt going on a remote machine. I originally installed yt on that machine using Anaconda, and that's been working well. Since the Anaconda installation takes care of all the dependencies, I hoped I would just be able to install the development version and not have to worry about any of that.
I created a directory called yt in my home directory, then cloned the yt repository:
hg clone https://bitbucket.org/yt_analysis/yt .
Then I ran hg update yt in the same directory, and then
python setup.py develop
also in the same directory. That almost immediately returns with the following error:
File "setup.py", line 17, in <module> if StrictVersion(setuptools.__version__) < StrictVersion('0.7.0'): File "/<homedir>/miniconda/lib/python2.7/distutils/version.py", line 40, in __init__ self.parse(vstring) File "/<homedir>/miniconda/lib/python2.7/distutils/version.py", line 107, in parse raise ValueError, "invalid version number '%s'" % vstring ValueError: invalid version number '0.6c11'
I'm not sure what this means. Can anyone shed some light on this for me?
Thanks,
Dan _______________________________________________ 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)
-
Daniel Fenn -
Nathan Goldbaum