Python Connector

2 posts / 0 new
Last post
GS
Offline
Last seen: 1 year 1 month ago
Joined: 03/31/2016
Posts: 23
Python Connector

Hi,
I'm getting the following error when tryring to run one of the connector's python files.  

C:\Users\Gal S\Desktop\rticonnextdds-connector-master\rticonnextdds-connector-ma
ster\examples\python\simple>reader.py
Traceback (most recent call last):
File "C:\Users\Gal S\Desktop\rticonnextdds-connector-master\rticonnextdds-conn
ector-master\examples\python\simple\reader.py", line 12, in <module>
import rticonnextdds_connector as rti
File "C:\Users\Gal S\Desktop\rticonnextdds-connector-master\rticonnextdds-conn
ector-master\examples\python\simple/../../../rticonnextdds_connector.py", line 1
08, in <module>
rtin_RTIDDSConnector_setJSONInstance = rti.RTIDDSConnector_setJSONInstance
File "D:\Program Files\Python\lib\ctypes\__init__.py", line 378, in __getattr_
_
func = self.__getitem__(name)
File "D:\Program Files\Python\lib\ctypes\__init__.py", line 383, in __getitem_
_
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'RTIDDSConnector_setJSONInstance' not found

 

Did you came across with this attrbiuteError? How can I fix it?

 

Thanks in advance,

GS

gianpiero's picture
Offline
Last seen: 3 months 4 days ago
Joined: 06/02/2010
Posts: 177

Hello GS,

I saw this error in a previous version of the connector. In that version I had forgotten to export a couple of function to set/get JSON from the C library (lib/i86Win32VS2010/rti_dds_connector.dll). But it was fixed shortly after. I just tried on my windows VM with the latest version and it looks fine. 

Can you try again by cloning the latest repository? 
Sorry for the inconvinience and let me know how it goes!

Best,
 Gianpiero