Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195354 - dev-python/mysql-python-1.2.2 emerge fails - Extension instance has no attribute 'pyrex_c_in_temp'
Summary: dev-python/mysql-python-1.2.2 emerge fails - Extension instance has no attrib...
Status: RESOLVED DUPLICATE of bug 195466
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-10 10:56 UTC by Maciej Zieba
Modified: 2007-11-04 08:22 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Zieba 2007-10-10 10:56:04 UTC
Hi :-)

I've upgraded gcc to 4.2.1 and, following the upgrade guide, decided to run "emerge -e system; emerge -e world". Unfortunatelly the second command has failed while emerging mysql-python-1.2.2, here is the output:


>>> Unpacking source...
>>> Unpacking MySQL-python-1.2.2.tar.gz to /var/tmp/portage/dev-python/mysql-python-1.2.2/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-python/mysql-python-1.2.2/work/MySQL-python-1.2.2 ...
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.5
copying _mysql_exceptions.py -> build/lib.linux-x86_64-2.5
creating build/lib.linux-x86_64-2.5/MySQLdb
copying MySQLdb/__init__.py -> build/lib.linux-x86_64-2.5/MySQLdb
copying MySQLdb/converters.py -> build/lib.linux-x86_64-2.5/MySQLdb
copying MySQLdb/connections.py -> build/lib.linux-x86_64-2.5/MySQLdb
copying MySQLdb/cursors.py -> build/lib.linux-x86_64-2.5/MySQLdb
copying MySQLdb/release.py -> build/lib.linux-x86_64-2.5/MySQLdb
copying MySQLdb/times.py -> build/lib.linux-x86_64-2.5/MySQLdb
creating build/lib.linux-x86_64-2.5/MySQLdb/constants
copying MySQLdb/constants/__init__.py -> build/lib.linux-x86_64-2.5/MySQLdb/constants
copying MySQLdb/constants/CR.py -> build/lib.linux-x86_64-2.5/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-2.5/MySQLdb/constants
copying MySQLdb/constants/ER.py -> build/lib.linux-x86_64-2.5/MySQLdb/constants
copying MySQLdb/constants/FLAG.py -> build/lib.linux-x86_64-2.5/MySQLdb/constants
copying MySQLdb/constants/REFRESH.py -> build/lib.linux-x86_64-2.5/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py -> build/lib.linux-x86_64-2.5/MySQLdb/constants
running build_ext
Traceback (most recent call last):
  File "setup.py", line 19, in <module>
    setup(**metadata)
  File "/usr/lib64/python2.5/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib64/python2.5/distutils/dist.py", line 974, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/usr/lib64/python2.5/distutils/command/build.py", line 112, in run
    self.run_command(cmd_name)
  File "/usr/lib64/python2.5/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/usr/lib64/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/usr/lib64/python2.5/site-packages/setuptools/command/build_ext.py", line 46, in run
    _build_ext.run(self)
  File "/usr/lib64/python2.5/distutils/command/build_ext.py", line 290, in run
    self.build_extensions()
  File "/usr/lib64/python2.5/site-packages/Pyrex/Distutils/build_ext.py", line 81, in build_extensions
    ext.sources = self.pyrex_sources(ext.sources, ext)
  File "/usr/lib64/python2.5/site-packages/Pyrex/Distutils/build_ext.py", line 152, in pyrex_sources
    if not self.inplace and (self.pyrex_c_in_temp or extension.pyrex_c_in_temp):
AttributeError: Extension instance has no attribute 'pyrex_c_in_temp'
 *
 * ERROR: dev-python/mysql-python-1.2.2 failed.
 * Call stack:
 *          ebuild.sh, line 1687:  Called dyn_compile
 *          ebuild.sh, line 1025:  Called qa_call 'src_compile'
 *          ebuild.sh, line   44:  Called src_compile
 *          ebuild.sh, line 1369:  Called distutils_src_compile
 *   distutils.eclass, line   48:  Called die
 * The specific snippet of code:
 *      ${python} setup.py build "$@" || die "compilation failed"
 *  The die message:
 *   compilation failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-python/mysql-python-1.2.2/temp/build.log'.


I've also tried mysql-python-1.2.1_p2 and it emerges fine...

Here are the versions of packages, which could be relevant:
sys-devel/gcc-4.2.1
dev-lang/python-2.5.1-r2
dev-python/pyrex-0.9.6
dev-db/mysql-5.0.44-r1

Reproducible: Always
Comment 1 Ali Polatel (RETIRED) gentoo-dev 2007-10-11 07:42:54 UTC
pyrex-0.9.6 and newer versions have problems with setuptools.
I've masked it today until I can resolve the issue.
Please downgrade to pyrex-0.9.5.1a
Comment 2 René 'Necoro' Neumann 2007-10-15 23:14:22 UTC
Should be fixed with pyrex-0.9.6.2 and a small patch :) - see bug #195992

(btw... duplicate of bug #195466 :))
Comment 3 Ali Polatel (RETIRED) gentoo-dev 2007-11-04 08:22:45 UTC

*** This bug has been marked as a duplicate of bug 195466 ***