-1

I am trying to install SIP on Ubuntu 18.04. I got some information at Installation. It says to use python configure.py, but when I am trying this command from the directory where I have downloaded and extracted SIP, I am getting the following message:

python: can't open file 'configure.py': [Errno 2] No such file or directory

Somebody please guide me.

Zulfi

wjandrea
  • 14,109
  • 4
  • 48
  • 98
user2994783
  • 215
  • 3
  • 6
  • 16

2 Answers2

1

You are somehow mistaken. I downloaded the same package as you, and it does contain configure.py.

Commands to get, unpack and configure:

cd /tmp/
wget "https://www.riverbankcomputing.com/static/Downloads/sip/sip-4.19.14.tar.gz"
tar -zxf sip-4.19.14.tar.gz
cd sip-4.19.14/
python configure.py
make

Those commands, if executed in order, provided you have build-dependencies installed, will work.

vidarlo
  • 21,954
  • 8
  • 58
  • 84
  • $ wget "https://www.riverbankcomputing.com/static/Downloads/sip/sip-4.19.14.tar.gz" --2019-03-03 23:16:41-- https://www.riverbankcomputing.com/static/Downloads/si. 66.151.32.244 .. connected. Length: 1049688 (1.0M) [text/plain] Saving to: ‘sip-4.19.14.tar.gz’ $ tar -zxf sip-4.19.14.tar.gz $ python configure.py python: can't open file 'configure.py': [Errno 2] No such file or directory $ ls configure.py ls:': No such file or directory $ Hi vidario is the above dependency problem? Zulfi. – user2994783 Mar 04 '19 at 05:25
  • Yes, I was stupid and forgot a command :( you need to `cd`to the directory in question after unpacking :) – vidarlo Mar 04 '19 at 05:51
  • Hi configure.py worked but I got make file error: make[1]: Leaving directory siplib.c:20:10: fatal error: Python.h: No such file or directory #include ^~~~~~~~~~ compilation terminated. Makefile:29: recipe for target 'siplib.o' failed make[1]: *** [siplib.o] Error 1 make[1]: Leaving directory '/tmp/sip-4.19.14/siplib' Makefile:3: recipe for target 'all' failed make: *** [all] Error 2 :/tmp/sip-4.19.14$ – user2994783 Mar 04 '19 at 06:12
  • You don't have all the build dependencies for the package. – vidarlo Mar 04 '19 at 06:25
  • Hi, I am this github link:https://github.com/honeynet/apkinspector It says to install Qt which I did. What other dependencies I have to install kindly guide me. I have installed python. Zulfi. – user2994783 Mar 05 '19 at 06:07
  • I found that I have to install libpython-dev. I tried following but they are not working$ apt-get libpython-dev E: Invalid operation libpython-dev :/sip-4.19.14$ pip3 install libpython-dev Collecting libpython-dev Could not find a version that satisfies the requirement libpython-dev (from versions: ) No matching distribution found for libpython-dev /sip-4.19.14$ Somebody please guide me. Zulfii. – user2994783 Mar 05 '19 at 06:24
  • @vidarlo Shouldn't you include `make install` after make, as per [this answer](https://askubuntu.com/a/666336/156518)? – NauticalMile Sep 24 '19 at 19:45
0

Did you try:

SIP Download

SIP is provided as a source distribution (sdist) and binary wheels from PyPI. To install it, run the following command:

pip install sip

https://riverbankcomputing.com/software/sip/download

Nicholas Saunders
  • 1,054
  • 4
  • 16
  • 37