Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] ImportError: No module named MySQLdb
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
bmarinho
n00b
n00b


Joined: 28 Jul 2006
Posts: 22
Location: Porto, Portugal

PostPosted: Thu Nov 22, 2012 9:39 am    Post subject: [SOLVED] ImportError: No module named MySQLdb Reply with quote

Hello all,

If anyone could help me solving this problem. I need to check some remote mysql records using a pyhton script and i'm experiencing a problem using MySQLdb library for python.

check_dns.py

Code:
#!/usr/bin/python

import MySQLdb
import sys
import getopt


... and i'm getting this error.

Code:
svmlidns01 scripts # ./check_dns.py
Traceback (most recent call last):
  File "./check_dns", line 3, in <module>
    import MySQLdb
ImportError: No module named MySQLdb


After some researching i found that i needed to emerge both packages "mysql-python" and "setuptools".

emerge setuptools

Code:
Calculating dependencies  ... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-python/setuptools-0.6.21
 * distribute-0.6.21.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...         [ ok ]
>>> Unpacking source...
>>> Unpacking distribute-0.6.21.tar.gz to /var/tmp/portage/dev-python/setuptools-0.6.21/work
>>> Source unpacked in /var/tmp/portage/dev-python/setuptools-0.6.21/work
>>> Preparing source in /var/tmp/portage/dev-python/setuptools-0.6.21/work/distribute-0.6.21 ...
 * Applying setuptools-0.6_rc7-noexe.patch ...
 [ ok ]
 * Applying distribute-0.6.16-fix_deprecation_warnings.patch ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/setuptools-0.6.21/work/distribute-0.6.21 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/setuptools-0.6.21/work/distribute-0.6.21 ...
 * Building of dev-python/setuptools-0.6.21 with CPython 2.7...
python2.7 setup.py build -b build-2.7
running build
running build_py
creating build-2.7
creating build-2.7/lib
copying pkg_resources.py -> build-2.7/lib
copying easy_install.py -> build-2.7/lib
copying site.py -> build-2.7/lib
creating build-2.7/lib/setuptools
copying setuptools/package_index.py -> build-2.7/lib/setuptools
copying setuptools/sandbox.py -> build-2.7/lib/setuptools
copying setuptools/extension.py -> build-2.7/lib/setuptools
copying setuptools/__init__.py -> build-2.7/lib/setuptools
copying setuptools/archive_util.py -> build-2.7/lib/setuptools
copying setuptools/depends.py -> build-2.7/lib/setuptools
copying setuptools/dist.py -> build-2.7/lib/setuptools
creating build-2.7/lib/setuptools/tests
copying setuptools/tests/test_develop.py -> build-2.7/lib/setuptools/tests
copying setuptools/tests/test_upload_docs.py -> build-2.7/lib/setuptools/tests
copying setuptools/tests/test_easy_install.py -> build-2.7/lib/setuptools/tests
copying setuptools/tests/test_sandbox.py -> build-2.7/lib/setuptools/tests
copying setuptools/tests/server.py -> build-2.7/lib/setuptools/tests
copying setuptools/tests/test_build_ext.py -> build-2.7/lib/setuptools/tests
copying setuptools/tests/test_resources.py -> build-2.7/lib/setuptools/tests
copying setuptools/tests/__init__.py -> build-2.7/lib/setuptools/tests
copying setuptools/tests/doctest.py -> build-2.7/lib/setuptools/tests
creating build-2.7/lib/setuptools/command
copying setuptools/command/bdist_rpm.py -> build-2.7/lib/setuptools/command
copying setuptools/command/register.py -> build-2.7/lib/setuptools/command
copying setuptools/command/build_py.py -> build-2.7/lib/setuptools/command
copying setuptools/command/upload.py -> build-2.7/lib/setuptools/command
copying setuptools/command/install.py -> build-2.7/lib/setuptools/command
copying setuptools/command/bdist_egg.py -> build-2.7/lib/setuptools/command
copying setuptools/command/upload_docs.py -> build-2.7/lib/setuptools/command
copying setuptools/command/develop.py -> build-2.7/lib/setuptools/command
copying setuptools/command/alias.py -> build-2.7/lib/setuptools/command
copying setuptools/command/egg_info.py -> build-2.7/lib/setuptools/command
copying setuptools/command/build_ext.py -> build-2.7/lib/setuptools/command
copying setuptools/command/install_egg_info.py -> build-2.7/lib/setuptools/command
copying setuptools/command/rotate.py -> build-2.7/lib/setuptools/command
copying setuptools/command/install_lib.py -> build-2.7/lib/setuptools/command
copying setuptools/command/__init__.py -> build-2.7/lib/setuptools/command
copying setuptools/command/test.py -> build-2.7/lib/setuptools/command
copying setuptools/command/easy_install.py -> build-2.7/lib/setuptools/command
copying setuptools/command/install_scripts.py -> build-2.7/lib/setuptools/command
copying setuptools/command/saveopts.py -> build-2.7/lib/setuptools/command
copying setuptools/command/setopt.py -> build-2.7/lib/setuptools/command
copying setuptools/command/sdist.py -> build-2.7/lib/setuptools/command
copying setuptools/command/bdist_wininst.py -> build-2.7/lib/setuptools/command
warning: build_py: byte-compiling is disabled, skipping.

 * Building of dev-python/setuptools-0.6.21 with CPython 3.2...
