Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'string,': 0.05; 'subject:Python': 0.06; 'happily': 0.07; 'modules.': 0.07; 'python': 0.08; 'sys,': 0.09; 'undefined': 0.09; 'exception': 0.12; 'library': 0.15; 'angelico': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'ideas?': 0.16; 'importerror': 0.16; 'mercurial,': 0.16; 'naming': 0.16; 're,': 0.16; 'runs.': 0.16; 'text:': 0.16; 'math': 0.16; 'importing': 0.19; 'header:In- Reply-To:1': 0.21; 'issues.': 0.23; 'received:209.85.210.174': 0.23; 'received:mail-iy0-f174.google.com': 0.23; "i'm": 0.27; 'message-id:@mail.gmail.com': 0.28; 'seeing': 0.28; 'import': 0.29; 'unable': 0.30; 'to:addr:python-list': 0.33; "i've": 0.33; 'rather': 0.34; 'chris': 0.34; 'however,': 0.34; 'compilation': 0.35; 'using': 0.35; 'received:google.com': 0.37; 'something': 0.37; 'received:209.85': 0.37; 'think': 0.38; 'but': 0.38; 'subject:: ': 0.38; 'received:209': 0.39; 'to:addr:python.org': 0.39; 'results': 0.60; 'full': 0.63; 'straight': 0.63; 'link': 0.64; 'succeed': 0.73; '3.3': 0.84; 'citing': 0.84; 'inclusion': 0.84; 'subject:Link': 0.89 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=z2ivXLoCUlVbJlmPW2qqcC+o0VhqOewl8dry2ZbyHkM=; b=G8Gi8HRVgsHugeEqVXhxYoVQhkh0ohtzTD1QF2l4+fzLYPCvE0D8XeT0kZn1j+v+Dn RkHormgXU6cjhsugj3SchegBSDiMxVJXG4ODUs0ifmhUM3kTjPjdVW+m2O+HQKIvSjsp x2v17Lo41iFUcql5gfrk31UO7PUey7eblOtMI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=q+50xgKsUQnw+AApwebeXs+T4p+HvhL9Mh5QL0eS9yesJ/vD0s+tPY54Nd1d8s6+yF kUle6F9z+yBt0diUR0OPsBzWd+NpMiofDsbv+Z+0Ks0aBn6gZ6K8C2XF4sxse9263VrB gBgFJ+Ra7uAWjIFuP94oUI197yLJFtHb8lIIk= MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 25 May 2011 18:53:20 +1000 Subject: Re: Link errors embedding Python 3.2 From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 16 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1306313604 news.xs4all.nl 49045 [::ffff:82.94.164.166]:46548 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:6213 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