analogdevicesinc / libsmu

Software abstractions for the analog signal exploration tools.
http://analogdevicesinc.github.io/libsmu/
BSD 3-Clause "New" or "Revised" License
31 stars 31 forks source link

Make error, no module named setuptools #194

Closed SuperSecureHuman closed 2 years ago

SuperSecureHuman commented 2 years ago

I am trying to install, but it says module error. I can confirm that I have installed setuptools.

image

System info

image

Thanks!

AlexandraTrifan commented 2 years ago

Hi,

Can you send us the output log from the CMake step? This way we can check if cmake linked to the correct python version, the one in miniconda/envs/python37.

-Alexandra

SuperSecureHuman commented 2 years ago

CMakeOutput.log

Here is the log file

I am not exactly sure about cmake being linked. Can you link an article or something?

Thanks!

AlexandraTrifan commented 2 years ago

Please also attach the CMakeCache.txt and a printscreen from the command line, from when you ran the step "cmake ..", right before "make". When "cmake .." is called, the project searches for some dependent libraries. Python is one of those dependencies, and CMake will find the one that's in the system Path.

-Alexandra

SuperSecureHuman commented 2 years ago

cmake ..

image

Cmake Cache CMakeCache.txt g)

Here you go

AlexandraTrifan commented 2 years ago

Hi,

The problem is that CMake detects python2.7 before python3 and uses that one. Please remove everything from your "build" directory and try to build it again in the following way:

cmake -DUSE_PYTHON2=OFF .. make

-Alexandra

SuperSecureHuman commented 2 years ago

Yep! It did the trick!

Thanks You might wanna update readme (the table where you put flags)

I'll close this issue now :)

AlexandraTrifan commented 2 years ago

We are working on some updates and this flag will disappear in the future.

-Alexandra