python3.2 setup.py build -b build-3.2
creating build
creating build/src
creating build/src/docs
creating build/src/docs/_templates
creating build/src/docs/_theme
creating build/src/docs/_theme/nature
creating build/src/docs/_theme/nature/static
creating build/src/docs/build
creating build/src/docs/build/html
creating build/src/docs/build/html/_sources
creating build/src/docs/build/html/_static
creating build/src/setuptools
creating build/src/setuptools/command
creating build/src/setuptools/tests
creating build/src/setuptools/tests/indexes
creating build/src/setuptools/tests/indexes/test_links_priority
creating build/src/setuptools/tests/indexes/test_links_priority/simple
creating build/src/setuptools/tests/indexes/test_links_priority/simple/foobar
creating build/src/tests
creating build/src/tests/shlib_test
copying setuptools/package_index.py -> build/src/setuptools
copying setuptools/sandbox.py -> build/src/setuptools
copying setuptools/extension.py -> build/src/setuptools
copying setuptools/__init__.py -> build/src/setuptools
copying setuptools/archive_util.py -> build/src/setuptools
copying setuptools/depends.py -> build/src/setuptools
copying setuptools/dist.py -> build/src/setuptools
copying setuptools/command/bdist_rpm.py -> build/src/setuptools/command
copying setuptools/command/register.py -> build/src/setuptools/command
copying setuptools/command/build_py.py -> build/src/setuptools/command
copying setuptools/command/upload.py -> build/src/setuptools/command
copying setuptools/command/install.py -> build/src/setuptools/command
copying setuptools/command/bdist_egg.py -> build/src/setuptools/command
copying setuptools/command/upload_docs.py -> build/src/setuptools/command
copying setuptools/command/develop.py -> build/src/setuptools/command
copying setuptools/command/alias.py -> build/src/setuptools/command
copying setuptools/command/egg_info.py -> build/src/setuptools/command
copying setuptools/command/build_ext.py -> build/src/setuptools/command
copying setuptools/command/install_egg_info.py -> build/src/setuptools/command
copying setuptools/command/rotate.py -> build/src/setuptools/command
copying setuptools/command/install_lib.py -> build/src/setuptools/command
copying setuptools/command/__init__.py -> build/src/setuptools/command
copying setuptools/command/test.py -> build/src/setuptools/command
copying setuptools/command/easy_install.py -> build/src/setuptools/command
copying setuptools/command/install_scripts.py -> build/src/setuptools/command
copying setuptools/command/saveopts.py -> build/src/setuptools/command
copying setuptools/command/setopt.py -> build/src/setuptools/command
copying setuptools/command/sdist.py -> build/src/setuptools/command
copying setuptools/command/bdist_wininst.py -> build/src/setuptools/command
copying setuptools/tests/test_develop.py -> build/src/setuptools/tests
copying setuptools/tests/test_upload_docs.py -> build/src/setuptools/tests
copying setuptools/tests/test_easy_install.py -> build/src/setuptools/tests
copying setuptools/tests/test_sandbox.py -> build/src/setuptools/tests
copying setuptools/tests/server.py -> build/src/setuptools/tests
copying setuptools/tests/test_build_ext.py -> build/src/setuptools/tests
copying setuptools/tests/test_resources.py -> build/src/setuptools/tests
copying setuptools/tests/__init__.py -> build/src/setuptools/tests
copying setuptools/tests/doctest.py -> build/src/setuptools/tests
copying setuptools/tests/win_script_wrapper.txt -> build/src/setuptools/tests
copying setuptools/cli.exe -> build/src/setuptools
copying setuptools/gui.exe -> build/src/setuptools
copying tests/install_test.py -> build/src/tests
copying tests/manual_test.py -> build/src/tests
copying tests/test_distribute_setup.py -> build/src/tests
copying tests/shlib_test/setup.py -> build/src/tests/shlib_test
copying tests/shlib_test/test_hello.py -> build/src/tests/shlib_test
copying tests/shlib_test/hello.c -> build/src/tests/shlib_test
copying tests/shlib_test/hellolib.c -> build/src/tests/shlib_test
copying tests/shlib_test/hello.pyx -> build/src/tests/shlib_test
copying tests/api_tests.txt -> build/src/tests
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Refactored build/src/tests/api_tests.txt
--- build/src/tests/api_tests.txt   (original)
+++ build/src/tests/api_tests.txt   (refactored)
@@ -39,7 +39,7 @@
     >>> dist.py_version == sys.version[:3]
     True
 
