Bug#768578: Cannot build python module from apt-get source

2015-07-14 Thread Tzafrir Cohen
Hi,

Thanks for your report,

On Mon, Jul 13, 2015 at 03:57:49PM -0700, koanhead wrote:
 I tried today to build the python module by using `apt-get source` and
 then running `setup.py build` and `setup.py install`. I have the
 packages libpjsua2 and libpjproject-dev installed.

A new version of this package is in the NEW queue. It already includes
python bindings.

https://ftp-master.debian.org/new/pjproject_2.4~dfsg-1.html

Please try it. If I don't get any negative feedback, I'll close this bug
when the package gets into Unstable.

-- 
Tzafrir Cohen | tzaf...@jabber.org | VIM is
http://tzafrir.org.il || a Mutt's
tzaf...@cohens.org.il ||  best
tzaf...@debian.org|| friend


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#768578: Cannot build python module from apt-get source

2015-07-13 Thread koanhead
I tried today to build the python module by using `apt-get source` and
then running `setup.py build` and `setup.py install`. I have the
packages libpjsua2 and libpjproject-dev installed.

After a few false starts, the module *appears* to compile correctly:

pjproject-2.1.0.0.ast20130823/pjsip-apps/src/python$ python setup.py build
helper.mak:1: ../../../build.mak: No such file or directory
make: *** No rule to make target '../../../build.mak'.  Stop.
helper.mak:1: ../../../build.mak: No such file or directory
make: *** No rule to make target '../../../build.mak'.  Stop.
helper.mak:1: ../../../build.mak: No such file or directory
make: *** No rule to make target '../../../build.mak'.  Stop.
running build
running build_py
running build_ext

as root:

pjproject-2.1.0.0.ast20130823/pjsip-apps/src/python# python setup.py install
helper.mak:1: ../../../build.mak: No such file or directory
make: *** No rule to make target '../../../build.mak'.  Stop.
helper.mak:1: ../../../build.mak: No such file or directory
make: *** No rule to make target '../../../build.mak'.  Stop.
helper.mak:1: ../../../build.mak: No such file or directory
make: *** No rule to make target '../../../build.mak'.  Stop.
running install
running build
running build_py
running build_ext
running install_lib
running install_egg_info
Removing /usr/local/lib/python2.7/dist-packages/pjsua-2.1.0.egg-info
Writing /usr/local/lib/python2.7/dist-packages/pjsua-2.1.0.egg-info

And yet:

ython 2.7.10 (default, Jul  1 2015, 10:54:53)
[GCC 4.9.2] on linux2
Type help, copyright, credits or license for more information.
 import pjsua
Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/local/lib/python2.7/dist-packages/pjsua.py, line 59, in
module
import _pjsua
ImportError: /usr/local/lib/python2.7/dist-packages/_pjsua.so: undefined
symbol: pjsua_start
 import _pjsua
Traceback (most recent call last):
  File stdin, line 1, in module
ImportError: /usr/local/lib/python2.7/dist-packages/_pjsua.so: undefined
symbol: pjsua_start



I don't know what to make of this except to think that the maybe module
didn't build correctly?
I will keep looking into it and report back here if I find a way to make
it work.