SOLVED Import Libary for AC

RapierXbox

New Member
Hi. Can anyone help me importing a libary in my python script. I have it installed in my python version but its not in the AC one.
 

RapierXbox

New Member
Hi thanks for you reply i tried it but it still doesnt work i still get the same error: ImportError: no package named _ctypes and i cant install libbi-dev because this version in internal yk
 

fughettaboutit

aka leBluem aka Please Stop This
oh ctypes...
copy stdlib and stdlib64 folders from another app and use this:
Code:
import os, sys, platform
sysdir=os.path.dirname(__file__)+'/stdlib'
if platform.architecture()[0] == '64bit':
    sysdir=os.path.dirname(__file__)+'/stdlib64'
sys.path.insert(0, sysdir)
os.environ['PATH'] = os.environ['PATH'] + ';.'
import ctypes
 

RapierXbox

New Member
biggest fault on my side in the arduino code i looked for G and S for Go and Stop but in the python code i wrote 0 and 1
 
Top