<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;">Yep, Chris Lee may be right.<div><br></div><div>Try the following: From the terminal, where Pandas works, execute the following Python commands</div><div><br></div><div>import sys</div><div>sys.executable</div><div><br></div><div>This should return the path to Enthought’s Python executable.</div><div><br></div><div>Now start pro Fit, choose Preferences under the pro Fit menu and go to the Scripting tab. Click the button “Change…” beside “Path to Python Library” and navigate to Enthought’s Python executable as retrieved above, then click Open. After that, pro Fit should tell you if it is able to work with the selected executable (it must be a 32 bit executable, and it must be Python 2.6 or 2.7. If pro Fit says that it can use that executable, restart pro Fit. Now pro Fit should use Enthought’s Python.</div><div><br></div><div>Best regards</div><div><br></div><div>Kurt Sutter</div><div>QuantumSoft </div><div><br><div><div>On 11 Feb 2014, at 4:48, Chris Lee <<a href="mailto:laserboy@fusemail.com">laserboy@fusemail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div 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; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">It sounds (and you have probably checked this) like you are using the wrong version of python.<div><br><div><div>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:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div lang="EN-GB" link="blue" vlink="purple"><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;">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;">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.<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;"><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;">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:<o:p></o:p></span></div><p class="MsoNormal" 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></p><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<o:p></o:p></span></div><p class="MsoNormal" 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></p><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!<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;">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;">Jeremy Harbinson<o:p></o:p></span></div></div></div>_______________________________________________<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">http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com</a><br></blockquote></div><br></div>_______________________________________________<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></div></blockquote></div><br></div></body></html>