Can't find modules please help!

111 views
Skip to first unread message

Nicholas Shoemake

unread,
Feb 9, 2014, 6:56:45 PM2/9/14
to nxt-p...@googlegroups.com
Hi, I'm trying to run a program gives me errors that say I'm missing these modules:
Nicholass-MacBook-Air:nxt-python-2.2.2 nicholasshoemake$ python nxt_beep.py
Traceback (most recent call last):
  File "nxt_beep.py", line 10, in <module>
    from nxt.bluesock import BlueSock
  File "/Users/nicholasshoemake/nxt-python-2.2.2/nxt/bluesock.py", line 18, in <module>
    import lightblueglue as bluetooth
  File "/Users/nicholasshoemake/nxt-python-2.2.2/nxt/lightblueglue.py", line 17, in <module>
    import lightblue
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lightblue/__init__.py", line 164, in <module>
    from _lightblue import *
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lightblue/_lightblue.py", line 27, in <module>
    import Foundation
ImportError: No module named Foundation

 Here is the code if anyone would like to look at it?
nxt_beep.py

TC Wan

unread,
Feb 9, 2014, 11:15:05 PM2/9/14
to nxt-p...@googlegroups.com


On Monday, February 10, 2014 7:56:45 AM UTC+8, Nicholas Shoemake wrote:
 
ImportError: No module named Foundation


Make sure you also install the py27-pyobjc (and probably py27-pyobjc-cocoa) ports

http://stackoverflow.com/questions/3098932/importerror-no-module-named-foundation 
Reply all
Reply to author
Forward
0 new messages