Leopard + Numpy + Scipy: Path Issues Remain

+This post has been cross-posted on the pythonmac-sig mailing list.+
I've been reading about the python path issues with Leopard and have tried the different methods outlined for addressing this problem with no good result. Currently I am using a combination of .pth files and a modification to my ~/.profile. One nagging problem is that SUDO commands do not maintain these settings. When I install wxPython, these go into the /System folder, not my /Library/Python folder. Also, when installing scipy, numpy.distutils.core cannot be found.
sudo python scipy_dir/setup.py install
I've installed numpy 1.0.4 and this is placed in /Library/Python/2.5/site-packages. I've also installed the MacPython from python.org. When running python from a Terminal window, the correct version of numpy gets loaded (1.0.4). However, as has been documented before, sudo overrides these settings, so when I attempt to install scipy, the following error shows up:
Traceback (most recent call last):
File "setup.py", line 55, in <module>
setup_package()
File "setup.py", line 29, in setup_package
from numpy.distutils.core import setup
ImportError: No module named numpy.distutils.core
Has anyone found a way around this?
Just for good measure, I've included my current sys.path (after a sudo call):
['/code/libs/scipy-0.6.0', '/Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zip', '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5', '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-darwin', '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac', '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib-s criptpackages', '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk', '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload', '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages' , '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/ wx-2.8-mac-unicode']

Hi, newbie730
On my system, the numpy module is not found in
/System/Library/Frameworks/Python.framework/Versions/2.5/lib
but rather in
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python ...
perhaps your sys.path is missing an element?
To elaborate a bit more, the solution that worked for me was to either just use the default version of python (/usr/bin/python), in which case numpy works just fine with no further tweaking, or if I want readline support to use the interpreter from fink (/sw/bin/python), and set the environment using the PYTHONPATH variable:
(all these should be exported)
# for python:
PYTHONPATH=/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/p ython/:$ROOTSYS/pyroot:$ROOTSYS/lib
# 'base' files, including numpy and scipy installed by apple + ROOT stuff
PYTHONPATH=$PYTHONPATH:/Documents/Code/python #add my own modules
PYTHONSTARTUP=/Users/#####/.pystartup
PYTHONDOC=/sw/share/doc/python25/html
I'm not sure if that answers your question...
Caleb