-    >>> print dist.platform
+    >>> print(dist.platform)
     None
 
 Including various computed attributes::
@@ -199,7 +199,7 @@
 You can ask a WorkingSet to ``find()`` a distribution matching a requirement::
 
     >>> from pkg_resources import Requirement
-    >>> print ws.find(Requirement.parse("Foo==1.0"))    # no match, return None
+    >>> print(ws.find(Requirement.parse("Foo==1.0")))    # no match, return None
     None
 
     >>> ws.find(Requirement.parse("Bar==0.9"))  # match, return distribution
@@ -211,7 +211,7 @@
     >>> try:
     ...     ws.find(Requirement.parse("Bar==1.0"))
     ... except VersionConflict:
-    ...     print 'ok'
+    ...     print('ok')
     ok
 
 You can subscribe a callback function to receive notifications whenever a new
@@ -219,7 +219,7 @@
 once for each existing distribution in the working set, and then is called
 again for new distributions added thereafter::
 
-    >>> def added(dist): print "Added", dist
+    >>> def added(dist): print("Added", dist)
     >>> ws.subscribe(added)
     Added Bar 0.9
     >>> foo12 = Distribution(project_name="Foo", version="1.2", location="f12")
RefactoringTool: Files that were modified:
RefactoringTool: build/src/tests/api_tests.txt
copying setuptools/tests/indexes/test_links_priority/external.html -> build/src/setuptools/tests/indexes/test_links_priority
copying setuptools/tests/indexes/test_links_priority/simple/foobar/index.html -> build/src/setuptools/tests/indexes/test_links_priority/simple/foobar
copying docs/conf.py -> build/src/docs
copying docs/roadmap.txt -> build/src/docs
copying docs/pkg_resources.txt -> build/src/docs
copying docs/index.txt -> build/src/docs
copying docs/using.txt -> build/src/docs
copying docs/setuptools.txt -> build/src/docs
copying docs/python3.txt -> build/src/docs
copying docs/easy_install.txt -> build/src/docs
copying docs/build/html/_sources/roadmap.txt -> build/src/docs/build/html/_sources
copying docs/build/html/_sources/pkg_resources.txt -> build/src/docs/build/html/_sources
copying docs/build/html/_sources/index.txt -> build/src/docs/build/html/_sources
copying docs/build/html/_sources/using.txt -> build/src/docs/build/html/_sources
copying docs/build/html/_sources/setuptools.txt -> build/src/docs/build/html/_sources
copying docs/build/html/_sources/python3.txt -> build/src/docs/build/html/_sources
copying docs/build/html/_sources/easy_install.txt -> build/src/docs/build/html/_sources
copying docs/_theme/nature/theme.conf -> build/src/docs/_theme/nature
copying docs/_theme/nature/static/pygments.css -> build/src/docs/_theme/nature/static
copying docs/build/html/_static/pygments.css -> build/src/docs/build/html/_static
copying docs/build/html/_static/nature.css -> build/src/docs/build/html/_static
copying docs/build/html/_static/basic.css -> build/src/docs/build/html/_static
copying docs/_theme/nature/static/nature.css_t -> build/src/docs/_theme/nature/static
copying docs/Makefile -> build/src/docs
copying docs/_templates/indexsidebar.html -> build/src/docs/_templates
copying pkg_resources.py -> build/src
copying setup.py -> build/src
copying site.py -> build/src
copying distribute_setup.py -> build/src
copying easy_install.py -> build/src
copying README.txt -> build/src
copying CONTRIBUTORS.txt -> build/src
copying CHANGES.txt -> build/src
copying DEVGUIDE.txt -> build/src
copying MANIFEST.in -> build/src
copying launcher.c -> build/src
Skipping implicit fixer: buffer
Skipping implicit fixer: idioms
Skipping implicit fixer: set_literal
Skipping implicit fixer: ws_comma
running build
running build_py
creating build-3.2
creating build-3.2/lib
copying build/src/pkg_resources.py -> build-3.2/lib
copying build/src/easy_install.py -> build-3.2/lib
copying build/src/site.py -> build-3.2/lib
creating build-3.2/lib/setuptools
copying build/src/setuptools/package_index.py -> build-3.2/lib/setuptools
copying build/src/setuptools/sandbox.py -> build-3.2/lib/setuptools
copying build/src/setuptools/extension.py -> build-3.2/lib/setuptools
copying build/src/setuptools/__init__.py -> build-3.2/lib/setuptools
copying build/src/setuptools/archive_util.py -> build-3.2/lib/setuptools
copying build/src/setuptools/depends.py -> build-3.2/lib/setuptools
copying build/src/setuptools/dist.py -> build-3.2/lib/setuptools
creating build-3.2/lib/setuptools/tests
copying build/src/setuptools/tests/test_develop.py -> build-3.2/lib/setuptools/tests
copying build/src/setuptools/tests/test_upload_docs.py -> build-3.2/lib/setuptools/tests
copying build/src/setuptools/tests/test_easy_install.py -> build-3.2/lib/setuptools/tests
copying build/src/setuptools/tests/test_sandbox.py -> build-3.2/lib/setuptools/tests
copying build/src/setuptools/tests/server.py -> build-3.2/lib/setuptools/tests
copying build/src/setuptools/tests/test_build_ext.py -> build-3.2/lib/setuptools/tests
copying build/src/setuptools/tests/test_resources.py -> build-3.2/lib/setuptools/tests
copying build/src/setuptools/tests/__init__.py -> build-3.2/lib/setuptools/tests
copying build/src/setuptools/tests/doctest.py -> build-3.2/lib/setuptools/tests
creating build-3.2/lib/setuptools/command
copying build/src/setuptools/command/bdist_rpm.py -> build-3.2/lib/setuptools/command
copying build/src/setuptools/command/register.py -> build-3.2/lib/setuptools/command
copying build/src/setuptools/command/build_py.py -> build-3.2/lib/setuptools/command
copying build/src/setuptools/command/upload.py -> build-3.2/lib/setuptools/command
copying build/src/setuptools/command/install.py -> build-3.2/lib/setuptools/command
copying build/src/setuptools/command/bdist_egg.py -> build-3.2/lib/setuptools/command
copying build/src/setuptools/command/upload_docs.py -> build-3.2/lib/setuptools/command
copying build/src/setuptools/command/develop.py -> build-3.2/lib/setuptools/command
copying build/src/setuptools/command/alias.py -> build-3.2/lib/setuptools/command
copying build/src/setuptools/command/egg_info.py -> build-3.2/lib/setuptools/command
copying build/src/setuptools/command/build_ext.py -> build-3.2/lib/setuptools/command
copying build/src/setuptools/command/install_egg_info.py -> build-3.2/lib/setuptools/command
copying build/src/setuptools/command/rotate.py -> build-3.2/lib/setuptools/command
copying build/src/setuptools/command/install_lib.py -> build-3.2/lib/setuptools/command
copying build/src/setuptools/command/__init__.py -> build-3.2/lib/setuptools/command
copying build/src/setuptools/command/test.py -> build-3.2/lib/setuptools/command
copying build/src/setuptools/command/easy_install.py -> build-3.2/lib/setuptools/command
copying build/src/setuptools/command/install_scripts.py -> build-3.2/lib/setuptools/command
copying build/src/setuptools/command/saveopts.py -> build-3.2/lib/setuptools/command
copying build/src/setuptools/command/setopt.py -> build-3.2/lib/setuptools/command
copying build/src/setuptools/command/sdist.py -> build-3.2/lib/setuptools/command
copying build/src/setuptools/command/bdist_wininst.py -> build-3.2/lib/setuptools/command
warning: build_py: byte-compiling is disabled, skipping.

