hplgit / scitools

Additional scientific computing functionality in Python - extensions to NumPy/SciPy++
http://hplgit.github.io/scitools/doc/web/index.html
Other
64 stars 30 forks source link

Trying to install a Scitools Python pkg via 'pip install' but getting error #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Go to Windows command prompt
2.Change directory to the 'Anaconda' directory (since I use their python 
Distribution and pkgs)
3. Type 'pip install scitools

What is the expected output? What do you see instead?
Expected out put is to have scitools downloaded into Python within Anaconda

I see instead this (also see attachment): http://i.imgur.com/kYSMdRZ.gif

What version of the product are you using? On what operating system?
I am using Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by mchl.lov...@gmail.com on 10 Sep 2013 at 12:58

Attachments:

GoogleCodeExporter commented 9 years ago
The problem is that you have probably tried pip install twice and now os.rename 
won't write to an existing file. The quick fix is to remove *.old~~, but you 
have to find the right directory where pip install puts the source and runs 
setup.py.

An alternative that I recommend is clone the source code (hg clone) and run 
python setup.py install manually. Then you have the latest and most bug-free 
version of scitools and you can easier recover from errors like the one above 
(del *.old~~ in the directory where setup.py resides will do).

Original comment by h...@simula.no on 10 Sep 2013 at 2:22

GoogleCodeExporter commented 9 years ago
Thank you for your prompt response!  However, I am fairly new to
programming so do you mine elaborating more on the steps that are needed to
accomplish your recommended alternative.

Thanks again!

Original comment by mchl.lov...@gmail.com on 10 Sep 2013 at 4:27

GoogleCodeExporter commented 9 years ago
@Hans:
This happens even when using pip the first time. pip will first run 'python 
setup.py egg-info', which leaves behind the temporary file scitools.cfg.old~~. 
Then it runs 'python setup.py install', which fails because scitools.cfg.old~~ 
already exists.

Please see my patch in issue 31 to resolve this. (Sorry I did not realize 
Google would create a separate issue when suggesting a change).

Original comment by david.w...@gatech.edu on 28 Dec 2013 at 7:23