Normal Topic Sesame API (Read 2616 times)
jjj
Member
*
Offline



Posts: 5
Joined: Jul 5th, 2017
Sesame API
Oct 18th, 2018 at 12:58am
Print Post Print Post  
Hi all,
I'm trying to get the sample Sesame API to work in Python on a WinXP VM.
I have the server and multiple clients setup and working properly.
I'm running Sesame 2.6.4 and the corresponding API. I'm using Python 2.7.3

When running the sample python file, i get the error
Code
Select All
UnboundLocalError: local variable '_mod' referenced before assignment 



I've gotten further with an earlier version of python 2.6 and the earlier version of the API where it can't find _sesame_python_api even though I've added the location paths and I'm running the script from the api/python folder. In that environment, the python console displays an error but the server detects the connection but logs it as a disconnect 10 times.

Can anyone whose gotten this to work shed some light? Is there a 64bit version?
Thanks in advance.

  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Sesame API
Reply #1 - Oct 18th, 2018 at 3:23pm
Print Post Print Post  
Hello,

If that is the only error message that you are getting, I would bet that you are either running a 64bit version of Python or that the PYD that you have downloaded is corrupt, as that error occurs when the programming can find the pyd file but can not load it. You need to be running a 32bit version of Python to match the DLL. At present the API and Sesame are only 32bit.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
jjj
Member
*
Offline



Posts: 5
Joined: Jul 5th, 2017
Re: Sesame API
Reply #2 - Oct 21st, 2018 at 10:17pm
Print Post Print Post  
Hi Ray,

Thanks for the reply.
However, I am running 32bit python 2.7.3 on 32bit Windows XP.
I have also tried re-downloading it several times but with the same outcome.


I've also noticed that the imp.find_module is working, but imp.load_module raises this error. Could there be another reason why it's not importing correctly?
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: Sesame API
Reply #3 - Oct 22nd, 2018 at 3:25pm
Print Post Print Post  
What size is your "_sesame_python_api.pyd" file? If it is 125kb, you are using the one for Python 3.5.X. In that case what you are going to want to do is delete it and rename the file "_sesame_python27_api.pyd" to "_sesame_python_api.pyd"

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
jjj
Member
*
Offline



Posts: 5
Joined: Jul 5th, 2017
Re: Sesame API
Reply #4 - Oct 22nd, 2018 at 10:23pm
Print Post Print Post  
Hi Ray,

That was it! I have it working. Thanks so much  Grin

  
Back to top
 
IP Logged