>>> Source compiled.
>>> Test phase [not enabled]: dev-python/setuptools-0.6.21

>>> Install setuptools-0.6.21 into /var/tmp/portage/dev-python/setuptools-0.6.21/image/ category dev-python
 * Installation of dev-python/setuptools-0.6.21 with CPython 2.7...
python2.7 setup.py build -b build-2.7 install --no-compile --root=/var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7
running build
running build_py
warning: build_py: byte-compiling is disabled, skipping.

running install
running install_lib
creating /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images
creating /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7
creating /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr
creating /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib
creating /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7
creating /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages
creating /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools
copying build-2.7/lib/setuptools/package_index.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools
creating /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/tests
copying build-2.7/lib/setuptools/tests/test_develop.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/tests
copying build-2.7/lib/setuptools/tests/test_upload_docs.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/tests
copying build-2.7/lib/setuptools/tests/test_easy_install.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/tests
copying build-2.7/lib/setuptools/tests/test_sandbox.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/tests
copying build-2.7/lib/setuptools/tests/server.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/tests
copying build-2.7/lib/setuptools/tests/test_build_ext.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/tests
copying build-2.7/lib/setuptools/tests/test_resources.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/tests
copying build-2.7/lib/setuptools/tests/__init__.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/tests
copying build-2.7/lib/setuptools/tests/doctest.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/tests
copying build-2.7/lib/setuptools/sandbox.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools
copying build-2.7/lib/setuptools/extension.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools
creating /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/command
copying build-2.7/lib/setuptools/command/bdist_rpm.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/command
copying build-2.7/lib/setuptools/command/register.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/command
copying build-2.7/lib/setuptools/command/build_py.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/command
copying build-2.7/lib/setuptools/command/upload.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/command
copying build-2.7/lib/setuptools/command/install.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/command
copying build-2.7/lib/setuptools/command/bdist_egg.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/command
copying build-2.7/lib/setuptools/command/upload_docs.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/command
copying build-2.7/lib/setuptools/command/develop.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/command
copying build-2.7/lib/setuptools/command/alias.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/command
copying build-2.7/lib/setuptools/command/egg_info.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/command
copying build-2.7/lib/setuptools/command/build_ext.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/command
copying build-2.7/lib/setuptools/command/install_egg_info.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/command
copying build-2.7/lib/setuptools/command/rotate.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/command
copying build-2.7/lib/setuptools/command/install_lib.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/command
copying build-2.7/lib/setuptools/command/__init__.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/command
copying build-2.7/lib/setuptools/command/test.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/command
copying build-2.7/lib/setuptools/command/easy_install.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/command
copying build-2.7/lib/setuptools/command/install_scripts.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/command
copying build-2.7/lib/setuptools/command/saveopts.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/command
copying build-2.7/lib/setuptools/command/setopt.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/command
copying build-2.7/lib/setuptools/command/sdist.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/command
copying build-2.7/lib/setuptools/command/bdist_wininst.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools/command
copying build-2.7/lib/setuptools/__init__.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools
copying build-2.7/lib/setuptools/archive_util.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools
copying build-2.7/lib/setuptools/depends.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools
copying build-2.7/lib/setuptools/dist.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/setuptools
copying build-2.7/lib/pkg_resources.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages
copying build-2.7/lib/site.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages
copying build-2.7/lib/easy_install.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages
warning: install_lib: byte-compiling is disabled, skipping.

