I'm having difficulty getting MySQLdb working for:
OSX 10.7.3
Python 2.7.1 (64-bit)
MySQL 5.1.62-osx10.6-x86_64
Ver 14.14 Distrib 5.1.62, for apple-darwin10.3.0 (i386) using readline 5.1 (is that conflicting? I had a 32-bit version before installing 64)
MySQLdb 1.2.3
Setuptools installed
I need MySQL 5.1 for compliance with the site I'm working with.
When I "import mysqldb" in python, I get "No module named mysqldb."
Thanks for helping me out! Let me know what I should try.
The python path includes
'/Library/Python/2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg'
And the sudo python setup.py install has
running install
running bdist_egg
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'
installing library code to build/bdist.macosx-10.7-intel/egg
running install_lib
running build_py
copying MySQLdb/release.py -> build/lib.macosx-10.7-intel-2.7/MySQLdb
running build_ext
creating build/bdist.macosx-10.7-intel/egg
copying build/lib.macosx-10.7-intel-2.7/_mysql.so -> build/bdist.macosx-10.7-intel/egg
copying build/lib.macosx-10.7-intel-2.7/_mysql_exceptions.py -> build/bdist.macosx-10.7-intel/egg
creating build/bdist.macosx-10.7-intel/egg/MySQLdb
copying build/lib.macosx-10.7-intel-2.7/MySQLdb/__init__.py -> build/bdist.macosx-10.7-intel/egg/MySQLdb
copying build/lib.macosx-10.7-intel-2.7/MySQLdb/connections.py -> build/bdist.macosx-10.7-intel/egg/MySQLdb
creating build/bdist.macosx-10.7-intel/egg/MySQLdb/constants
copying build/lib.macosx-10.7-intel-2.7/MySQLdb/constants/__init__.py -> build/bdist.macosx-10.7-intel/egg/MySQLdb/constants
copying build/lib.macosx-10.7-intel-2.7/MySQLdb/constants/CLIENT.py -> build/bdist.macosx-10.7-intel/egg/MySQLdb/constants
copying build/lib.macosx-10.7-intel-2.7/MySQLdb/constants/CR.py -> build/bdist.macosx-10.7-intel/egg/MySQLdb/constants
copying build/lib.macosx-10.7-intel-2.7/MySQLdb/constants/ER.py -> build/bdist.macosx-10.7-intel/egg/MySQLdb/constants
copying build/lib.macosx-10.7-intel-2.7/MySQLdb/constants/FIELD_TYPE.py -> build/bdist.macosx-10.7-intel/egg/MySQLdb/constants
copying build/lib.macosx-10.7-intel-2.7/MySQLdb/constants/FLAG.py -> build/bdist.macosx-10.7-intel/egg/MySQLdb/constants
copying build/lib.macosx-10.7-intel-2.7/MySQLdb/constants/REFRESH.py -> build/bdist.macosx-10.7-intel/egg/MySQLdb/constants
copying build/lib.macosx-10.7-intel-2.7/MySQLdb/converters.py -> build/bdist.macosx-10.7-intel/egg/MySQLdb
copying build/lib.macosx-10.7-intel-2.7/MySQLdb/cursors.py -> build/bdist.macosx-10.7-intel/egg/MySQLdb
copying build/lib.macosx-10.7-intel-2.7/MySQLdb/release.py -> build/bdist.macosx-10.7-intel/egg/MySQLdb
copying build/lib.macosx-10.7-intel-2.7/MySQLdb/times.py -> build/bdist.macosx-10.7-intel/egg/MySQLdb
byte-compiling build/bdist.macosx-10.7-intel/egg/_mysql_exceptions.py to _mysql_exceptions.pyc
byte-compiling build/bdist.macosx-10.7-intel/egg/MySQLdb/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.7-intel/egg/MySQLdb/connections.py to connections.pyc
byte-compiling build/bdist.macosx-10.7-intel/egg/MySQLdb/constants/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.7-intel/egg/MySQLdb/constants/CLIENT.py to CLIENT.pyc
byte-compiling build/bdist.macosx-10.7-intel/egg/MySQLdb/constants/CR.py to CR.pyc
byte-compiling build/bdist.macosx-10.7-intel/egg/MySQLdb/constants/ER.py to ER.pyc
byte-compiling build/bdist.macosx-10.7-intel/egg/MySQLdb/constants/FIELD_TYPE.py to FIELD_TYPE.pyc
byte-compiling build/bdist.macosx-10.7-intel/egg/MySQLdb/constants/FLAG.py to FLAG.pyc
byte-compiling build/bdist.macosx-10.7-intel/egg/MySQLdb/constants/REFRESH.py to REFRESH.pyc
byte-compiling build/bdist.macosx-10.7-intel/egg/MySQLdb/converters.py to converters.pyc
byte-compiling build/bdist.macosx-10.7-intel/egg/MySQLdb/cursors.py to cursors.pyc
byte-compiling build/bdist.macosx-10.7-intel/egg/MySQLdb/release.py to release.pyc
byte-compiling build/bdist.macosx-10.7-intel/egg/MySQLdb/times.py to times.pyc
creating stub loader for _mysql.so
byte-compiling build/bdist.macosx-10.7-intel/egg/_mysql.py to _mysql.pyc
creating build/bdist.macosx-10.7-intel/egg/EGG-INFO
copying MySQL_python.egg-info/PKG-INFO -> build/bdist.macosx-10.7-intel/egg/EGG-INFO
copying MySQL_python.egg-info/SOURCES.txt -> build/bdist.macosx-10.7-intel/egg/EGG-INFO
copying MySQL_python.egg-info/dependency_links.txt -> build/bdist.macosx-10.7-intel/egg/EGG-INFO
copying MySQL_python.egg-info/top_level.txt -> build/bdist.macosx-10.7-intel/egg/EGG-INFO
writing build/bdist.macosx-10.7-intel/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
creating 'dist/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg' and adding 'build/bdist.macosx-10.7-intel/egg' to it
removing 'build/bdist.macosx-10.7-intel/egg' (and everything under it)
Processing MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg
Removing /Library/Python/2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg
Copying MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg to /Library/Python/2.7/site-packages
MySQL-python 1.2.3 is already the active version in easy-install.pth
Installed /Library/Python/2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg
Processing dependencies for MySQL-python==1.2.3
Finished processing dependencies for MySQL-python==1.2.3
Try import MySQLdb; imports are case-sensitive and this module has silly case.
Related
I've done what every guide I have found does. I am in my anaconda enviroment and I have went to the directory where the setup.py is. I install it, then launch python, then try to import it and it says 3.7 is not supported even though it is in the supported list, and I am running 3.7:
(opt) vogtster#Vogtsters-Mini python % python setup.py build --build-base=$(mktemp -d) install --user
/Users/vogtster/opt/anaconda3/envs/opt/lib/python3.7/site-packages/setuptools/dist.py:534: UserWarning: The version specified ('R2022a') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
"details." % version
running build
running build_py
creating /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/lib
creating /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/lib/matlab
copying dist/matlab/__init__.py -> /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/lib/matlab
creating /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/lib/matlab/engine
copying dist/matlab/engine/fevalfuture.py -> /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/lib/matlab/engine
copying dist/matlab/engine/matlabengine.py -> /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/lib/matlab/engine
copying dist/matlab/engine/basefuture.py -> /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/lib/matlab/engine
copying dist/matlab/engine/__init__.py -> /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/lib/matlab/engine
copying dist/matlab/engine/matlabfuture.py -> /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/lib/matlab/engine
copying dist/matlab/engine/futureresult.py -> /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/lib/matlab/engine
copying dist/matlab/engine/enginehelper.py -> /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/lib/matlab/engine
copying dist/matlab/engine/engineerror.py -> /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/lib/matlab/engine
copying dist/matlab/engine/enginesession.py -> /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/lib/matlab/engine
running install
/Users/vogtster/opt/anaconda3/envs/opt/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
/Users/vogtster/opt/anaconda3/envs/opt/lib/python3.7/site-packages/setuptools/command/easy_install.py:147: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
EasyInstallDeprecationWarning,
/Users/vogtster/opt/anaconda3/envs/opt/lib/python3.7/site-packages/pkg_resources/__init__.py:125: PkgResourcesDeprecationWarning: R2022a is an invalid version and will not be supported in a future release
PkgResourcesDeprecationWarning,
running bdist_egg
running egg_info
writing dist/matlabengineforpython.egg-info/PKG-INFO
writing dependency_links to dist/matlabengineforpython.egg-info/dependency_links.txt
writing top-level names to dist/matlabengineforpython.egg-info/top_level.txt
/Users/vogtster/opt/anaconda3/envs/opt/lib/python3.7/site-packages/setuptools/command/egg_info.py:627: SetuptoolsDeprecationWarning: Custom 'build_py' does not implement 'get_data_files_without_manifest'.
Please extend command classes from setuptools instead of distutils.
SetuptoolsDeprecationWarning
reading manifest file 'dist/matlabengineforpython.egg-info/SOURCES.txt'
writing manifest file 'dist/matlabengineforpython.egg-info/SOURCES.txt'
installing library code to /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg
running install_lib
creating /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64
creating /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg
creating /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg/matlab
copying /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/lib/matlab/__init__.py -> /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg/matlab
creating /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg/matlab/engine
copying /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/lib/matlab/engine/fevalfuture.py -> /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg/matlab/engine
copying /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/lib/matlab/engine/matlabengine.py -> /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg/matlab/engine
copying /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/lib/matlab/engine/basefuture.py -> /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg/matlab/engine
copying /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/lib/matlab/engine/__init__.py -> /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg/matlab/engine
copying /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/lib/matlab/engine/matlabfuture.py -> /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg/matlab/engine
copying /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/lib/matlab/engine/_arch.txt -> /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg/matlab/engine
copying /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/lib/matlab/engine/futureresult.py -> /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg/matlab/engine
copying /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/lib/matlab/engine/enginehelper.py -> /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg/matlab/engine
copying /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/lib/matlab/engine/engineerror.py -> /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg/matlab/engine
copying /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/lib/matlab/engine/enginesession.py -> /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg/matlab/engine
byte-compiling /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg/matlab/__init__.py to __init__.cpython-37.pyc
byte-compiling /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg/matlab/engine/fevalfuture.py to fevalfuture.cpython-37.pyc
byte-compiling /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg/matlab/engine/matlabengine.py to matlabengine.cpython-37.pyc
byte-compiling /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg/matlab/engine/basefuture.py to basefuture.cpython-37.pyc
byte-compiling /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg/matlab/engine/__init__.py to __init__.cpython-37.pyc
byte-compiling /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg/matlab/engine/matlabfuture.py to matlabfuture.cpython-37.pyc
byte-compiling /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg/matlab/engine/futureresult.py to futureresult.cpython-37.pyc
byte-compiling /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg/matlab/engine/enginehelper.py to enginehelper.cpython-37.pyc
byte-compiling /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg/matlab/engine/engineerror.py to engineerror.cpython-37.pyc
byte-compiling /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg/matlab/engine/enginesession.py to enginesession.cpython-37.pyc
creating /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying dist/matlabengineforpython.egg-info/PKG-INFO -> /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying dist/matlabengineforpython.egg-info/SOURCES.txt -> /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying dist/matlabengineforpython.egg-info/dependency_links.txt -> /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying dist/matlabengineforpython.egg-info/top_level.txt -> /var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
matlab.__pycache__.__init__.cpython-37: module references __file__
matlab.__pycache__.__init__.cpython-37: module references __path__
matlab.engine.__pycache__.__init__.cpython-37: module references __file__
creating 'dist/matlabengineforpython-R2022a-py3.7.egg' and adding '/var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg' to it
removing '/var/folders/2t/1hqm8qtd78xb9grhqz2023_w0000gn/T/tmp.CcDlA6kb/bdist.macosx-10.9-x86_64/egg' (and everything under it)
Processing matlabengineforpython-R2022a-py3.7.egg
removing '/Users/vogtster/.local/lib/python3.7/site-packages/matlabengineforpython-R2022a-py3.7.egg' (and everything under it)
creating /Users/vogtster/.local/lib/python3.7/site-packages/matlabengineforpython-R2022a-py3.7.egg
Extracting matlabengineforpython-R2022a-py3.7.egg to /Users/vogtster/.local/lib/python3.7/site-packages
matlabengineforpython R2022a is already the active version in easy-install.pth
Installed /Users/vogtster/.local/lib/python3.7/site-packages/matlabengineforpython-R2022a-py3.7.egg
Processing dependencies for matlabengineforpython===R2022a
Finished processing dependencies for matlabengineforpython===R2022a
(opt) vogtster#Vogtsters-Mini python % python
Python 3.7.13 (default, Mar 28 2022, 07:24:34)
[Clang 12.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import matlab.engine
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/vogtster/.local/lib/python3.7/site-packages/matlabengineforpython-R2022a-py3.7.egg/matlab/__init__.py", line 200, in <module>
success = get_dirs_from_arch_file_without_import()
File "/Users/vogtster/.local/lib/python3.7/site-packages/matlabengineforpython-R2022a-py3.7.egg/matlab/__init__.py", line 159, in get_dirs_from_arch_file_without_import
_PYTHONVERSION = get_python_version()
File "/Users/vogtster/.local/lib/python3.7/site-packages/matlabengineforpython-R2022a-py3.7.egg/matlab/__init__.py", line 150, in get_python_version
raise EnvironmentError("Python %s is not supported." % _version)
OSError: Python 3_7 is not supported.
>>>
This is the directory I am in when I call the python setup.py install - is this wrong somehow?
/Users/vogtster/Desktop/MATLAB_R2022a.app/extern/engines/python
File "/Users/vogtster/.local/lib/python3.7/site-packages/matlabengineforpython-R2022a-py3.7.egg/matlab/__init__.py", line 150, in get_python_version
It was looking locally for some reason. I deleted this, downgraded to R2021a and not everything works great.
I have posted this question before and it seems like no one is able to guide me.
I want to run tweepy on Python 3. I have it working on Python 2 right now.
I followed the steps on this page
https://github.com/tweepy/tweepy
When I go to write
python3 setup.py install
I get this message of it downloading which obviously means it is not downloading properly.
Why won't it download properly on Python 3?
running install
running bdist_egg
running egg_info
writing tweepy.egg-info/PKG-INFO
writing dependency_links to tweepy.egg-info/dependency_links.txt
writing requirements to tweepy.egg-info/requires.txt
writing top-level names to tweepy.egg-info/top_level.txt
reading manifest file 'tweepy.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'tweepy.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.6-intel/egg
running install_lib
running build_py
creating build/bdist.macosx-10.6-intel/egg
creating build/bdist.macosx-10.6-intel/egg/examples
copying build/lib/examples/__init__.py -> build/bdist.macosx-10.6-intel/egg/examples
copying build/lib/examples/oauth.py -> build/bdist.macosx-10.6-intel/egg/examples
copying build/lib/examples/streaming.py -> build/bdist.macosx-10.6-intel/egg/examples
creating build/bdist.macosx-10.6-intel/egg/tweepy
copying build/lib/tweepy/__init__.py -> build/bdist.macosx-10.6-intel/egg/tweepy
copying build/lib/tweepy/api.py -> build/bdist.macosx-10.6-intel/egg/tweepy
copying build/lib/tweepy/auth.py -> build/bdist.macosx-10.6-intel/egg/tweepy
copying build/lib/tweepy/binder.py -> build/bdist.macosx-10.6-intel/egg/tweepy
copying build/lib/tweepy/cache.py -> build/bdist.macosx-10.6-intel/egg/tweepy
copying build/lib/tweepy/cursor.py -> build/bdist.macosx-10.6-intel/egg/tweepy
copying build/lib/tweepy/error.py -> build/bdist.macosx-10.6-intel/egg/tweepy
copying build/lib/tweepy/models.py -> build/bdist.macosx-10.6-intel/egg/tweepy
copying build/lib/tweepy/parsers.py -> build/bdist.macosx-10.6-intel/egg/tweepy
copying build/lib/tweepy/streaming.py -> build/bdist.macosx-10.6-intel/egg/tweepy
copying build/lib/tweepy/utils.py -> build/bdist.macosx-10.6-intel/egg/tweepy
byte-compiling build/bdist.macosx-10.6-intel/egg/examples/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/examples/oauth.py to oauth.cpython-36.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/examples/streaming.py to streaming.cpython-36.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/tweepy/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/tweepy/api.py to api.cpython-36.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/tweepy/auth.py to auth.cpython-36.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/tweepy/binder.py to binder.cpython-36.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/tweepy/cache.py to cache.cpython-36.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/tweepy/cursor.py to cursor.cpython-36.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/tweepy/error.py to error.cpython-36.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/tweepy/models.py to models.cpython-36.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/tweepy/parsers.py to parsers.cpython-36.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/tweepy/streaming.py to streaming.cpython-36.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/tweepy/utils.py to utils.cpython-36.pyc
creating build/bdist.macosx-10.6-intel/egg/EGG-INFO
copying tweepy.egg-info/PKG-INFO -> build/bdist.macosx-10.6-intel/egg/EGG-INFO
copying tweepy.egg-info/SOURCES.txt -> build/bdist.macosx-10.6-intel/egg/EGG-INFO
copying tweepy.egg-info/dependency_links.txt -> build/bdist.macosx-10.6-intel/egg/EGG-INFO
copying tweepy.egg-info/requires.txt -> build/bdist.macosx-10.6-intel/egg/EGG-INFO
copying tweepy.egg-info/top_level.txt -> build/bdist.macosx-10.6-intel/egg/EGG-INFO
copying tweepy.egg-info/zip-safe -> build/bdist.macosx-10.6-intel/egg/EGG-INFO
creating 'dist/tweepy-3.6.0-py3.6.egg' and adding 'build/bdist.macosx-10.6-intel/egg' to it
removing 'build/bdist.macosx-10.6-intel/egg' (and everything under it)
Processing tweepy-3.6.0-py3.6.egg
Removing /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tweepy-3.6.0-py3.6.egg
Copying tweepy-3.6.0-py3.6.egg to /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages
tweepy 3.6.0 is already the active version in easy-install.pth
Installed /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tweepy-3.6.0-py3.6.egg
Processing dependencies for tweepy==3.6.0
Searching for PySocks>=1.5.7
Reading https://pypi.python.org/simple/PySocks/
Download error on https://pypi.python.org/simple/PySocks/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748) -- Some packages may not be found!
Couldn't find index page for 'PySocks' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748) -- Some packages may not be found!
No local packages or working download links found for PySocks>=1.5.7
error: Could not find suitable distribution for Requirement.parse('PySocks>=1.5.7')
the solution:
The problem isn't with tweepy it is with the certification in python3 so to fix that look at this link Python 3 : SSL: CERTIFICATE_VERIFY_FAILED
then to install tweepy type python3 setup.py install
Hi after installing code2flow , the process has finish successfully
$ python setup.py install
running install
running bdist_egg
running egg_info
creating code2flow.egg-info
writing code2flow.egg-info\PKG-INFO
writing top-level names to code2flow.egg-info\top_level.txt
writing dependency_links to code2flow.egg-info\dependency_links.txt
writing manifest file 'code2flow.egg-info\SOURCES.txt'
reading manifest file 'code2flow.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.txt' under directory 'docs'
writing manifest file 'code2flow.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
creating build
creating build\lib
creating build\lib\code2flowlib
copying code2flowlib\dotgenerator.py -> build\lib\code2flowlib
copying code2flowlib\engine.py -> build\lib\code2flowlib
copying code2flowlib\mutablestring.py -> build\lib\code2flowlib
copying code2flowlib\nesting.py -> build\lib\code2flowlib
copying code2flowlib\__init__.py -> build\lib\code2flowlib
creating build\lib\testscripts
copying testscripts\pysimple.py -> build\lib\testscripts
copying testscripts\pysimple2.py -> build\lib\testscripts
copying testscripts\pysimple3.py -> build\lib\testscripts
copying testscripts\urllib2.py -> build\lib\testscripts
copying testscripts\__init__.py -> build\lib\testscripts
creating build\lib\code2flowlib\languages
copying code2flowlib\languages\javascript.py -> build\lib\code2flowlib\languages
copying code2flowlib\languages\python.py -> build\lib\code2flowlib\languages
copying code2flowlib\languages\__init__.py -> build\lib\code2flowlib\languages
creating build\bdist.win32
creating build\bdist.win32\egg
creating build\bdist.win32\egg\code2flowlib
copying build\lib\code2flowlib\dotgenerator.py -> build\bdist.win32\egg\code2flowlib
copying build\lib\code2flowlib\engine.py -> build\bdist.win32\egg\code2flowlib
creating build\bdist.win32\egg\code2flowlib\languages
copying build\lib\code2flowlib\languages\javascript.py -> build\bdist.win32\egg\code2flowlib\languages
copying build\lib\code2flowlib\languages\python.py -> build\bdist.win32\egg\code2flowlib\languages
copying build\lib\code2flowlib\languages\__init__.py -> build\bdist.win32\egg\code2flowlib\languages
copying build\lib\code2flowlib\mutablestring.py -> build\bdist.win32\egg\code2flowlib
copying build\lib\code2flowlib\nesting.py -> build\bdist.win32\egg\code2flowlib
copying build\lib\code2flowlib\__init__.py -> build\bdist.win32\egg\code2flowlib
creating build\bdist.win32\egg\testscripts
copying build\lib\testscripts\pysimple.py -> build\bdist.win32\egg\testscripts
copying build\lib\testscripts\pysimple2.py -> build\bdist.win32\egg\testscripts
copying build\lib\testscripts\pysimple3.py -> build\bdist.win32\egg\testscripts
copying build\lib\testscripts\urllib2.py -> build\bdist.win32\egg\testscripts
copying build\lib\testscripts\__init__.py -> build\bdist.win32\egg\testscripts
byte-compiling build\bdist.win32\egg\code2flowlib\dotgenerator.py to dotgenerator.pyc
byte-compiling build\bdist.win32\egg\code2flowlib\engine.py to engine.pyc
byte-compiling build\bdist.win32\egg\code2flowlib\languages\javascript.py to javascript.pyc
byte-compiling build\bdist.win32\egg\code2flowlib\languages\python.py to python.pyc
byte-compiling build\bdist.win32\egg\code2flowlib\languages\__init__.py to __init__.pyc
byte-compiling build\bdist.win32\egg\code2flowlib\mutablestring.py to mutablestring.pyc
byte-compiling build\bdist.win32\egg\code2flowlib\nesting.py to nesting.pyc
byte-compiling build\bdist.win32\egg\code2flowlib\__init__.py to __init__.pyc
byte-compiling build\bdist.win32\egg\testscripts\pysimple.py to pysimple.pyc
byte-compiling build\bdist.win32\egg\testscripts\pysimple2.py to pysimple2.pyc
byte-compiling build\bdist.win32\egg\testscripts\pysimple3.py to pysimple3.pyc
byte-compiling build\bdist.win32\egg\testscripts\urllib2.py to urllib2.pyc
byte-compiling build\bdist.win32\egg\testscripts\__init__.py to __init__.pyc
creating build\bdist.win32\egg\EGG-INFO
installing scripts to build\bdist.win32\egg\EGG-INFO\scripts
running install_scripts
running build_scripts
creating build\scripts-2.7
copying and adjusting code2flow -> build\scripts-2.7
creating build\bdist.win32\egg\EGG-INFO\scripts
copying build\scripts-2.7\code2flow -> build\bdist.win32\egg\EGG-INFO\scripts
copying code2flow.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO
copying code2flow.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO
copying code2flow.egg-info\dependency_links.txt -> build\bdist.win32\egg\EGG-INFO
copying code2flow.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist\code2flow-0.2-py2.7.egg' and adding 'build\bdist.win32\egg' to it
removing 'build\bdist.win32\egg' (and everything under it)
Processing code2flow-0.2-py2.7.egg
Copying code2flow-0.2-py2.7.egg to c:\python27\lib\site-packages
Adding code2flow 0.2 to easy-install.pth file
Installing code2flow script to C:\Python27\Scripts
Installed c:\python27\lib\site-packages\code2flow-0.2-py2.7.egg
Processing dependencies for code2flow==0.2
Finished processing dependencies for code2flow==0.2
When trying a simple run i get this error
$ code2flow
C:\Python27\python.exe: can't open file '/cygdrive/c/Python27/Scripts/code2flow': [Errno 2] No such file or directory
The problem is that the script folder contain code2flow ... but i get this error also when i have installed pyCallGraph
Mt python version is
$ python -V
Python 2.7.7
I'm on windows 7
thanks
You have to run it as
python code2flow
I am trying to install an application (on Fedora) made by another member of our web dev team some time ago. Ive managed to configure almost everything I need to in my virtual environment, but when I try the shell command:
python setup.py install
It points to a newer version of Pylons and I get the error:
error: Installed distribution Pylons 0.9.7 conflicts with requirement Pylons==0.10
I have uninstalled this virtual environments version of pylons using pip uninstall and reinstalled the correct version. Ive checked this by using:
python
Python 2.6 (r26:66714, Mar 15 2012, 10:33:52)
[GCC 4.6.1 20110908 (Red Hat 4.6.1-9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pylons
>>> pylons.__version__
'0.10'
>>>
So it looks as if it is still using the main system version of pylons? The program does use some company middleware, Ive tried uninstalling and reinstalling that, but the stack trace doesnt indicate such an error.
Here is the rest of the stack trace:
[~/workspace/PYTHON/shipping] python setup.py install
running install
running bdist_egg
running egg_info
writing requirements to shipping.egg-info/requires.txt
writing shipping.egg-info/PKG-INFO
writing top-level names to shipping.egg-info/top_level.txt
writing dependency_links to shipping.egg-info/dependency_links.txt
writing entry points to shipping.egg-info/entry_points.txt
writing paster_plugins to shipping.egg-info/paster_plugins.txt
reading manifest template 'MANIFEST.in'
writing manifest file 'shipping.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-i686/egg
running install_lib
running build_py
creating build/bdist.linux-i686/egg
creating build/bdist.linux-i686/egg/shipping
creating build/bdist.linux-i686/egg/shipping/controllers
copying build/lib/shipping/controllers/recipients.py -> build/bdist.linux-i686/egg/shipping/controllers
copying build/lib/shipping/controllers/error.py -> build/bdist.linux-i686/egg/shipping/controllers
copying build/lib/shipping/controllers/forms.py -> build/bdist.linux-i686/egg/shipping/controllers
copying build/lib/shipping/controllers/security.py -> build/bdist.linux-i686/egg/shipping/controllers
copying build/lib/shipping/controllers/pallets.py -> build/bdist.linux-i686/egg/shipping/controllers
copying build/lib/shipping/controllers/licences.py -> build/bdist.linux-i686/egg/shipping/controllers
copying build/lib/shipping/controllers/items.py -> build/bdist.linux-i686/egg/shipping/controllers
copying build/lib/shipping/controllers/resources.py -> build/bdist.linux-i686/egg/shipping/controllers
copying build/lib/shipping/controllers/descriptions.py -> build/bdist.linux-i686/egg/shipping/controllers
copying build/lib/shipping/controllers/__init__.py -> build/bdist.linux-i686/egg/shipping/controllers
copying build/lib/shipping/controllers/validators.py -> build/bdist.linux-i686/egg/shipping/controllers
creating build/bdist.linux-i686/egg/shipping/tests
copying build/lib/shipping/tests/test_models.py -> build/bdist.linux-i686/egg/shipping/tests
creating build/bdist.linux-i686/egg/shipping/tests/functional
copying build/lib/shipping/tests/functional/test_forms.py -> build/bdist.linux-i686/egg/shipping/tests/functional
copying build/lib/shipping/tests/functional/test_items.py -> build/bdist.linux-i686/egg/shipping/tests/functional
copying build/lib/shipping/tests/functional/test_descriptions.py -> build/bdist.linux-i686/egg/shipping/tests/functional
copying build/lib/shipping/tests/functional/test_licences.py -> build/bdist.linux-i686/egg/shipping/tests/functional
copying build/lib/shipping/tests/functional/test_item.py -> build/bdist.linux-i686/egg/shipping/tests/functional
copying build/lib/shipping/tests/functional/__init__.py -> build/bdist.linux-i686/egg/shipping/tests/functional
copying build/lib/shipping/tests/functional/test_shipform.py -> build/bdist.linux-i686/egg/shipping/tests/functional
copying build/lib/shipping/tests/functional/test_pallets.py -> build/bdist.linux-i686/egg/shipping/tests/functional
copying build/lib/shipping/tests/__init__.py -> build/bdist.linux-i686/egg/shipping/tests
creating build/bdist.linux-i686/egg/shipping/lib
copying build/lib/shipping/lib/__init__.py -> build/bdist.linux-i686/egg/shipping/lib
copying build/lib/shipping/lib/helpers.py -> build/bdist.linux-i686/egg/shipping/lib
copying build/lib/shipping/lib/base.py -> build/bdist.linux-i686/egg/shipping/lib
copying build/lib/shipping/lib/app_globals.py -> build/bdist.linux-i686/egg/shipping/lib
creating build/bdist.linux-i686/egg/shipping/templates
copying build/lib/shipping/templates/view.html -> build/bdist.linux-i686/egg/shipping/templates
creating build/bdist.linux-i686/egg/shipping/templates/management
copying build/lib/shipping/templates/management/shippingFormTabs.htm -> build/bdist.linux-i686/egg/shipping/templates/management
creating build/bdist.linux-i686/egg/shipping/templates/includes
copying build/lib/shipping/templates/includes/itemform.html -> build/bdist.linux-i686/egg/shipping/templates/includes
copying build/lib/shipping/templates/includes/shippingform.html -> build/bdist.linux-i686/egg/shipping/templates/includes
copying build/lib/shipping/templates/includes/authorisationform.html -> build/bdist.linux-i686/egg/shipping/templates/includes
creating build/bdist.linux-i686/egg/shipping/templates/includes/printables
copying build/lib/shipping/templates/includes/printables/shippinginstructions.html -> build/bdist.linux-i686/egg/shipping/templates/includes/printables
copying build/lib/shipping/templates/includes/printables/proformainvoice.html -> build/bdist.linux-i686/egg/shipping/templates/includes/printables
copying build/lib/shipping/templates/includes/printables/collectionnote.html -> build/bdist.linux-i686/egg/shipping/templates/includes/printables
copying build/lib/shipping/templates/includes/printables/hcletter.html -> build/bdist.linux-i686/egg/shipping/templates/includes/printables
copying build/lib/shipping/templates/includes/printables/packinglist.html -> build/bdist.linux-i686/egg/shipping/templates/includes/printables
copying build/lib/shipping/templates/includes/printables/base.html -> build/bdist.linux-i686/egg/shipping/templates/includes/printables
copying build/lib/shipping/templates/includes/recipientform.html -> build/bdist.linux-i686/egg/shipping/templates/includes
creating build/bdist.linux-i686/egg/shipping/templates/reports
creating build/bdist.linux-i686/egg/shipping/templates/reports/resources
copying build/lib/shipping/templates/reports/resources/GOTHICI.TTF -> build/bdist.linux-i686/egg/shipping/templates/reports/resources
copying build/lib/shipping/templates/reports/resources/report.css -> build/bdist.linux-i686/egg/shipping/templates/reports/resources
copying build/lib/shipping/templates/reports/resources/GOTHICB.TTF -> build/bdist.linux-i686/egg/shipping/templates/reports/resources
copying build/lib/shipping/templates/reports/resources/letterhead.pdf -> build/bdist.linux-i686/egg/shipping/templates/reports/resources
copying build/lib/shipping/templates/reports/resources/GOTHIC.TTF -> build/bdist.linux-i686/egg/shipping/templates/reports/resources
copying build/lib/shipping/templates/reports/resources/GOTHICBI.TTF -> build/bdist.linux-i686/egg/shipping/templates/reports/resources
copying build/lib/shipping/templates/reports/base.mako -> build/bdist.linux-i686/egg/shipping/templates/reports
copying build/lib/shipping/templates/reports/shipping_instructions.mako -> build/bdist.linux-i686/egg/shipping/templates/reports
creating build/bdist.linux-i686/egg/shipping/config
copying build/lib/shipping/config/middleware.py -> build/bdist.linux-i686/egg/shipping/config
copying build/lib/shipping/config/routing.py -> build/bdist.linux-i686/egg/shipping/config
copying build/lib/shipping/config/environment.py -> build/bdist.linux-i686/egg/shipping/config
copying build/lib/shipping/config/__init__.py -> build/bdist.linux-i686/egg/shipping/config
copying build/lib/shipping/config/deployment.ini_tmpl -> build/bdist.linux-i686/egg/shipping/config
copying build/lib/shipping/websetup.py -> build/bdist.linux-i686/egg/shipping
copying build/lib/shipping/__init__.py -> build/bdist.linux-i686/egg/shipping
creating build/bdist.linux-i686/egg/shipping/model
copying build/lib/shipping/model/workflow.py -> build/bdist.linux-i686/egg/shipping/model
copying build/lib/shipping/model/permission.py -> build/bdist.linux-i686/egg/shipping/model
copying build/lib/shipping/model/definitions.py -> build/bdist.linux-i686/egg/shipping/model
copying build/lib/shipping/model/__init__.py -> build/bdist.linux-i686/egg/shipping/model
copying build/lib/shipping/model/meta.py -> build/bdist.linux-i686/egg/shipping/model
creating build/bdist.linux-i686/egg/shipping/public
copying build/lib/shipping/public/pylons-logo.gif -> build/bdist.linux-i686/egg/shipping/public
copying build/lib/shipping/public/Thumbs.db -> build/bdist.linux-i686/egg/shipping/public
creating build/bdist.linux-i686/egg/shipping/public/inmarsat_scripts
copying build/lib/shipping/public/inmarsat_scripts/script.js -> build/bdist.linux-i686/egg/shipping/public/inmarsat_scripts
copying build/lib/shipping/public/inmarsat_scripts/shipping.js -> build/bdist.linux-i686/egg/shipping/public/inmarsat_scripts
copying build/lib/shipping/public/inmarsat_scripts/components.js -> build/bdist.linux-i686/egg/shipping/public/inmarsat_scripts
copying build/lib/shipping/public/favicon.ico -> build/bdist.linux-i686/egg/shipping/public
creating build/bdist.linux-i686/egg/shipping/public/style_sheets
copying build/lib/shipping/public/style_sheets/componentsPage.css -> build/bdist.linux-i686/egg/shipping/public/style_sheets
copying build/lib/shipping/public/style_sheets/jquery-ui-1.7.2.custom.css -> build/bdist.linux-i686/egg/shipping/public/style_sheets
copying build/lib/shipping/public/style_sheets/requestsView.css -> build/bdist.linux-i686/egg/shipping/public/style_sheets
copying build/lib/shipping/public/style_sheets/components_IE.css -> build/bdist.linux-i686/egg/shipping/public/style_sheets
copying build/lib/shipping/public/style_sheets/shippingForm_Temp.css -> build/bdist.linux-i686/egg/shipping/public/style_sheets
copying build/lib/shipping/public/style_sheets/base.css -> build/bdist.linux-i686/egg/shipping/public/style_sheets
copying build/lib/shipping/public/style_sheets/ui.all.css -> build/bdist.linux-i686/egg/shipping/public/style_sheets
copying build/lib/shipping/public/style_sheets/highlight.css -> build/bdist.linux-i686/egg/shipping/public/style_sheets
copying build/lib/shipping/public/style_sheets/ie.css -> build/bdist.linux-i686/egg/shipping/public/style_sheets
copying build/lib/shipping/public/style_sheets/shippingForm.css -> build/bdist.linux-i686/egg/shipping/public/style_sheets
copying build/lib/shipping/public/style_sheets/components.css -> build/bdist.linux-i686/egg/shipping/public/style_sheets
copying build/lib/shipping/public/style_sheets/shippingForm_final.css -> build/bdist.linux-i686/egg/shipping/public/style_sheets
copying build/lib/shipping/public/bg.png -> build/bdist.linux-i686/egg/shipping/public
byte-compiling build/bdist.linux-i686/egg/shipping/controllers/recipients.py to recipients.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/controllers/error.py to error.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/controllers/forms.py to forms.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/controllers/security.py to security.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/controllers/pallets.py to pallets.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/controllers/licences.py to licences.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/controllers/items.py to items.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/controllers/resources.py to resources.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/controllers/descriptions.py to descriptions.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/controllers/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/controllers/validators.py to validators.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/tests/test_models.py to test_models.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/tests/functional/test_forms.py to test_forms.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/tests/functional/test_items.py to test_items.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/tests/functional/test_descriptions.py to test_descriptions.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/tests/functional/test_licences.py to test_licences.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/tests/functional/test_item.py to test_item.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/tests/functional/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/tests/functional/test_shipform.py to test_shipform.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/tests/functional/test_pallets.py to test_pallets.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/tests/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/lib/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/lib/helpers.py to helpers.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/lib/base.py to base.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/lib/app_globals.py to app_globals.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/config/middleware.py to middleware.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/config/routing.py to routing.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/config/environment.py to environment.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/config/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/websetup.py to websetup.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/model/workflow.py to workflow.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/model/permission.py to permission.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/model/definitions.py to definitions.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/model/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-i686/egg/shipping/model/meta.py to meta.pyc
creating build/bdist.linux-i686/egg/EGG-INFO
copying shipping.egg-info/PKG-INFO -> build/bdist.linux-i686/egg/EGG-INFO
copying shipping.egg-info/SOURCES.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying shipping.egg-info/dependency_links.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying shipping.egg-info/entry_points.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying shipping.egg-info/not-zip-safe -> build/bdist.linux-i686/egg/EGG-INFO
copying shipping.egg-info/paster_plugins.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying shipping.egg-info/requires.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying shipping.egg-info/top_level.txt -> build/bdist.linux-i686/egg/EGG-INFO
creating 'dist/shipping-1.0.0dev_r2476-py2.6.egg' and adding 'build/bdist.linux-i686/egg' to it
removing 'build/bdist.linux-i686/egg' (and everything under it)
Processing shipping-1.0.0dev_r2476-py2.6.egg
removing '/home/aaron/workspace/shipenv/lib/python2.6/site-packages/shipping-1.0.0dev_r2476-py2.6.egg' (and everything under it)
creating /home/aaron/workspace/shipenv/lib/python2.6/site-packages/shipping-1.0.0dev_r2476-py2.6.egg
Extracting shipping-1.0.0dev_r2476-py2.6.egg to /home/aaron/workspace/shipenv/lib/python2.6/site-packages
Adding shipping 1.0.0dev-r2476 to easy-install.pth file
Installed /home/aaron/workspace/shipenv/lib/python2.6/site-packages/shipping-1.0.0dev_r2476-py2.6.egg
Processing dependencies for shipping==1.0.0dev-r2476
error: Installed distribution Pylons 0.9.7 conflicts with requirement Pylons==0.10
(shipenv)
I noticed that in the stack trace it kept downloading and install Pylons 0.9.7 when I was trying to install it as the requirements in setup.py file were Pylons==0.9.7
But then this doesnt account for the conflict!
I managed to install the app by changing the requirements here, but then I get a different Pylons error (probably because its out of date)
EDIT
It looks like 0.9.7 is being installed because it is part of the requirements of a dependency.
did you create the virtualenv with the --no-site-packages switch?
Do a file search for Pylons 0.9.7 and check your $PATH as well. There might be a version of Pylons 0.9.7 installed somewhere else which the script is referring to.
did you remember to activate the virtualenv?
source virtenv/bin/activate
before running the install
edit: you can also try to set the os.environ['PYTHON_EGG_CACHE'] to the virtenv/lib/site-packages
This is related to a previous question.
However, the main posted solution there is not working for me. I'm on Snow Leopard, using the 32-bit 5.1.49 MySQL dmg install. I'm using the built in python (apparently, as noted in the comments, my Python version is different), which appears to be 2.6.5 32-bit:
Python 2.6.5 (r265:79359, Mar 24 2010, 01:32:55)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.maxint
2147483647
I've downloaded MySQL-python 1.2.3 from the usual location and changed site.cfg so that mysql_config points to the right place and the registry_key directive is commented out. The packages seems to build and install just fine:
caywork:MySQL-python-1.2.3 carl$ python setup.py clean
running clean
caywork:MySQL-python-1.2.3 carl$ python setup.py build
running build
running build_py
copying MySQLdb/release.py -> build/lib.macosx-10.3-fat-2.6/MySQLdb
running build_ext
caywork:MySQL-python-1.2.3 carl$ sudo python setup.py install
running install
running bdist_egg
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'
installing library code to build/bdist.macosx-10.3-fat/egg
running install_lib
running build_py
copying MySQLdb/release.py -> build/lib.macosx-10.3-fat-2.6/MySQLdb
running build_ext
creating build/bdist.macosx-10.3-fat/egg
copying build/lib.macosx-10.3-fat-2.6/_mysql.so -> build/bdist.macosx-10.3-fat/egg
copying build/lib.macosx-10.3-fat-2.6/_mysql_exceptions.py -> build/bdist.macosx-10.3-fat/egg
creating build/bdist.macosx-10.3-fat/egg/MySQLdb
copying build/lib.macosx-10.3-fat-2.6/MySQLdb/__init__.py -> build/bdist.macosx-10.3-fat/egg/MySQLdb
copying build/lib.macosx-10.3-fat-2.6/MySQLdb/connections.py -> build/bdist.macosx-10.3-fat/egg/MySQLdb
creating build/bdist.macosx-10.3-fat/egg/MySQLdb/constants
copying build/lib.macosx-10.3-fat-2.6/MySQLdb/constants/__init__.py -> build/bdist.macosx-10.3-fat/egg/MySQLdb/constants
copying build/lib.macosx-10.3-fat-2.6/MySQLdb/constants/CLIENT.py -> build/bdist.macosx-10.3-fat/egg/MySQLdb/constants
copying build/lib.macosx-10.3-fat-2.6/MySQLdb/constants/CR.py -> build/bdist.macosx-10.3-fat/egg/MySQLdb/constants
copying build/lib.macosx-10.3-fat-2.6/MySQLdb/constants/ER.py -> build/bdist.macosx-10.3-fat/egg/MySQLdb/constants
copying build/lib.macosx-10.3-fat-2.6/MySQLdb/constants/FIELD_TYPE.py -> build/bdist.macosx-10.3-fat/egg/MySQLdb/constants
copying build/lib.macosx-10.3-fat-2.6/MySQLdb/constants/FLAG.py -> build/bdist.macosx-10.3-fat/egg/MySQLdb/constants
copying build/lib.macosx-10.3-fat-2.6/MySQLdb/constants/REFRESH.py -> build/bdist.macosx-10.3-fat/egg/MySQLdb/constants
copying build/lib.macosx-10.3-fat-2.6/MySQLdb/converters.py -> build/bdist.macosx-10.3-fat/egg/MySQLdb
copying build/lib.macosx-10.3-fat-2.6/MySQLdb/cursors.py -> build/bdist.macosx-10.3-fat/egg/MySQLdb
copying build/lib.macosx-10.3-fat-2.6/MySQLdb/release.py -> build/bdist.macosx-10.3-fat/egg/MySQLdb
copying build/lib.macosx-10.3-fat-2.6/MySQLdb/times.py -> build/bdist.macosx-10.3-fat/egg/MySQLdb
byte-compiling build/bdist.macosx-10.3-fat/egg/_mysql_exceptions.py to _mysql_exceptions.pyc
byte-compiling build/bdist.macosx-10.3-fat/egg/MySQLdb/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.3-fat/egg/MySQLdb/connections.py to connections.pyc
byte-compiling build/bdist.macosx-10.3-fat/egg/MySQLdb/constants/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.3-fat/egg/MySQLdb/constants/CLIENT.py to CLIENT.pyc
byte-compiling build/bdist.macosx-10.3-fat/egg/MySQLdb/constants/CR.py to CR.pyc
byte-compiling build/bdist.macosx-10.3-fat/egg/MySQLdb/constants/ER.py to ER.pyc
byte-compiling build/bdist.macosx-10.3-fat/egg/MySQLdb/constants/FIELD_TYPE.py to FIELD_TYPE.pyc
byte-compiling build/bdist.macosx-10.3-fat/egg/MySQLdb/constants/FLAG.py to FLAG.pyc
byte-compiling build/bdist.macosx-10.3-fat/egg/MySQLdb/constants/REFRESH.py to REFRESH.pyc
byte-compiling build/bdist.macosx-10.3-fat/egg/MySQLdb/converters.py to converters.pyc
byte-compiling build/bdist.macosx-10.3-fat/egg/MySQLdb/cursors.py to cursors.pyc
byte-compiling build/bdist.macosx-10.3-fat/egg/MySQLdb/release.py to release.pyc
byte-compiling build/bdist.macosx-10.3-fat/egg/MySQLdb/times.py to times.pyc
creating stub loader for _mysql.so
byte-compiling build/bdist.macosx-10.3-fat/egg/_mysql.py to _mysql.pyc
creating build/bdist.macosx-10.3-fat/egg/EGG-INFO
copying MySQL_python.egg-info/PKG-INFO -> build/bdist.macosx-10.3-fat/egg/EGG-INFO
copying MySQL_python.egg-info/SOURCES.txt -> build/bdist.macosx-10.3-fat/egg/EGG-INFO
copying MySQL_python.egg-info/dependency_links.txt -> build/bdist.macosx-10.3-fat/egg/EGG-INFO
copying MySQL_python.egg-info/top_level.txt -> build/bdist.macosx-10.3-fat/egg/EGG-INFO
writing build/bdist.macosx-10.3-fat/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
creating 'dist/MySQL_python-1.2.3-py2.6-macosx-10.3-fat.egg' and adding 'build/bdist.macosx-10.3-fat/egg' to it
removing 'build/bdist.macosx-10.3-fat/egg' (and everything under it)
Processing MySQL_python-1.2.3-py2.6-macosx-10.3-fat.egg
Removing /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/MySQL_python-1.2.3-py2.6-macosx-10.3-fat.egg
Copying MySQL_python-1.2.3-py2.6-macosx-10.3-fat.egg to /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages
MySQL-python 1.2.3 is already the active version in easy-install.pth
Installed /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/MySQL_python-1.2.3-py2.6-macosx-10.3-fat.egg
Processing dependencies for MySQL-python==1.2.3
Finished processing dependencies for MySQL-python==1.2.3
But when I try to use it, I get this:
caywork:MySQL-python-1.2.3 carl$ python -c "import MySQLdb"
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/MySQL_python-1.2.3-py2.6-macosx-10.3-fat.egg/_mysql.py:3: UserWarning: Module _mysql was already imported from /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/MySQL_python-1.2.3-py2.6-macosx-10.3-fat.egg/_mysql.pyc, but /Users/carl/Source/MySQL-python-1.2.3 is being added to sys.path
Traceback (most recent call last):
File "", line 1, in
File "MySQLdb/__init__.py", line 19, in
import _mysql
File "build/bdist.macosx-10.3-fat/egg/_mysql.py", line 7, in
File "build/bdist.macosx-10.3-fat/egg/_mysql.py", line 6, in __bootstrap__
ImportError: dlopen(/Users/carl/.python-eggs/MySQL_python-1.2.3-py2.6-macosx-10.3-fat.egg-tmp/_mysql.so, 2): Symbol not found: _mysql_affected_rows
Referenced from: /Users/carl/.python-eggs/MySQL_python-1.2.3-py2.6-macosx-10.3-fat.egg-tmp/_mysql.so
Expected in: dynamic lookup
All I can find on the web are older examples of this problem, along with numerous rants about how hard it is to get MySQL-python working on OSX. If anyone can help with this, I would greatly appreciate it!!
The only (admittedly kludgy) solution that I ended up getting to work was to use MySQL-python-1.2.2 after applying this patch, cobbled together from advice found here (http://www.mangoorange.com/2008/08/01/installing-python-mysqldb-122-on-mac-os-x/) and here (http://flo.nigsch.com/?p=62). Sorry for the lack of links but I don't have enough rep points to post more than one link.