Dear all,

I've got a little mystery. Since I upgraded from my G4 iBook OS X 10.4.9 to my new MacBook (2.2 Ghz Intel Core 2 Duo, Mac OS 10.5), bbedit doesn't seem to acknowledge the presence of modules in /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages even though python knows about them. For example: running python in the terminal from the command line I can do this:

dir(pydot)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'pydot' is not defined
import pydot
dir(pydot)
['Cluster', 'Common', 'Dot', 'Edge', 'Error', 'Graph', 'Node', 'Subgraph', '__author__', '__builtins__', '__doc__', '__file__', '__license__', '__name__', '__version__', 'copy', 'dot_parser', 'find_graphviz', 'graph_from_adjacency_matrix', 'graph_from_dot_data', 'graph_from_dot_file', 'graph_from_edges', 'graph_from_incidence_matrix', 'os', 'tempfile']


but if I try to import pydot from a script in a bbedit text window like this:

#!/usr/bin/python
import pydot

I get this error when I try to run it.

/Users/jjc/Desktop/testImport.py:2:  ImportError: No module named pydot

As a rank tyro in programming, I'm sure I'm missing something obvious. Any clues gratefully accepted.

--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to