Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #6213

Re: Link errors embedding Python 3.2

References <BANLkTimHCr06bTgPrj70NunLF2AnF=b+bw@mail.gmail.com>
Date 2011-05-25 18:53 +1000
Subject Re: Link errors embedding Python 3.2
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.2061.1306313604.9059.python-list@python.org> (permalink)

Show all headers | View raw


Followup. I'm now using Python 3.3 straight from Mercurial, and am
seeing the same issues. I've managed to get the compilation step to
succeed by naming the library for full inclusion and adding -lutil
-ldl (sounding rather Donizetti there), and my program runs. However,
it's unable to import all its modules. I can happily import re,
string, and sys, but importing math or time results in an ImportError
citing "undefined symbol: PyExc_ValueError". I think there's still
something I'm mucking up in the link process.

The exception is ImportError, with text:
'/usr/local/lib/python3.3/lib-dynload/time.cpython-33m.so: undefined
symbol: PyExc_ValueError'

Any ideas?

Chris Angelico

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Link errors embedding Python 3.2 Chris Angelico <rosuav@gmail.com> - 2011-05-25 18:53 +1000

csiph-web