<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Jeremy</div><div><br></div>Note that there are two typical places where Python 2.7 can be installed. One is /System/Libraries/Frameworks/Python.Framework/Versions/2.7/Python, the other is  /Libraries/Frameworks/Python.Framework/Versions/2.7/Python<div><br></div><div>I dunno into which of this that Enthought Python installs itself (or if it installs itself even elsewhere). Make sure you pick the right one in pro Fit. Again, carefully study what sys.executable returns.</div><div><br></div><div>Best regards</div><div><br></div><div>Kurt Sutter</div><div>QuantumSoft</div><div><br></div><div><br><div><div><div>On 11 Feb 2014, at 7:15, Harbinson, Jeremy <<a href="mailto:jeremy.harbinson@wur.nl">jeremy.harbinson@wur.nl</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div lang="EN-GB" link="blue" vlink="purple" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div class="WordSection1" style="page: WordSection1;"><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 10pt; font-family: Verdana, sans-serif; color: rgb(31, 73, 125);">Hi,<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 10pt; font-family: Verdana, sans-serif; color: rgb(31, 73, 125);">You are correct – there was a Python version mis-match; the Profit default was Python 2.6 and I had pandas in my 2.7 folder. I changed this, but pandas still would not load, though I can load other modules<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 10pt; font-family: Verdana, sans-serif; color: rgb(31, 73, 125);"> </span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 10pt; font-family: Verdana, sans-serif; color: rgb(31, 73, 125);">Using sys.modules I have gotten the paths of the modules I have loaded into Python 2.7 running in Terminal - numpy and pandas in this case are in the Enthought Python 2.7 folder. I can load numpy into a Profit script and it runs, while pandas does not. Up to now, however, I have not been able to get a report of the path of the numpy that is being loaded in the Profit script.<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 10pt; font-family: Verdana, sans-serif; color: rgb(31, 73, 125);">All the best,<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 10pt; font-family: Verdana, sans-serif; color: rgb(31, 73, 125);">Jeremy Harbinson  <o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 10pt; font-family: Verdana, sans-serif; color: rgb(31, 73, 125);"> </span></div><div><div style="border-style: solid none none; border-top-color: rgb(181, 196, 223); border-top-width: 1pt; padding: 3pt 0cm 0cm;"><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><b><span lang="EN-US" style="font-size: 10pt; font-family: Tahoma, sans-serif;">From:</span></b><span lang="EN-US" style="font-size: 10pt; font-family: Tahoma, sans-serif;"><span class="Apple-converted-space"> </span>proFit-list [<a href="mailto:profit-list-bounces@quantum-soft.com">mailto:profit-list-bounces@quantum-soft.com</a>]<span class="Apple-converted-space"> </span><b>On Behalf Of<span class="Apple-converted-space"> </span></b>Chris Lee<br><b>Sent:</b><span class="Apple-converted-space"> </span>dinsdag 11 februari 2014 16:48<br><b>To:</b><span class="Apple-converted-space"> </span>all things about pro Fit<br><b>Subject:</b><span class="Apple-converted-space"> </span>Re: [proFit-list] problem with Python<o:p></o:p></span></div></div></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">It sounds (and you have probably checked this) like you are using the wrong version of python.<o:p></o:p></div><div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div><div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">On 11 Feb 2014 (W: 7), at 16:46, Harbinson, Jeremy <<a href="mailto:Jeremy.Harbinson@wur.nl" style="color: purple; text-decoration: underline;">Jeremy.Harbinson@wur.nl</a>> wrote:<o:p></o:p></div></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><br><br><o:p></o:p></div><div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 10pt; font-family: Verdana, sans-serif;">Hi,</span><o:p></o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 10pt; font-family: Verdana, sans-serif;">I am not able to import pandas into a Python function. I am using OSX 10.8.4, I have the Enthought Python Distribution installed (1.3.0.1715) and my ProFit is 6.2.11.</span><o:p></o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 10pt; font-family: Verdana, sans-serif;">Pandas can be imported into Python running in a terminal and works there, so it seems to be functioning in a general sense (and it works in Enthought’s own python gui). I needed to update a function that used PyDataFrame, which no longer works, and pandas seemed to be an easy alternative, but the line:</span><o:p></o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 10pt; font-family: Verdana, sans-serif;"> </span><o:p></o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 10pt; font-family: Verdana, sans-serif;">import pandas as pd</span><o:p></o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 10pt; font-family: Verdana, sans-serif;"> </span><o:p></o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 10pt; font-family: Verdana, sans-serif;">gets the response that there is ‘no module called pandas’ – even using sys.path.append to add the pandas path (or what I think is the path) did not work. Any suggestions? My guess is that this is a basic, silly mistake on my part, so don’t spare me the obvious!</span><o:p></o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 10pt; font-family: Verdana, sans-serif;">All the best,</span><o:p></o:p></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 10pt; font-family: Verdana, sans-serif;">Jeremy Harbinson</span><o:p></o:p></div></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 12pt; font-family: 'Times New Roman', serif;">_______________________________________________<br>proFit-list mailing list<br><a href="mailto:proFit-list@quantum-soft.com" style="color: purple; text-decoration: underline;">proFit-list@quantum-soft.com</a><br><a href="http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com" style="color: purple; text-decoration: underline;">http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com</a><o:p></o:p></span></div></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 12pt; font-family: 'Times New Roman', serif;"> </span></div></div></div>_______________________________________________<br>proFit-list mailing list<br><a href="mailto:proFit-list@quantum-soft.com">proFit-list@quantum-soft.com</a><br>http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com</div></blockquote></div><br></div></div></body></html>