Re: Error installing mxbase on ubuntu 12.04
"M.-A. Lemburg" <[email protected]> Fri, 20 Apr 2012 00:34:52 +0200
| Newsgroups | gmane.comp.python.egenix.user |
|---|---|
| Organization | eGenix.com Software GmbH; http://www.egenix.com/ |
| Message-ID | <[email protected]> |
M.-A. Lemburg wrote: > Leonardo Santagada wrote: >> On Thu, Apr 19, 2012 at 6:04 PM, M.-A. Lemburg <[email protected]> wrote: >>> Leonardo Santagada wrote: >>>> python 2.7.3 on ubuntu 12.04 beta2. >>> >>> The traceback looks like you don't have distutils installed or only >>> part of it. >>> >>> Try to do an "import distutils" or "import distutils.ccompiler" from >>> the Python prompt. >> >> I did and It worked, the problem is that it doesn't have customize_compiler > > Looks like this patch broke distutils in 2.7.3: > > http://hg.python.org/cpython/rev/6240ff5dfebe > > See http://bugs.python.org/issue13994 You can work around it by editing mxSetup and changing the import line to: from distutils.ccompiler import customize_compiler to from distutils.sysconfig import customize_compiler >>>> $ pip install egenix-mx-base >>>> Downloading/unpacking egenix-mx-base >>>> Running setup.py egg_info for package egenix-mx-base >>>> Traceback (most recent call last): >>>> File "<string>", line 14, in <module> >>>> File "/home/santagada/.virtualenvs/oerp/build/egenix-mx-base/setup.py", >>>> line 9, in <module> >>>> import egenix_mx_base >>>> File "egenix_mx_base.py", line 11, in <module> >>>> from mxSetup import mx_Extension, mx_version >>>> File "mxSetup.py", line 318, in <module> >>>> from distutils.ccompiler import customize_compiler >>>> ImportError: cannot import name customize_compiler >>>> Complete output from command python setup.py egg_info: >>>> Traceback (most recent call last): >>>> >>>> File "<string>", line 14, in <module> >>>> >>>> File "/home/santagada/.virtualenvs/oerp/build/egenix-mx-base/setup.py", >>>> line 9, in <module> >>>> >>>> import egenix_mx_base >>>> >>>> File "egenix_mx_base.py", line 11, in <module> >>>> >>>> from mxSetup import mx_Extension, mx_version >>>> >>>> File "mxSetup.py", line 318, in <module> >>>> >>>> from distutils.ccompiler import customize_compiler >>>> >>>> ImportError: cannot import name customize_compiler >>>> >>> >>> -- >>> Marc-Andre Lemburg >>> eGenix.com >>> >>> Professional Python Services directly from the Source (#1, Apr 19 2012) >>>>>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>>>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>>>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ >>> ________________________________________________________________________ >>> 2012-04-28: PythonCamp 2012, Cologne, Germany 9 days to go >>> >>> ::: Try our new mxODBC.Connect Python Database Interface for free ! :::: >>> >>> >>> eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 >>> D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg >>> Registered at Amtsgericht Duesseldorf: HRB 46611 >>> http://www.egenix.com/company/contact/ >> >> >> > -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Apr 20 2012) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2012-04-28: PythonCamp 2012, Cologne, Germany 8 days to go ::: Try our new mxODBC.Connect Python Database Interface for free ! :::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/ _______________________________________________________________________ eGenix.com User Mailing List http://www.egenix.com/ https://www.egenix.com/mailman/listinfo/egenix-users