Closed LeoKellett closed 10 years ago
Dear Leo,
Thanks for downloading OSCAAR! Can you provide some details on your configuration (e.g. OS, 32 or 64 bit version of Python, what version of Python (2.7? or 3.x?).
Cheers,
Luuk
Windows 7 Home Premium Service Pack 1 64 bit OS Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32
Thanks for any help you can provide. It “feels” like everything is there except for an buildable/installable OSCAAR module.
From: Luuk Visser Sent: Saturday, April 12, 2014 11:19 AM To: OSCAAR/OSCAAR Cc: LeoKellett Subject: Re: [OSCAAR] no OSCAAR module (#168)
Dear Leo,
Thanks for downloading OSCAAR! Can you provide some details on your configuration (e.g. OS, 32 or 64 bit version of Python, what version of Python (2.7? or 3.x?).
Cheers,
Luuk
— Reply to this email directly or view it on GitHub.
And your error occurs when you execute which command? Could you share the command you're using and the error you get? It sounds like something went wrong when you tried to install it, but without the error message it is hard to diagnose what it was.
As a sanity check, I just tried installing again and had no problems with Python 2.7 and Mac OS X 10.6.
Here’s a screen dump from my attempt to do the install. Errors/warnings have “*****” and are indented.
From: Brett M. Morris Sent: Monday, April 14, 2014 11:57 AM To: OSCAAR/OSCAAR Cc: LeoKellett Subject: Re: [OSCAAR] no OSCAAR module (#168)
And your error occurs when you execute which command? Could you share the command you're using and the error you get? It sounds like something went wrong when you tried to install it, but without the error message it is hard to diagnose what it was.
As a sanity check, I just tried installing again and had no problems with Python 2.7 and Mac OS X 10.6.
— Reply to this email directly or view it on GitHub.
C:>cd OSCAAR
C:\OSCAAR>dir Volume in drive C has no label. Volume Serial Number is 96E3-0712
Directory of C:\OSCAAR
04/11/2014 03:46 PM
C:\OSCAAR>path PATH=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program File s (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbe m;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Liv e\Shared;C:\Program Files (x86)\QuickTime\QTSystem\
C:\OSCAAR>set path=%path%;C:\Python27
C:\OSCAAR>path PATH=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program File s (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbe m;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Liv e\Shared;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Python27
C:\OSCAAR>python setup.py install creating manifest.in searching for packages running install running bdist_egg running egg_info writing requirements to OSCAAR.egg-info\requires.txt writing OSCAAR.egg-info\PKG-INFO writing top-level names to OSCAAR.egg-info\top_level.txt writing dependency_links to OSCAAR.egg-info\dependency_links.txt reading manifest file 'OSCAAR.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'OSCAAR.egg-info\SOURCES.txt' installing library code to build\bdist.win32\egg running install_lib ***\ warning: install_lib: 'build\lib' does not exist -- no Python modules to install
creating build\bdist.win32\egg creating build\bdist.win32\egg\EGG-INFO copying OSCAAR.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO copying OSCAAR.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO copying OSCAAR.egg-info\dependency_links.txt -> build\bdist.win32\egg\EGG-INFO copying OSCAAR.egg-info\not-zip-safe -> build\bdist.win32\egg\EGG-INFO copying OSCAAR.egg-info\requires.txt -> build\bdist.win32\egg\EGG-INFO copying OSCAAR.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO creating dist creating 'dist\OSCAAR-2.0beta-py2.7.egg' and adding 'build\bdist.win32\egg' to i t removing 'build\bdist.win32\egg' (and everything under it) Processing OSCAAR-2.0beta-py2.7.egg removing 'c:\python27\lib\site-packages\OSCAAR-2.0beta-py2.7.egg' (and everythin g under it) creating c:\python27\lib\site-packages\OSCAAR-2.0beta-py2.7.egg Extracting OSCAAR-2.0beta-py2.7.egg to c:\python27\lib\site-packages OSCAAR 2.0beta is already the active version in easy-install.pth
Installed c:\python27\lib\site-packages\oscaar-2.0beta-py2.7.egg Processing dependencies for OSCAAR==2.0beta Searching for matplotlib==1.3.0 Best match: matplotlib 1.3.0 Adding matplotlib 1.3.0 to easy-install.pth file
Using c:\python27\lib\site-packages Searching for pyephem==3.7.5.1 Best match: pyephem 3.7.5.1 Adding pyephem 3.7.5.1 to easy-install.pth file
Using c:\python27\lib\site-packages Searching for pyfits==3.1.2 Best match: pyfits 3.1.2 Adding pyfits 3.1.2 to easy-install.pth file Installing fitsdiff-script.py script to C:\Python27\Scripts Installing fitsdiff.exe script to C:\Python27\Scripts Installing fitsdiff.exe.manifest script to C:\Python27\Scripts Installing fitscheck-script.py script to C:\Python27\Scripts Installing fitscheck.exe script to C:\Python27\Scripts Installing fitscheck.exe.manifest script to C:\Python27\Scripts
Using c:\python27\lib\site-packages Searching for scipy==0.13.2 Best match: scipy 0.13.2 Adding scipy 0.13.2 to easy-install.pth file
Using c:\python27\lib\site-packages Searching for numpy==1.8.0 Best match: numpy 1.8.0 Adding numpy 1.8.0 to easy-install.pth file
Using c:\python27\lib\site-packages Searching for pyparsing==2.0.1 Best match: pyparsing 2.0.1 Processing pyparsing-2.0.1-py2.7-win32.egg pyparsing 2.0.1 is already the active version in easy-install.pth
Using c:\python27\lib\site-packages\pyparsing-2.0.1-py2.7-win32.egg Searching for tornado==3.2 Best match: tornado 3.2 Processing tornado-3.2-py2.7-win32.egg tornado 3.2 is already the active version in easy-install.pth
Using c:\python27\lib\site-packages\tornado-3.2-py2.7-win32.egg Searching for python-dateutil==2.2 Best match: python-dateutil 2.2 Adding python-dateutil 2.2 to easy-install.pth file
Using c:\python27\lib\site-packages Searching for backports.ssl-match-hostname==3.4.0.2 Best match: backports.ssl-match-hostname 3.4.0.2 Processing backports.ssl_match_hostname-3.4.0.2-py2.7.egg backports.ssl-match-hostname 3.4.0.2 is already the active version in easy-insta ll.pth
Using c:\python27\lib\site-packages\backports.ssl_match_hostname-3.4.0.2-py2.7.e gg Searching for six==1.4.1 Best match: six 1.4.1 Adding six 1.4.1 to easy-install.pth file
Using c:\python27\lib\site-packages
Finished processing dependencies for OSCAAR==2.0beta
* Traceback (most recent call last):
* File "post_setup.py", line 14, in
C:\OSCAAR>
Try to install again in the same way, without deleting anything or downloading it again. It looks like it successfully installed OSCAAR but then it failed to find the installed version. Running it python setup.py install
again may be all you need to do.
I wish! I have retried the installation several times including just now and the result is the same each time.
From: Brett M. Morris Sent: Tuesday, April 15, 2014 11:54 AM To: OSCAAR/OSCAAR Cc: LeoKellett Subject: Re: [OSCAAR] no OSCAAR module (#168)
Try to install again in the same way, without deleting anything or downloading it again. It looks like it successfully installed OSCAAR but then it failed to find the installed version. Running it python setup.py install again may be all you need to do.
— Reply to this email directly or view it on GitHub.
Ok, it sounds like something funny is happening, we'll need to debug a bit. If you don't mind working with us to figure this out, we'll get it working for you and for any other users in the future that may come across this problem.
The first, silly thing to try is to import oscaar by hand. In a terminal, try running Python with
$ python
and then try importing OSCAAR by hand:
>>> import oscaar
What do you see?
C:\OSCAAR>python Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win 32 Type "help", "copyright", "credits" or "license" for more information.
import oscaar Traceback (most recent call last): File "
", line 1, in ImportError: No module named oscaar From: Brett M. Morris Sent: Tuesday, April 15, 2014 7:07 PM To: OSCAAR/OSCAAR Cc: LeoKellett Subject: Re: [OSCAAR] no OSCAAR module (#168)
Ok, it sounds like something funny is happening, we'll need to debug a bit. If you don't mind working with us to figure this out, we'll get it working for you and for any other users in the future that may come across this problem.
The first, silly thing to try is to import oscaar by hand. In a terminal, try running Python with
$ python and then try importing OSCAAR by hand:
import oscaar What do you see?
— Reply to this email directly or view it on GitHub.
Did you start the cmd where you launch setup.py from as Administrator? If not, that may be it (had some issues myself with other Python packages due to that). But before you do that clear out all the OSCAAR files left over from your failed attempt (remove the 'OSCAAR-2.0beta-py2.7.egg' folder located under c:\python27\Lib\site-packages).
I just installed it on a fresh 32 bit Python 2.7.5 installation on Windows 8.1 64 bit, which worked perfectly. So indeed there is something funny happening as Brett is saying.
Tried deleting as you suggest followed by re-installing. Same warning and error messages as before. I hope you saw this first warning in the mess I sent you before. It seems central to me but I am clueless.
C:\OSCAAR>python setup.py install creating manifest.in searching for packages running install running bdist_egg running egg_info writing requirements to OSCAAR.egg-info\requires.txt writing OSCAAR.egg-info\PKG-INFO writing top-level names to OSCAAR.egg-info\top_level.txt writing dependency_links to OSCAAR.egg-info\dependency_links.txt reading manifest file 'OSCAAR.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'OSCAAR.egg-info\SOURCES.txt' installing library code to build\bdist.win32\egg running install_lib warning: install_lib: 'build\lib' does not exist -- no Python modules to install
From: Luuk Visser Sent: Tuesday, April 15, 2014 9:12 PM To: OSCAAR/OSCAAR Cc: LeoKellett Subject: Re: [OSCAAR] no OSCAAR module (#168)
Did you start the cmd where you launch setup.py from as Administrator? If not, that may be it (had some issues myself with other Python packages due to that). But before you do that clear out all the OSCAAR files left over from your failed attempt (remove the 'OSCAAR-2.0beta-py2.7.egg' folder located under c:\python27\Lib\site-packages).
I just installed it on a fresh 32 bit Python 2.7.5 installation on Windows 8.1 64 bit, which worked perfectly. So indeed there is something funny happening as Brett is saying.
— Reply to this email directly or view it on GitHub.
Very weird... can you try downloading the zip file again? (https://github.com/OSCAAR/OSCAAR/zipball/master) And try to install that one.
What will most likely work on Windows is a portable python distribution that always works called WinPython. After giving it a folder to extract to, there is a WinPython Control Panel to install packages with (just select the .exe, .zip or .tar files) and also a modified version of windows CMD (set all the paths for Python to this portable version). OSCAAR only works with the second option, so try that one. Link: http://sourceforge.net/projects/winpython/files/latest/download?source=files
Good luck!
New OSCAAR download, WinPython installed. Some differences, some the same. Net result, no oscaar to import when I try manually.
C:\OSCAAR>python setup.py install
creating manifest.in
searching for packages
running install
running bdist_egg
running egg_info
writing requirements to OSCAAR.egg-info\requires.txt
writing OSCAAR.egg-info\PKG-INFO
writing top-level names to OSCAAR.egg-info\top_level.txt
writing dependency_links to OSCAAR.egg-info\dependency_links.txt
reading manifest file 'OSCAAR.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'OSCAAR.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
warning: install_lib: 'build\lib' does not exist -- no Python modules to install
.
.
.
Using c:\winpython-32bit-2.7.6.2\python-2.7.6\lib\site-packages
Finished processing dependencies for OSCAAR==2.0beta
Traceback (most recent call last):
File "post_setup.py", line 14, in
From: Luuk Visser Sent: Wednesday, April 16, 2014 8:45 AM To: OSCAAR/OSCAAR Cc: LeoKellett Subject: Re: [OSCAAR] no OSCAAR module (#168)
Very weird... can you try downloading the zip file again? (https://github.com/OSCAAR/OSCAAR/zipball/master) And try to install that one.
What will most likely work on Windows is a portable python distribution that always works called WinPython. After giving it a folder to extract to, there is a WinPython Control Panel to install packages with (just select the .exe, .zip or .tar files) and also a modified version of windows CMD (set all the paths for Python to this portable version). OSCAAR only works with the second option, so try that one. Link: http://sourceforge.net/projects/winpython/files/latest/download?source=files
Good luck!
— Reply to this email directly or view it on GitHub.
OSCAAR has not been tested with WinPython, only use the standard Python 2.7 distro with OSCAAR.
Have you installed the dependences?
yes, dependencies are installed.
I down loaded OSCAAR per Luuk’s suggestion and retried the installation both with WinPython and standard Python with the same results.
From: Brett M. Morris Sent: Wednesday, April 16, 2014 10:51 AM To: OSCAAR/OSCAAR Cc: LeoKellett Subject: Re: [OSCAAR] no OSCAAR module (#168)
OSCAAR has not been tested with WinPython, only use the standard Python 2.7 distro with OSCAAR.
Have you installed the dependences?
— Reply to this email directly or view it on GitHub.
@luukvisser - Have you tried reinstalling lately on Windows? Would you mind?
Sure :) Used my fresh and new WinPython 32 bit 2.7.6.2 extraction. After installing PyFITS I ran (from extracted oscaar dir): python setup.py install. Then the last part of the output:
... creating 'dist\OSCAAR-2.0beta-py2.7.egg' and adding 'build\bdist.win32\egg' to it removing 'build\bdist.win32\egg' (and everything under it) Processing OSCAAR-2.0beta-py2.7.egg creating d:\dropbox\winpython\winpython-32bit-2.7.6.2\python-2.7.6\lib\site-packages\OSCAAR-2.0beta-py2.7.egg Extracting OSCAAR-2.0beta-py2.7.egg to d:\dropbox\winpython\winpython-32bit-2.7.6.2\python-2.7.6\lib\site-packages Adding OSCAAR 2.0beta to easy-install.pth file
Installed d:\dropbox\winpython\winpython-32bit-2.7.6.2\python-2.7.6\lib\site-packages\oscaar-2.0beta-py2.7.egg Processing dependencies for OSCAAR==2.0beta Searching for pyephem>=3.7 Reading https://pypi.python.org/simple/pyephem/ Best match: pyephem 3.7.5.2 Downloading https://pypi.python.org/packages/2.7/p/pyephem/pyephem-3.7.5.2.win32-py2.7.exe#md5=e6004882fd9e37ac4c6361e881ce7f99 Processing pyephem-3.7.5.2.win32-py2.7.exe ephem.tests.test_jpl: module references file ephem.tests.test_rst: module references file ephem.tests.test_usno: module references file creating 'c:\users\calad\appdata\local\temp\easy_install-njqr_v\pyephem-3.7.5.2-py2.7-win32.egg' and adding 'c:\users\calad\appdata\local\temp\easy_install-njqr_v\pyephem-3.7.5.2-py2.7-win32.egg.tmp' to it creating d:\dropbox\winpython\winpython-32bit-2.7.6.2\python-2.7.6\lib\site-pack ages\pyephem-3.7.5.2-py2.7-win32.egg Extracting pyephem-3.7.5.2-py2.7-win32.egg to d:\dropbox\winpython\winpython-32bit-2.7.6.2\python-2.7.6\lib\site-packages Adding pyephem 3.7.5.2 to easy-install.pth file
Installed d:\dropbox\winpython\winpython-32bit-2.7.6.2\python-2.7.6\lib\site-pac kages\pyephem-3.7.5.2-py2.7-win32.egg Searching for matplotlib==1.3.1 Best match: matplotlib 1.3.1 Adding matplotlib 1.3.1 to easy-install.pth file
Using d:\dropbox\winpython\winpython-32bit-2.7.6.2\python-2.7.6\lib\site-package s Searching for pyfits==3.2.2 Best match: pyfits 3.2.2 Adding pyfits 3.2.2 to easy-install.pth file Installing fitsdiff-script.py script to D:\Dropbox\WinPython\WinPython-32bit-2.7 .6.2\python-2.7.6\Scripts Installing fitsdiff.exe script to D:\Dropbox\WinPython\WinPython-32bit-2.7.6.2\p ython-2.7.6\Scripts Installing fitsdiff.exe.manifest script to D:\Dropbox\WinPython\WinPython-32bit- 2.7.6.2\python-2.7.6\Scripts Installing fitscheck-script.py script to D:\Dropbox\WinPython\WinPython-32bit-2. 7.6.2\python-2.7.6\Scripts Installing fitscheck.exe script to D:\Dropbox\WinPython\WinPython-32bit-2.7.6.2\ python-2.7.6\Scripts Installing fitscheck.exe.manifest script to D:\Dropbox\WinPython\WinPython-32bit -2.7.6.2\python-2.7.6\Scripts
Using d:\dropbox\winpython\winpython-32bit-2.7.6.2\python-2.7.6\lib\site-package s Searching for scipy==0.13.2 Best match: scipy 0.13.2 Adding scipy 0.13.2 to easy-install.pth file
Using d:\dropbox\winpython\winpython-32bit-2.7.6.2\python-2.7.6\lib\site-package s Searching for numpy==1.8.0 Best match: numpy 1.8.0 Adding numpy 1.8.0 to easy-install.pth file
Using d:\dropbox\winpython\winpython-32bit-2.7.6.2\python-2.7.6\lib\site-package s Searching for pyparsing==2.0.1 Best match: pyparsing 2.0.1 Adding pyparsing 2.0.1 to easy-install.pth file
Using d:\dropbox\winpython\winpython-32bit-2.7.6.2\python-2.7.6\lib\site-package s Searching for tornado==3.1.1 Best match: tornado 3.1.1 Adding tornado 3.1.1 to easy-install.pth file
Using d:\dropbox\winpython\winpython-32bit-2.7.6.2\python-2.7.6\lib\site-package s Searching for python-dateutil==2.2 Best match: python-dateutil 2.2 Adding python-dateutil 2.2 to easy-install.pth file
Using d:\dropbox\winpython\winpython-32bit-2.7.6.2\python-2.7.6\lib\site-package s Searching for six==1.4.1 Best match: six 1.4.1 Adding six 1.4.1 to easy-install.pth file
Using d:\dropbox\winpython\winpython-32bit-2.7.6.2\python-2.7.6\lib\site-package s Finished processing dependencies for OSCAAR==2.0beta D:\Dropbox\WinPython\WinPython-32bit-2.7.6.2\python-2.7.6\lib\site-packages\osca ar-2.0beta-py2.7.egg\oscaar
copying precompiled C code for light curve modeling.. done! Downloading platform specific DS9: 15073280 bytes [100.00%] DS9 installed in oscaar directory!
C:\Users\Calad\Desktop\OSCAAR-OSCAAR-254acfc>ipython Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] Type "copyright", "credits" or "license" for more information.
IPython 1.1.0 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details.
In [1]: import oscaar
In [2]:
tried again (fresh download), same results.
I see nothing like the first 6 lines of your listing.
What should be in ..\winpython-32bit-2.7.6.2\python-2.7.6\lib\site-packages ? I have \EGG-INFO which has some .txt files.
Is there a way to see easy-install.pth ? What is the ultimate name of the OSCAAR file to be installed, OSCAAR 2.0beta ? When I search I don’t find anything that looks right.
From: Luuk Visser Sent: Thursday, April 17, 2014 7:43 PM To: OSCAAR/OSCAAR Cc: LeoKellett Subject: Re: [OSCAAR] no OSCAAR module (#168)
Sure :) Used my fresh and new WinPython 32 bit 2.7.6.2 extraction. After installing PyFITS I ran (from extracted oscaar dir): python setup.py install. Then the last part of the output:
... creating 'dist\OSCAAR-2.0beta-py2.7.egg' and adding 'build\bdist.win32\egg' to it removing 'build\bdist.win32\egg' (and everything under it) Processing OSCAAR-2.0beta-py2.7.egg creating d:\dropbox\winpython\winpython-32bit-2.7.6.2\python-2.7.6\lib\site-packages\OSCAAR-2.0beta-py2.7.egg Extracting OSCAAR-2.0beta-py2.7.egg to d:\dropbox\winpython\winpython-32bit-2.7.6.2\python-2.7.6\lib\site-packages Adding OSCAAR 2.0beta to easy-install.pth file
This is how that folder looks on my computer; you can see OSCAAR near the top of the second column.
What might be easier to try, is download the installed version of OSCAAR that I just zipped (32 bit Python 2.7.6.2 on Windows 8.1 64 bit): https://www.dropbox.com/s/sfvqsquy47zqcnk/OSCAAR-2.0beta-py2.7.egg.zip Just extract it in the winpython-32bit-2.7.6.2\python-2.7.6\lib\site-packages folder. Then try importing it again :)
I went to the club observatory and did the install on an unmolested computer per your earlier message (4/16) and it worked after manually installing pyFits and wxPython. The difference was that the OSCAAR extract resulted in a directory (OSCAAR-OSCAAR-254acfc) with some sub directories and a setup.py This was different from what I get with WinZip which was not producing and directories and overwriting the setup.py. I will get your installed version and try it but I need to find out what is going on with my version of zip.
From: Luuk Visser Sent: Friday, April 18, 2014 8:06 AM To: OSCAAR/OSCAAR Cc: LeoKellett Subject: Re: [OSCAAR] no OSCAAR module (#168)
This is how that folder looks on my computer; you can see OSCAAR near the top of the second column.
What might be easier to try, is download the installed version of OSCAAR that I just zipped (32 bit Python 2.7.6.2 on Windows 8.1 64 bit): https://www.dropbox.com/s/sfvqsquy47zqcnk/OSCAAR-2.0beta-py2.7.egg.zip Just extract it in the winpython-32bit-2.7.6.2\python-2.7.6\lib\site-packages folder. Then try importing it again :)
— Reply to this email directly or view it on GitHub.
Sound like you found the cause indeed, good job! ;) If the extracted zip is missing some files, I will complain about that for sure.
Luuk
get rid of the dinosaur version of winzip and all is well !! Thanks for your patience, sorry for the confusion. How do I clean up the messy trail in GitHub ?
From: Luuk Visser Sent: Friday, April 18, 2014 1:24 PM To: OSCAAR/OSCAAR Cc: LeoKellett Subject: Re: [OSCAAR] no OSCAAR module (#168)
Sound like you found the cause indeed, good job! ;) If the extracted zip is missing some files, I will complain about that for sure.
Luuk
— Reply to this email directly or view it on GitHub.
Haha :D You're welcome!
I'll close this issue, that's will be OK for all of us. If other people in the future also get this error, they will be able to find the solution here.
Cheers, Luuk
Thanks @luukvisser , and thanks for your patience Leo.
I am new at this so I probably am shooting myself in the foot somehow. I have, I think, all the dependencies available but when I attempt the install, the script complains of no OSCAAR module to add when it is writing to \build and then when it exits the script there is no module to import oscarGUI from. If you can help I would appreciate it. If there is detail I can send to assist let me know.