University of Southern CaliforniaUSC
USC ICT TwitterUSC ICT FacebookUSC ICT YouTube

Error importing .pyd | General SmartBody Discussion | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Error importing .pyd
June 23, 2015
5:30 pm
Avatar
Member
Members
Forum Posts: 30
Member Since:
April 27, 2015
sp_UserOfflineSmall Offline

Hello. I am using sbgui to render a scene but I can not import httplib. I have seen that it fails in importing _socket.pyd; and that this is a failure of SmartBody. How could I import .pyd files in sbgui? 

June 23, 2015
5:41 pm
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

I am able to run 'import httplib' with my version of SmartBody.

What platform and what version of SmartBody are you using?

There is a file called .smartbodysettings in the bin/ folder which has a line like this in it:

pythonlibpath=e:\\sdk\\smartbody\\python27\\Lib

 

make sure that it points to the python library directory. There shouldn't be any issue using .pyd files, as far as I know.

 

Ari

June 24, 2015
3:41 pm
Avatar
Member
Members
Forum Posts: 30
Member Since:
April 27, 2015
sp_UserOfflineSmall Offline

Well, I was using it in a 64-bit Windows computer. As the available Windows version of Smartbody is 32-bit; I suppose that was the origin of the failure. I am using it on Ubuntu and I have no issue importing it.

June 24, 2015
5:49 pm
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

SmartBody is built on Windows with 32 bits, but I have no problem loading that library. Are you using the SmartBody windows SDK, or did you build the code from the SVN repository? If you are using the SDK, there is a 32-bit version of Python already included.

 

Ari

Forum Timezone: America/Los_Angeles

Top Posters:

jwwalker: 80

jyambao: 52

rbaral: 47

adiaz: 30

WargnierP: 29

lucky7456969: 28

mbarros: 28

avida.matt: 26

JonathanW: 24

laguerre: 23

Member Stats:

Guest Posters: 67

Members: 99543

Moderators: 3

Admins: 4

Forum Stats:

Groups: 1

Forums: 5

Topics: 458

Posts: 2401