running install_egg_info
running egg_info
writing distribute.egg-info/PKG-INFO
writing top-level names to distribute.egg-info/top_level.txt
writing dependency_links to distribute.egg-info/dependency_links.txt
writing entry points to distribute.egg-info/entry_points.txt
reading manifest file 'distribute.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'distribute.egg-info/SOURCES.txt'
Copying distribute.egg-info to /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/lib/python2.7/site-packages/distribute-0.6.21-py2.7.egg-info
running install_scripts
Installing easy_install script to /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/2.7/usr/bin
 * Installation of dev-python/setuptools-0.6.21 with CPython 3.2...
python3.2 setup.py build -b build-3.2 install --no-compile --root=/var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2
running build
running build_py
warning: build_py: byte-compiling is disabled, skipping.

running install
running install_lib
creating /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2
creating /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr
creating /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib
creating /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2
creating /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages
creating /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools
copying build-3.2/lib/setuptools/package_index.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools
creating /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/tests
copying build-3.2/lib/setuptools/tests/test_develop.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/tests
copying build-3.2/lib/setuptools/tests/test_upload_docs.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/tests
copying build-3.2/lib/setuptools/tests/test_easy_install.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/tests
copying build-3.2/lib/setuptools/tests/test_sandbox.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/tests
copying build-3.2/lib/setuptools/tests/server.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/tests
copying build-3.2/lib/setuptools/tests/test_build_ext.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/tests
copying build-3.2/lib/setuptools/tests/test_resources.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/tests
copying build-3.2/lib/setuptools/tests/__init__.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/tests
copying build-3.2/lib/setuptools/tests/doctest.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/tests
copying build-3.2/lib/setuptools/sandbox.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools
copying build-3.2/lib/setuptools/extension.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools
creating /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/command
copying build-3.2/lib/setuptools/command/bdist_rpm.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/command
copying build-3.2/lib/setuptools/command/register.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/command
copying build-3.2/lib/setuptools/command/build_py.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/command
copying build-3.2/lib/setuptools/command/upload.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/command
copying build-3.2/lib/setuptools/command/install.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/command
copying build-3.2/lib/setuptools/command/bdist_egg.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/command
copying build-3.2/lib/setuptools/command/upload_docs.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/command
copying build-3.2/lib/setuptools/command/develop.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/command
copying build-3.2/lib/setuptools/command/alias.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/command
copying build-3.2/lib/setuptools/command/egg_info.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/command
copying build-3.2/lib/setuptools/command/build_ext.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/command
copying build-3.2/lib/setuptools/command/install_egg_info.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/command
copying build-3.2/lib/setuptools/command/rotate.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/command
copying build-3.2/lib/setuptools/command/install_lib.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/command
copying build-3.2/lib/setuptools/command/__init__.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/command
copying build-3.2/lib/setuptools/command/test.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/command
copying build-3.2/lib/setuptools/command/easy_install.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/command
copying build-3.2/lib/setuptools/command/install_scripts.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/command
copying build-3.2/lib/setuptools/command/saveopts.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/command
copying build-3.2/lib/setuptools/command/setopt.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/command
copying build-3.2/lib/setuptools/command/sdist.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/command
copying build-3.2/lib/setuptools/command/bdist_wininst.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools/command
copying build-3.2/lib/setuptools/__init__.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools
copying build-3.2/lib/setuptools/archive_util.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools
copying build-3.2/lib/setuptools/depends.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools
copying build-3.2/lib/setuptools/dist.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/setuptools
copying build-3.2/lib/pkg_resources.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages
copying build-3.2/lib/site.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages
copying build-3.2/lib/easy_install.py -> /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages
warning: install_lib: byte-compiling is disabled, skipping.