Similar Messages

  • Air Application URL Path Issue

    I am trying to invoke a  content of the file which is in shared folder from Air application.
    Version : Flash builder 4.5,Flex3.6 sdk and Air 2.7.
    for this am using the below code..
    var request:URLRequest = new URLRequest();
    //request.url = ('file:///c:/params.txt'); - This is working fine
    request.url = ('file:///172.20.188.25/Share/chk/Property/params.txt');  // its not working
    trace("Unable to load URL: " + request);
    var variables:URLLoader = new URLLoader();
    variables.dataFormat = URLLoaderDataFormat.VARIABLES;
    variables.addEventListener(Event.COMPLETE, completeHandler);
    try
    variables.load(request);
    The same part of code ,I tried in Flex application is working .but in Air application its not working.
    Its urgent requirement,If any one know the way to resolve this path issues.
    Kindly let us know.
    Thanks in Advance !!

    I tried in the following URL but no use ..
    its throwing ioError and textError and stream error.
    1.file:///172.20.188.25/Share/chk/Property/params.txt
    2.http://172.20.188.25/Share/chk/Property/params.txt
    3. //172.20.188.25/Share/chk/Property/params.txt
    Is there any other solution for this issue ?

  • I want to resolve the payment issue still pending .But I do not understand what issue remains to be resolved by me ? Unless I know the details of it how shall I resolve it

    I want to resolve the payment issue still pending .But I don't know what issue remains to be resolved by me? Unless I know the details of the issue how shall I resolve it

    Apple is not here. Apple does not answer questions here. This is a user to user tech support forum, no ne here would have any knowledge of your personal account details or a financial dispute that you may have with Apple.
    Mac App Store Support -
    http://www.apple.com/support/mac/app-store/
    iTunes Support -
    http://www.apple.com/support/itunes/

  • I have to downgrade from Yosemite to Snow Leopard because of compatibility issues with some of my software.  Can I use PS Elements 12 with snow leopard?

    I have to downgrade from Yosemite to Snow Leopard because of compatibility issues with some of my software.  Can I use PS Elements 12 with snow leopard?

    PSE12 became a 64 bit app for the first time on Mac. The recommended system requirements are Mac OS X v10.7 through v10.8.
    Are you not able to use lion or Mountain Lion?

  • Pathing issues in Flash CC

    I believe I have some pathing issues and was wondering how I can change the pathing so that is can be view publicly. The problem is my videos are being played from my local folder and can't be access via web browser for other users.

    It's in the code area, and I tried pasting it (didn't show anything) and then executing the code, and it didn't do anything.
    I then tried creating a text area on the page, and went to the Edit menu - and "Paste Special" was the only available option. So I tried that, and it says "Source: Unknown Source" and the only option I have is to Cancel.
    I then went into Flash CS6, and copied a line of code from that. I tried pasting it into the Flash CC 2014 actions console, and it did nothing. I then went back to my text area (still in Flash CC 2014) and it pasted the code in there fine. 
    So, it looks like I still cannot copy from or paste into the actions panel Flash CC 2014, which is what I need. But, maybe this sparks another idea? Thanks for your help, I appreciate it.

  • %PATH% issue sending job

    11g grid control, 11g agent, 9i database
    installed agent, echo %PATH% and dont see the agent binaries there.
    created a job locally on machine for rman, runs ok from command line and scheduled tasks but fails from grid control when I created an OS task job. server has dbschedule as its preferred credentials
    Put some logging in, can see it logged on as dbschedule.
    however the %PATH% now has my 11g agent install path at the front of the path so is failing as the 11g binaries are incorrect for the 9i database.
    I can get round this by setting the paths and homes in the script. However.....
    If I send an RMAN specific job down from grid control it fails as well but this time it forces grid control to lose its configuration with the 9i database. Im pretty sure its related to the PATH issue above.
    anyone know why this is happening and how to fix? Im pretty sure its the logon interactive and logon as a batch job are the issues but dont know why the PATH would be different.

    answered this myself in case anyone else comes across it. If you call an OS job from grid control ,the agent on the server that your calling, prepends the path with the agent version binaries, so if your path on the agent server is d:\oracle\9i and youre using an 11g agent
    calling the OS job from GC means the PATH gets changed to d:\oracle\11gagent\bin;...more 11g paths;d:\oracle\9i so the wrong binary is used for sqlplus or RMAN or whatever tool you wanted to use
    Should always be putting paths in any OS script anyway but interesting to note the behaviour.

  • Replacement path issue

    Hello,
    Can anybody please help me with a replacement path issue which I have been struggling with for days, and I am completely lost
    now and close to despair!
    Here's what I am trying to do. I have a simple query with one key figure (let it be Presence) and three items in structure in rows: 0EMPLOYEE, 0PROFIT_CTR and variance. The idea is to show the result both for the person (0EMPLOYEE), and compare it with their overall profit centre result, and calculate variance.
    For example:
    John Doe: 50% (presence)
    Profit centre which John belongs to: 40% (presence)
    variance: 10%
    The only variable I want to input is John's name, and the query is supposed to find his current (time dependant) profit centre (0EMPLOYEE_0PROFIT_CTR) and use it to calculate the profit centre result. Is there any way that I can achieve this?
    Once the query is done, I want to set it up on the Broadcaster to run for all the people in the firm.
    Please please help me,
    Cheers,
    Agata

    Aglukas,
    You need two queries to achieve this
    Query 1 u2013 ( this gets Profit center of that employee to feed into Query 2)
    Column Presence(key figure)
    Row u2013 profit center
    Employee u2013 Employee variable that is user entry
    Query 2 u2013
    Column u2013 Presence
    Row Structure u2013 Selection 1- Title- Employee u2013Restriction should be employee with user entry variable
    Selecton 2 u2013 Title For entire profit center u2013 Restriction should be Profit center u2013 Variable should be-Replacment path Variable- fetching Profit center from Query 1
    Selection 3 u2013 Selection 1-Selection 2 this could be a cell defination.
    Hope this helps
    Regards

  • HT203242 I get this error when launching itunes "the registry settings used by the itunes drivers for importing and burning CDs and DVDs are missing." I ahve reinstalled iTunes multiple times but the issue remains.....any suggestions?

    I get this error when launching itunes "the registry settings used by the itunes drivers for importing and burning CDs and DVDs are missing." I ahve reinstalled iTunes multiple times but the issue remains.....any suggestions?

    I'd start with the following document, with one modification. At step 12 after typing GEARAspiWDM press the Enter/Return key once prior to clicking OK. (Pressing Return adds a carriage return in the field and is important.)
    iTunes for Windows: "Registry settings" warning when opening iTunes

  • Cs5 "local disc" and .js path issues

    Trying to add what appears to be a simple .js script to my doc:
    I add the script to my <head>, which then shows next to my Source Code and other scripts. But it doesn't work, and when I click to open the file there, I get the message 'not on local disc', and 'Get' which doesn't work either, even though the file is in my local file view/f8. One would think when the script name pops up next to Source Code, the doc. path is correct, but that obviously isn't the case. So what is the deal with this 'local disc'?
    I added a clearbox last week after pulling my hair out over the similar path issues, and after much trial and trib it finally worked. Would rather just like to understand it. Can anyone help? Thank you.
    The .js' Column' script I'm trying to add is here if it helps: http://www.projectseven.com/tutorials/css/pvii_columns/index.htm

    I also would like to know how to do this!

  • Leopard installation hard drive issues

    I recently bought a iBook G4 (2005 model) on eBay under the impression it was just missing an OS. Armed with a copy of Leopard (yes I bought it ) I tried to boot it up for the first time.
    The first time I was faced with the Open Firmware screen, and errors that seemed consistnat with a faulty airport connection. I took it all apart and removed the airport card, then while booting I pressed Option to get the list of boot options. Booted to the Leopard DVD and after a disk check it seemed like it was working fine.
    However just as it was about to begin the actual install process it cacked out with a massive Installation Failed! message. The install log said the error "Could not unmount" was to be blamed. Tried using the disk utility to verify the drives but it spent ages doing nothing. Repair wouldnt work and neither would erase, they gave me the same issue.
    So that was it for the night. Gave up to try another day. Next morning trying to do the same thing after changing nothing, I was faced with the "You must restart your computer" message just after the language select screen on the install DVD. Why did this suddently change?
    Took the harddrive out to check the connection was ok, seemed fine so put it back (didnt get the chance to plug it into my pc like I hoped, was missing the right adapter). Now with everything back in place, if I press Option on boot I dont even get a list of harddrives/cd drives anymore... just the two arrows and other than that a blank screen.
    If I try to hold C while I boot to go straight to the disk then it shows the white loading page with the apple logo, but after an hour it hadnt moved on from there. The whole time the hard drive is making a loud clicking noise.
    It seems each move I make I go backwards a little. Who has some suggestions that dont involve paying a spotty berk in the local shop $300 just so he can crack open Google, find this support post and fix it for me at a profit
    I believe the HDD may be fried, but dont know how to check. It seemed to recognize it in the Disk Utility the time I got that far, but dont know why it no longer recognizes it.
    Message was edited by: pjsturgeon

    For us it was Versions cannot be switched off (decreases security).  No "Save As" in many Apps, no Bounce in Mail.  10.7 felt “dumbed down” to us.  We will try later, (10.8 maybe).
    This is what we did in our office, from Kappy:
    To switch from Lion to Snow Leopard:
    1.  Boot from your Snow Leopard Installer Disc. After the installer loads select your language and click on the Continue button.  When the menu bar appears select Disk Utility from the Utilities menu.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
    4. Quit DU and return to the installer. Install Snow Leopard.
    This will erase the whole drive so be sure to backup your files if you don't have a backup already. If you have performed a TM backup using Lion be aware that you cannot restore from that backup in Snow Leopard (see below.) I suggest you make a separate backup using Carbon Copy Cloner 3.4.1.
    If you have Snow Leopard Time Machine backups, do a full system restore per #14 in Time Machine - Frequently Asked Questions.  If you have subsequent backups from Lion, you can restore newer items selectively, via the "Star Wars" display, per #15 there, but be careful; some Snow Leopard apps may not work with the Lion files.

  • Path issue leaving me unable to add blog post content in design view

    Hi guys,
    I am unable to add blog post content in design view when a template is applied to my blog. BC support have told me they fixed the problem by making minor changes to the paths of the css and javascript files and then told me to post on here for the solution.
    When I call the files using <link rel="stylesheet" href="/css/custom.css" /> everything displays perfectly but in BC I can't add blog post content in design view. I can edit in html but this isn't ideal for clients to update the blog.
    If I change the paths to <link rel="stylesheet" href="css/custom.css" /> it fixes the problem and I can then edit blog content in design view but all blog pages that are in folders display incorrectly. Only the main blog page display properly.
    I'm sure the answer is simple but I can't find it so any help would be greatly appreciated. Thanks
    Pete

    I took a look at your page URL and can't find any CSS issues or styles that would directly affect you editing/adding content to a blog post via the content editor.
    Make sure you either clear your cache or try in another browser to see if the problem is localized to your current browser.
    If you still have the problem can you link me to a screencast (you can use Jing if you don't have a screencast program: http://www.techsmith.com/jing.html) of what you are experiencing?

  • Possible 'Class Path' Issues

    Hi Guys,
    I have problems compiling a file and I suspect it could be something related to classpaths. I am using NetBeans 6.9.1 as my IDE. When I set JDK 1.6 as my platform and complile, there are no issues, the programs compiles fine.
    My 'classpath' and 'path' are as follows:
    classpath:
    .;C:\Program Files\Java\jre1.6.0_07\lib\ext.;c:\java\classes;
    path:
    \....\....\....C:\Program Files\Java\jdk1.6.0_21\
    If I were to set the JDK as in 1.5, I seem to get the follwing error:
    ' cannot access org.red5.server.api.IScope
    bad class file: C:\Program
    Files\Red5\red5.jar(org/red5/server/api/IScope.class)
    class file has wrong version 50.0, should be 49.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    import org.red5.server.api.IScope;
    1 error
    To rectify the problem I maded changes to my classpath and path, and yet the problem persists. The changes I made
    are as follows:
    classpath:
    .;C:\Program Files\Java\jre1.6.0_07\lib\ext.;C:\Program Files\Java\jre1.5.0_22\lib\ext.;c:\java\classes;
    path:
    \....\....\....C:\Program Files\Java\jdk1.6.0_21;C:\Program Files\Java\jdk1.5.0_22;C:\....\
    I hope someone can advise me on how I get rectify the problem and get the program to compile with JDK 1.5. Thanks.

    he wants to use JDK 1.5.Do read the thread before you post. He is* using JDK 1.5 when he gets the error message. He said so. This is the problem.* Not the solution. When he uses 1.6 he doesn't get the error.
    His environment is a bit messed up because he has PATH entries for both JDK versions.There is precisely zero evidence for that assertion.
    If he wants to compile and test with JDK 1.5, then removing 1.6 would make sense.No it wouldn't. He is using classes compiled for 1.6 with a 1.5 compiler. His problem is with red5.jar(org/red5/server/api/IScope.class) whose class version is 50.0. It's all written there above. If he wants to use that .jar file he has to use 1.6. Or else recompile that .jar file with 1.5, if he has the sources.

  • SWFLoader loded swf and relative path issue

    Hi,
    Before explaining the problem, let me describe the usecase.
    I have dashboard flex application hosted on Host1.
    I have another flex application which acts as plugin to dashboard and is hosted on Host2.
    I am using proxy to load plugin into dashboard using SWFLoader. With proxy SWFLoader in dashboard thinks that the plugin is coming from same host.
    For plugin to load I specify SWFLoader source something like - source="Proxy/Host2WebappDir/plugin.swf.
    Everything is fine upto this point. plugin.swf get loads successfully without any issue.
    Now the problem -
    If plugin.swf made some request - the url path of that requrest is expected to be relative - i.e. if it make request say getIndianStates.xml, I am expecting the request should look for resource at "Proxy/Host2WebappDir/getIndianStates.xml". Instead it tries to look for getIndianStates.xml into dashboard hosting directory on Host1.
    Can this issue be resolved without making any modification in source of plugin.swf.
    Thanks in advance,
    Prithveesingh Zankat.

    I don’t know if any way to fix this without changing the URL the plugin wants to load.  Now if the plugin stores that URL in a publicly accessible variable, you might be able to access it from the main SWF and change it.  But it would be better to have the plugin detect relative paths and make sure they are relative to the SWF.  The SWFLoader component uses a LoaderUtil class to do that for SWFs it loads, but loads that don’t use SWFLoader need similar fix ups.

  • Leopard + ATI X800 display issues

    I have a G5 Dual 2.7Ghz G5 with an ATI X800 XT, we run the computer as an edit suite and cut TV on it.
    I currently have it setup with 2 boot disks with Tiger and Leopard. As its a production machine we have been using Tiger exclusively but I've had Leopard running for testing.
    Previously I had noticed a green noise on the right display (both Dell 24's) only in Leopard, that was only in 10.5. Tiger continued to run with out any issues or noise.
    Today I booted into Leopard and found, after it fell to sleep and was then woken I got this -
    [img]http://www.lotech.co.nz/images/IMG_0035.jpg[/img]
    [img]http://www.lotech.co.nz/images/IMG_0038.jpg[/img]
    It would seem to be driver related as the system is still completely stable. I don't think its overheating, as my first X800 was replaced for that and the noise is very different.

    Although I read about problems with this combination and the 30" Cinema Display - I went ahead and upgraded to Leopard. I did see some "pink flashes", until after updating to 10.5.4. Now everything seems fine and I don't see ANY problems. I did not install the ATI Displays software.

  • PATH() issue - The Value 'Val123' has multiple values

    Im using PATH() to get a flattened hierarchy. I keep getting the following error:
    Calculation error in column 'Detail'[]: Each value in 'Detail'[UniqueID] must have the same value in 'Detail'[ParentTest]. The value 'A00012:A123' has multiple values.
    I know with 100% certainty that there are not multiple values for A00012:A123.
    I have also copied the data ( from the powerpivot Designer) to another workbook and cannot reproduce the issue. 
    Can anyone advise what might be going on here? Im using Excel 2010 32bit, if its any use. If i can supply any further information please let me know.
    Thanks

    I found the issue. In a seperate set of rows there was a duplicate. the rows had nothing to do with the rows that were actually mentioned in the error message. so a cause has been identified.
    Thanks

Maybe you are looking for

  • 1:1 View not working in Windows 7?

    Hi folks, I know it's not officially supported but I was wondering if others have seen this as well: I'm running Windows 7 Build 7000 x64 on a Intel Quad Core, 4Gb Ram, NVIDIA 7600GT. When I run LR 2.2 or 2.3RC either in 32bit or 64bit mode then when

  • Please, please bring out a Zen Vision:M with integrated digital camera!

    Is there some chance to contact the development division of creative and ask for a Zen Vision:M with integrated digital camera? there are mobiles out there with 0 Megapixel cameras and they don?t have a 30 GB disk space. There would be nothing better

  • BAPI: bapi or RFC for t-code f-28

    Hi all,         can any one tell me bapi or rfc available for t-code f-28        please help me... Regards, devika G.

  • How do I open password protected email attachment?

    Does anyone know how to open a password protected attachment in email. My email will not download the attachment if it is password protected

  • Adobe Flash causes my comput to use 100% of CPU

    Ever since about Flash ver. 11 my computer has started using 100% of the CPU and then Flash usually crashes or locks up my computer. I have done all of the updates and I am now using ver. 12.0.0.70 and it continues to be a problem. What change did th