stlehmann / pyads

Python wrapper for TwinCAT ADS
MIT License
252 stars 93 forks source link

Cannot import python package or rebuild shared library on fedora 36 #327

Closed modra-alan closed 1 year ago

modra-alan commented 1 year ago

As stated I'm running fedora 36 with python 3.10

After installing in virtual environment using pipenv I get

OSError: adslib.so: cannot open shared object file: No such file or directory

Installing globally with pip also yields the same error. The docs recommend that I manually build the shared library using:

cd adslib make sudo make install

Which is a little confusing as there is no adslib directory in the project folder. So I navigate to the adslib directory in the virtual environment which in my case is

/home//.local/share/virtualenvs/first_ads_project-nXD7lDW1/adslib

After using the above commands I get the error:

(first_ads_project) ➜ adslib make
mkdir -p obj/ g++ -c -std=c++11 -pedantic -Wall -fPIC AdsLib/AdsDef.cpp -o obj/AdsDef.o -I AdsLib/ make: g++: No such file or directory make: *** [Makefile:31: obj/AdsDef.o] Error 127

Using sudo make yields the same error

Any help/insight on this would be appreciated thanks.

modra-alan commented 1 year ago

Error was due to g++ not being installed