running install_egg_info
running egg_info
writing distribute.egg-info/PKG-INFO
writing top-level names to distribute.egg-info/top_level.txt
writing dependency_links to distribute.egg-info/dependency_links.txt
writing entry points to distribute.egg-info/entry_points.txt
reading manifest file 'distribute.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'distribute.egg-info/SOURCES.txt'
Copying distribute.egg-info to /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/lib/python3.2/site-packages/distribute-0.6.21-py3.2.egg-info
running install_scripts
Installing easy_install script to /var/tmp/portage/dev-python/setuptools-0.6.21/temp/images/3.2/usr/bin
 * Generating '/usr/bin/easy_install' wrapper script
>>> Completed installing setuptools-0.6.21 into /var/tmp/portage/dev-python/setuptools-0.6.21/image/


>>> Installing (1 of 1) dev-python/setuptools-0.6.21
 * Compilation and optimization of Python modules for CPython 2.7 ...
 [ ok ]
 * Compilation and optimization of Python modules for CPython 3.2 ...
 [ ok ]
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.


... then emerged mysql-python.

Code:
Calculating dependencies  ... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-python/mysql-python-1.2.3
 * MySQL-python-1.2.3.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...        [ ok ]
>>> Unpacking source...
>>> Unpacking MySQL-python-1.2.3.tar.gz to /var/tmp/portage/dev-python/mysql-python-1.2.3/work
>>> Source unpacked in /var/tmp/portage/dev-python/mysql-python-1.2.3/work
>>> Preparing source in /var/tmp/portage/dev-python/mysql-python-1.2.3/work/MySQL-python-1.2.3 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/mysql-python-1.2.3/work/MySQL-python-1.2.3 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/mysql-python-1.2.3/work/MySQL-python-1.2.3 ...
 * Building of dev-python/mysql-python-1.2.3 with CPython 2.7...
