Hi Yogesh,
On 19.04.2011, at 10:28PM, Alexander Hansen wrote:
>>
>> insert the following lines into your script:
>>
>> import sys
>> print sys.version
>> print sys.path
>>
>> Inserted all 3 lines in my script, still the same error.
No output from those commands, even if you put them right at the
beginning of the script?
>>
>> Also, is your system Python 2.5 or 2.6 (it's 2.5 on Leopard, not
>> sure about
>> Snow Leopard right now)?
>>
>> It was 2.6 (showed in the current version), to make it consistent i
>> changed the current version to 2.5 using sudo ln -s command.
>>
>>
>> Cheers,
>> Derek
>>
>>
>>
>>
>> --
>>
> I don't think that will work. They're different versions. You'd be
> better off installing the -py26 versions of the modules you need if
> you're going to try to run them with the system python.
>
> And if you overwrote the system's /usr/bin/python with your "ln -s"
> operation, we definitely don't recommend that.
Yes! I think you could switch to Python2.5 using the python-config if
needed, but it would probably still be preferable to track down why
your script is not using the python interpreter specified, or not using
its default module path. It would help to get the output from the
sys.path and sys.version above.
On 4/19/11 3:18 PM, Yogesh Gupta wrote:
> First few lines of disp.py:
>
> #!/sw64/bin/python2.5
>
> from exp_setup import *
> import matplotlib as mpl
> import sys
>
Since Apple's Python does not include a matplotlib installation, this
could hardly induce the crash due to a version conflict; thus the
problem is most likely somewhere inside the exp_setup, so I'd
have a closer look into that module - I suspect it might be changing
the sys.path settings...
HTH,
Derek
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users