Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #10675
| From | Andreas Tille <andreas@an3as.eu> |
|---|---|
| Newsgroups | linux.debian.maint.python |
| Subject | Re: How to enable Python3 for python-freecontact |
| Date | 2018-07-04 09:00 +0200 |
| Message-ID | <w7JVD-5yM-1@gated-at.bofh.it> (permalink) |
| References | <w7x85-6cI-1@gated-at.bofh.it> <w7G1H-3a1-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Dear Lumin,
On Wed, Jul 04, 2018 at 02:26:36AM +0000, Lumin wrote:
> I'm not sure whether there is a better way to workaround this,
> but the following solution works fine
>
>
> - libraries = ['freecontact', 'boost_python'])]
> + libraries = ['freecontact', 'boost_python-py%d%d'%(sys.version_info[0], sys.version_info[1])])]
>
>
> works for all python versions, i.e. 2.7, 3.6, 3.7 .
Works perfectly for building the modules.
Unfortunately the test does not work for Python3. If I try inside
pbuilder chroot:
root:/build/python-freecontact-1.1# PYTHONPATH=.pybuild/cpython3_3.6_freecontact/build/ python3.6 test/test01.py
Traceback (most recent call last):
File "test/test01.py", line 87, in <module>
test_main()
File "test/test01.py", line 83, in test_main
test_support.run_unittest(MyTestCase1
AttributeError: module 'test.test_support' has no attribute 'run_unittest'
This also happens if I build without testing and after installing
the python3-freecontact package:
/python-freecontact(master) $ python3 test/test01.py
Traceback (most recent call last):
File "test/test01.py", line 87, in <module>
test_main()
File "test/test01.py", line 83, in test_main
test_support.run_unittest(MyTestCase1
AttributeError: module 'test.test_support' has no attribute 'run_unittest'
Any clue how to work around this?
Kind regards
Andreas.
--
http://fam-tille.de
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Find similar | Unroll thread
How to enable Python3 for python-freecontact Andreas Tille <andreas@an3as.eu> - 2018-07-03 19:20 +0200
Re: How to enable Python3 for python-freecontact Lumin <cdluminate@gmail.com> - 2018-07-04 04:50 +0200
Re: How to enable Python3 for python-freecontact Andreas Tille <andreas@an3as.eu> - 2018-07-04 09:00 +0200
csiph-web