python2.7 setup.py build -b build-2.7
running build
running build_py
creating build-2.7
creating build-2.7/lib.linux-i686-2.7
copying _mysql_exceptions.py -> build-2.7/lib.linux-i686-2.7
creating build-2.7/lib.linux-i686-2.7/MySQLdb
copying MySQLdb/__init__.py -> build-2.7/lib.linux-i686-2.7/MySQLdb
copying MySQLdb/converters.py -> build-2.7/lib.linux-i686-2.7/MySQLdb
copying MySQLdb/connections.py -> build-2.7/lib.linux-i686-2.7/MySQLdb
copying MySQLdb/cursors.py -> build-2.7/lib.linux-i686-2.7/MySQLdb
copying MySQLdb/release.py -> build-2.7/lib.linux-i686-2.7/MySQLdb
copying MySQLdb/times.py -> build-2.7/lib.linux-i686-2.7/MySQLdb
creating build-2.7/lib.linux-i686-2.7/MySQLdb/constants
copying MySQLdb/constants/__init__.py -> build-2.7/lib.linux-i686-2.7/MySQLdb/constants
copying MySQLdb/constants/CR.py -> build-2.7/lib.linux-i686-2.7/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py -> build-2.7/lib.linux-i686-2.7/MySQLdb/constants
copying MySQLdb/constants/ER.py -> build-2.7/lib.linux-i686-2.7/MySQLdb/constants
copying MySQLdb/constants/FLAG.py -> build-2.7/lib.linux-i686-2.7/MySQLdb/constants
copying MySQLdb/constants/REFRESH.py -> build-2.7/lib.linux-i686-2.7/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py -> build-2.7/lib.linux-i686-2.7/MySQLdb/constants
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building '_mysql' extension
creating build-2.7/temp.linux-i686-2.7
i686-pc-linux-gnu-gcc -pthread -O2 -march=i686 -pipe -fno-strict-aliasing -fPIC -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/usr/include/mysql -I/usr/include/python2.7 -c _mysql.c -o build-2.7/temp.linux-i686-2.7/_mysql.o -DHAVE_ERRNO_AS_DEFINE=1 -DUNIV_LINUX -DUNIV_LINUX
In file included from _mysql.c:36:0:
/usr/include/mysql/my_config.h:1088:0: warning: "HAVE_WCSCOLL" redefined
/usr/include/python2.7/pyconfig.h:890:0: note: this is the location of the previous definition
i686-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,--as-needed -O2 -march=i686 -pipe -fno-strict-aliasing build-2.7/temp.linux-i686-2.7/_mysql.o -L/usr/lib/mysql -L/usr//lib -L/usr/lib/ -L/usr/lib -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lpthread -lssl -lcrypto -lpython2.7 -o build-2.7/lib.linux-i686-2.7/_mysql.so
>>> Source compiled.
>>> Test phase [not enabled]: dev-python/mysql-python-1.2.3

>>> Install mysql-python-1.2.3 into /var/tmp/portage/dev-python/mysql-python-1.2.3/image/ category dev-python
 * Installation of dev-python/mysql-python-1.2.3 with CPython 2.7...
python2.7 setup.py build -b build-2.7 install --no-compile --root=/var/tmp/portage/dev-python/mysql-python-1.2.3/temp/images/2.7
running build
running build_py
copying MySQLdb/release.py -> build-2.7/lib.linux-i686-2.7/MySQLdb
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
running install
running install_lib
creating /var/tmp/portage/dev-python/mysql-python-1.2.3/temp/images
creating /var/tmp/portage/dev-python/mysql-python-1.2.3/temp/images/2.7
creating /var/tmp/portage/dev-python/mysql-python-1.2.3/temp/images/2.7/usr
creating /var/tmp/portage/dev-python/mysql-python-1.2.3/temp/images/2.7/usr/lib
creating /var/tmp/portage/dev-python/mysql-python-1.2.3/temp/images/2.7/usr/lib/python2.7
creating /var/tmp/portage/dev-python/mysql-python-1.2.3/temp/images/2.7/usr/lib/python2.7/site-packages
copying build-2.7/lib.linux-i686-2.7/_mysql_exceptions.py -> /var/tmp/portage/dev-python/mysql-python-1.2.3/temp/images/2.7/usr/lib/python2.7/site-packages
copying build-2.7/lib.linux-i686-2.7/_mysql.so -> /var/tmp/portage/dev-python/mysql-python-1.2.3/temp/images/2.7/usr/lib/python2.7/site-packages
creating /var/tmp/portage/dev-python/mysql-python-1.2.3/temp/images/2.7/usr/lib/python2.7/site-packages/MySQLdb
creating /var/tmp/portage/dev-python/mysql-python-1.2.3/temp/images/2.7/usr/lib/python2.7/site-packages/MySQLdb/constants
copying build-2.7/lib.linux-i686-2.7/MySQLdb/constants/FIELD_TYPE.py -> /var/tmp/portage/dev-python/mysql-python-1.2.3/temp/images/2.7/usr/lib/python2.7/site-packages/MySQLdb/constants
copying build-2.7/lib.linux-i686-2.7/MySQLdb/constants/CR.py -> /var/tmp/portage/dev-python/mysql-python-1.2.3/temp/images/2.7/usr/lib/python2.7/site-packages/MySQLdb/constants
copying build-2.7/lib.linux-i686-2.7/MySQLdb/constants/ER.py -> /var/tmp/portage/dev-python/mysql-python-1.2.3/temp/images/2.7/usr/lib/python2.7/site-packages/MySQLdb/constants
copying build-2.7/lib.linux-i686-2.7/MySQLdb/constants/REFRESH.py -> /var/tmp/portage/dev-python/mysql-python-1.2.3/temp/images/2.7/usr/lib/python2.7/site-packages/MySQLdb/constants
copying build-2.7/lib.linux-i686-2.7/MySQLdb/constants/__init__.py -> /var/tmp/portage/dev-python/mysql-python-1.2.3/temp/images/2.7/usr/lib/python2.7/site-packages/MySQLdb/constants
copying build-2.7/lib.linux-i686-2.7/MySQLdb/constants/FLAG.py -> /var/tmp/portage/dev-python/mysql-python-1.2.3/temp/images/2.7/usr/lib/python2.7/site-packages/MySQLdb/constants
copying build-2.7/lib.linux-i686-2.7/MySQLdb/constants/CLIENT.py -> /var/tmp/portage/dev-python/mysql-python-1.2.3/temp/images/2.7/usr/lib/python2.7/site-packages/MySQLdb/constants
copying build-2.7/lib.linux-i686-2.7/MySQLdb/connections.py -> /var/tmp/portage/dev-python/mysql-python-1.2.3/temp/images/2.7/usr/lib/python2.7/site-packages/MySQLdb
copying build-2.7/lib.linux-i686-2.7/MySQLdb/release.py -> /var/tmp/portage/dev-python/mysql-python-1.2.3/temp/images/2.7/usr/lib/python2.7/site-packages/MySQLdb
copying build-2.7/lib.linux-i686-2.7/MySQLdb/times.py -> /var/tmp/portage/dev-python/mysql-python-1.2.3/temp/images/2.7/usr/lib/python2.7/site-packages/MySQLdb
copying build-2.7/lib.linux-i686-2.7/MySQLdb/converters.py -> /var/tmp/portage/dev-python/mysql-python-1.2.3/temp/images/2.7/usr/lib/python2.7/site-packages/MySQLdb
copying build-2.7/lib.linux-i686-2.7/MySQLdb/__init__.py -> /var/tmp/portage/dev-python/mysql-python-1.2.3/temp/images/2.7/usr/lib/python2.7/site-packages/MySQLdb
copying build-2.7/lib.linux-i686-2.7/MySQLdb/cursors.py -> /var/tmp/portage/dev-python/mysql-python-1.2.3/temp/images/2.7/usr/lib/python2.7/site-packages/MySQLdb
warning: install_lib: byte-compiling is disabled, skipping.

running install_egg_info
running egg_info
writing MySQL_python.egg-info/PKG-INFO
writing top-level names to MySQL_python.egg-info/top_level.txt
writing dependency_links to MySQL_python.egg-info/dependency_links.txt
reading manifest file 'MySQL_python.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'MANIFEST'
warning: no files found matching 'ChangeLog'
warning: no files found matching 'GPL'
writing manifest file 'MySQL_python.egg-info/SOURCES.txt'
Copying MySQL_python.egg-info to /var/tmp/portage/dev-python/mysql-python-1.2.3/temp/images/2.7/usr/lib/python2.7/site-packages/MySQL_python-1.2.3-py2.7.egg-info
running install_scripts
>>> Completed installing mysql-python-1.2.3 into /var/tmp/portage/dev-python/mysql-python-1.2.3/image/

strip: i686-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line
   usr/lib/python2.7/site-packages/_mysql.so

>>> Installing (1 of 1) dev-python/mysql-python-1.2.3
 * Compilation and optimization of Python modules for CPython 2.7 ...
 [ ok ]
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.


I have mysql emerged too in this system...

Code:
svmlidns01 scripts # emerge -pv mysql                     

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-db/mysql-5.1.66  USE="community perl ssl -berkdb -big-tables -cluster -debug -embedded -extraengine -latin1 -max-idx-128 -minimal -pbxt -profiling (-selinux) -static -test -xtradb" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB


... and my python version is:

Code:
svmlidns01 scripts # python --version
Python 3.2.3


So everything looks good to me but when i try to run the "check_dns.py" script again the same error is shown to me. Any ideia what i'm missing here?

Thank you for your help.

Best regards,
_________________
Bruno Marinho


Last edited by bmarinho on Thu Nov 22, 2012 10:07 am; edited 1 time in total
Back to top
View user's profile Send private message
bmarinho
n00b
n00b


Joined: 28 Jul 2006
Posts: 22
Location: Porto, Portugal

PostPosted: Thu Nov 22, 2012 10:06 am    Post subject: Reply with quote

Hello again,

Finally figure it out the problem. It seems when emerging the two packages the target version of python was 2.7, so i modified the script head and changed "#!/usr/bin/python" to "#!/usr/bin/python2.7" and now the library is loading.

Thank you anyway :)

Best regards,
_________________
Bruno Marinho
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum