connextdds-py icon indicating copy to clipboard operation
connextdds-py copied to clipboard

Failed to import rti.connextdds

Open endingchen opened this issue 3 years ago • 0 comments

Hello!

I built the wheel package successfully on Windows 11 and Ubuntu 20.04 both. On Linux, it works perfectly. However, when I import the rti.connextdds on Windows, it returns an error:

(py3) C:\Users\ending>python
Python 3.9.12 (tags/v3.9.12:b28265d, Mar 23 2022, 23:52:46) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import rti.connextdds as dds
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: Could not allocate string object!
>>>

Here is my environment on Windows

  • RTI Connext DDS v6.1.1
  • Visual Studio 2022 Community
  • Python 3.9.12
(py3) C:\Users\ending>pip list
Package    Version
---------- -------
pip        22.2
rti        0.1.5
setuptools 63.2.0
wheel      0.37.1
python configure.py ^
--nddshome "C:\Program Files\rti_connext_dds-6.1.1" ^
--jobs 4 ^
--tcp ^
--monitoring ^
--secure ^
--openssl "C:\Program Files\rti_connext_dds-6.1.1\third_party\openssl-1.1.1n\x64Win64VS2017\release\bin" ^
"x64Win64VS2017"

endingchen avatar Jul 29 '22 01:07 endingchen