Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with installing- could not find SIP despite being installed #73

Open
cst0 opened this issue Jun 8, 2018 · 2 comments · Fixed by #134
Open

Issues with installing- could not find SIP despite being installed #73

cst0 opened this issue Jun 8, 2018 · 2 comments · Fixed by #134
Labels

Comments

@cst0
Copy link

cst0 commented Jun 8, 2018

When attempting to run cmake on libArcus, cmake exits with the error "Could not find SIP". However, SIP is on my system and I have tried several methods of installing and checking. Here's what I've done so far (for reference, I'm running Debian Stretch):

  • Install sip using pip3 install sip as mentioned in the SIP documentation
  • Downloading sip-4.19-cp35-cp35m-manylinux1_x86_64.whl from the link in Running Cura from Source, then running pip install on that file. It exited with error, saying it wasn't a supported wheel on my platform, so I tried sip-4.19-cp36-cp36m-manylinux1_x86_64.whl (the other possibility from that link), and had the same issue.
  • The same as above but with pip3, which successfully installed but was not found by libarcus
  • Installing the sip-dev package from the Debian repositories through my package manager, which also succeeded but was not found by libarcus
  • Extracting the .whl's mentioned above using unzip, but the contents only contained a few text files (METADATA which recommended I use pip3 to install, and RECORD and WHEEL which had some record and configuration stuff) and an executable called sip.so. I tried running it and got a segmentation fault, and neither python nor python3 could run it. This was true in both the .whl's.

I know sip is installed because I can run an import sip from the python3 console, so I'm not sure why libarcus still won't find and use it. Any help here would be much appreciated!

@cst0
Copy link
Author

cst0 commented Jun 12, 2018

Hey @awhiemstra or @Ghostkeeper - would either of you happen to have any insights as to what I might be able to do here?

@Ghostkeeper
Copy link
Contributor

The Python SIP package is not enough. SIP also has a library and headers that you will need. Most notably, libArcus is looking for a CMake file that indicates where those headers and libraries are.

The only way I've ever really gotten it to work is to compile SIP from source. That is, to get SIP from here: https://www.riverbankcomputing.com/software/sip/download

After building it and installing it, there should be a .cmake file in your install directory (I believe it's under ./share).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants