I am using an old Mac Mini without internet connection, with OS X 10.3.7 and Python 2.7.7,
and cannot install timeloop with "python setup.py install".
Should timeloop principally work on this system?
Is there maybe any other way to get it work on this rather old machine?
Please don't recommend me to use a newer system: It's a project and I need to use this computer.
I would appreciate your help very much.
what I get is this: Do you see any error message which could help?
$ python setup.py install
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
running install
running bdist_egg
running egg_info
writing timeloop.egg-info/PKG-INFO
writing top-level names to timeloop.egg-info/top_level.txt
writing dependency_links to timeloop.egg-info/dependency_links.txt
reading manifest file 'timeloop.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'timeloop.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.3-ppc/egg
running install_lib
running build_py
creating build/bdist.macosx-10.3-ppc/egg
creating build/bdist.macosx-10.3-ppc/egg/timeloop
copying build/lib/timeloop/exceptions.py -> build/bdist.macosx-10.3-ppc/egg/timeloop
byte-compiling build/bdist.macosx-10.3-ppc/egg/timeloop/exceptions.py to exceptions.pyc
creating build/bdist.macosx-10.3-ppc/egg/EGG-INFO
copying timeloop.egg-info/PKG-INFO -> build/bdist.macosx-10.3-ppc/egg/EGG-INFO
copying timeloop.egg-info/SOURCES.TXT -> build/bdist.macosx-10.3-ppc/egg/EGG-INFO
copying timeloop.egg-info/dependency_links.txt -> build/bdist.macosx-10.3-ppc/egg/EGG-INFO
copying timeloop.egg-info/top_level.txt -> build/bdist.macosx-10.3-ppc/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/timeloop-1.0.2-py2.7.egg' and adding 'build/bdist.macosx-10.3-ppc/egg' to it
removing 'build/bdist.macosx-10.3-ppc/egg' (and everything under it)
Processing timeloop-1.0.2-py2.7.egg
Removing /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/timeloop-1.0.2-py2.7.egg
Copying timeloop-1.0.2-py2.7.egg to /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
Removing timeloop 1.0 from easy-install.pth file
Adding timeloop 1.0.2 to easy-install.pth file
Installed /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/timeloop-1.0.2-py2.7.egg
Processing dependencies for timeloop==1.0.2
Finished processing dependencies for timeloop==1.0.2
I am trying to install python kerbos library, setup.py fails with following. I have already done sudo apt-get update and sudo apt-get install python-dev(in that order). Here is the complete trackback of the process.
vaibhav#vaibhav-UCVN:~/Downloads/requests-kerberos-master$ sudo ./setup.py install
running install
running bdist_egg
running egg_info
writing requirements to requests_kerberos.egg-info/requires.txt
writing requests_kerberos.egg-info/PKG-INFO
writing top-level names to requests_kerberos.egg-info/top_level.txt
writing dependency_links to requests_kerberos.egg-info/dependency_links.txt
reading manifest file 'requests_kerberos.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'requests_kerberos.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/requests_kerberos
copying build/lib.linux-i686-2.7/requests_kerberos/compat.py -> build/bdist.linux-i686/egg/requests_kerberos
copying build/lib.linux-i686-2.7/requests_kerberos/__init__.py -> build/bdist.linux-i686/egg/requests_kerberos
copying build/lib.linux-i686-2.7/requests_kerberos/exceptions.py -> build/bdist.linux-i686/egg/requests_kerberos
copying build/lib.linux-i686-2.7/requests_kerberos/kerberos_.py -> build/bdist.linux-i686/egg/requests_kerberos
byte-compiling build/bdist.linux-i686/egg/requests_kerberos/compat.py to compat.pyc
byte-compiling build/bdist.linux-i686/egg/requests_kerberos/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-i686/egg/requests_kerberos/exceptions.py to exceptions.pyc
byte-compiling build/bdist.linux-i686/egg/requests_kerberos/kerberos_.py to kerberos_.pyc
creating build/bdist.linux-i686/egg/EGG-INFO
copying requests_kerberos.egg-info/PKG-INFO -> build/bdist.linux-i686/egg/EGG-INFO
copying requests_kerberos.egg-info/SOURCES.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying requests_kerberos.egg-info/dependency_links.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying requests_kerberos.egg-info/requires.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying requests_kerberos.egg-info/top_level.txt -> build/bdist.linux-i686/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/requests_kerberos-0.7.0-py2.7.egg' and adding 'build/bdist.linux-i686/egg' to it
removing 'build/bdist.linux-i686/egg' (and everything under it)
Processing requests_kerberos-0.7.0-py2.7.egg
Removing /usr/local/lib/python2.7/dist-packages/requests_kerberos-0.7.0-py2.7.egg
Copying requests_kerberos-0.7.0-py2.7.egg to /usr/local/lib/python2.7/dist-packages
requests-kerberos 0.7.0 is already the active version in easy-install.pth
Installed /usr/local/lib/python2.7/dist-packages/requests_kerberos-0.7.0-py2.7.egg
Processing dependencies for requests-kerberos==0.7.0
Searching for kerberos==1.1.1
Reading https://pypi.python.org/simple/kerberos/
Best match: kerberos 1.1.1
Downloading https://pypi.python.org/packages/source/k/kerberos/kerberos-1.1.1.tar.gz#md5=09ff604748b8c32dc9698e714f32b8a5
Processing kerberos-1.1.1.tar.gz
Writing /tmp/easy_install-CEXP8g/kerberos-1.1.1/setup.cfg
Running kerberos-1.1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-CEXP8g/kerberos-1.1.1/egg-dist-tmp-snGH08
i686-linux-gnu-gcc: error: sh:: No such file or directory
i686-linux-gnu-gcc: error: 1:: No such file or directory
i686-linux-gnu-gcc: error: krb5-config:: No such file or directory
i686-linux-gnu-gcc: error: not: No such file or directory
i686-linux-gnu-gcc: error: found: No such file or directory
error: Setup script exited with error: command 'i686-linux-gnu-gcc' failed with exit status 1
Based on the output here:
i686-linux-gnu-gcc: error: sh:: No such file or directory
i686-linux-gnu-gcc: error: 1:: No such file or directory
i686-linux-gnu-gcc: error: krb5-config:: No such file or directory
i686-linux-gnu-gcc: error: not: No such file or directory
i686-linux-gnu-gcc: error: found: No such file or directory
it looks like you're missing krb5-config. You can install it from the libkrb5-dev package in Ubuntu or Debian.
Just install the package (Ubuntu):
apt-get install libkrb5-dev
Short and sweet.
I had to install a few pre-reqs
krb5-config
libkrb5-dev
libssl-dev
libsasl2-dev
libsasl2-modules-gssapi-mit
Credit: Sonal and Romain,
please follow the link below, to get all information.
https://groups.google.com/a/cloudera.org/forum/#!topic/hue-user/6pXQWH9OSO4
If you are using RHEL8 you need to install krb5-devel
sudo dnf install krb5-devel
which provides krb5-config.
I'm using setuptools to create a quick setup.py script to install dependencies for the user. The package only requires numpy and matlibplot. So the code looks something like this:
from setuptools import setup
setup(
name = "somePackageName",
version = "1.0",
packages = ['doc', 'inputs', 'inputs', 'src'],
install_requires = ['distribute == 0.7.3', 'numpy', 'matplotlib']
)
running sudo python setup.py install gives me the following:
running install
Checking .pth file support in /usr/local/lib/python2.7/dist-packages/
/usr/bin/python -E -c pass
TEST PASSED: /usr/local/lib/python2.7/dist-packages/ appears to support .pth files
running bdist_egg
running egg_info
creating fabSim.egg-info
writing requirements to fabSim.egg-info/requires.txt
writing fabSim.egg-info/PKG-INFO
writing top-level names to fabSim.egg-info/top_level.txt
writing dependency_links to fabSim.egg-info/dependency_links.txt
writing manifest file 'fabSim.egg-info/SOURCES.txt'
reading manifest file 'fabSim.egg-info/SOURCES.txt'
writing manifest file 'fabSim.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/doc
copying doc/__init__.py -> build/lib.linux-x86_64-2.7/doc
creating build/lib.linux-x86_64-2.7/inputs
copying inputs/__init__.py -> build/lib.linux-x86_64-2.7/inputs
creating build/lib.linux-x86_64-2.7/src
copying src/simulation.py -> build/lib.linux-x86_64-2.7/src
copying src/good.py -> build/lib.linux-x86_64-2.7/src
copying src/producer.py -> build/lib.linux-x86_64-2.7/src
copying src/__init__.py -> build/lib.linux-x86_64-2.7/src
copying src/validate.py -> build/lib.linux-x86_64-2.7/src
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/doc
copying build/lib.linux-x86_64-2.7/doc/__init__.py -> build/bdist.linux-x86_64/egg/doc
creating build/bdist.linux-x86_64/egg/src
copying build/lib.linux-x86_64-2.7/src/simulation.py -> build/bdist.linux-x86_64/egg/src
copying build/lib.linux-x86_64-2.7/src/good.py -> build/bdist.linux-x86_64/egg/src
copying build/lib.linux-x86_64-2.7/src/producer.py -> build/bdist.linux-x86_64/egg/src
copying build/lib.linux-x86_64-2.7/src/__init__.py -> build/bdist.linux-x86_64/egg/src
copying build/lib.linux-x86_64-2.7/src/validate.py -> build/bdist.linux-x86_64/egg/src
creating build/bdist.linux-x86_64/egg/inputs
copying build/lib.linux-x86_64-2.7/inputs/__init__.py -> build/bdist.linux-x86_64/egg/inputs
byte-compiling build/bdist.linux-x86_64/egg/doc/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/src/simulation.py to simulation.pyc
byte-compiling build/bdist.linux-x86_64/egg/src/good.py to good.pyc
byte-compiling build/bdist.linux-x86_64/egg/src/producer.py to producer.pyc
byte-compiling build/bdist.linux-x86_64/egg/src/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/src/validate.py to validate.pyc
byte-compiling build/bdist.linux-x86_64/egg/inputs/__init__.py to __init__.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying fabSim.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying fabSim.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying fabSim.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying fabSim.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying fabSim.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/fabSim-1.0-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing fabSim-1.0-py2.7.egg
removing '/usr/local/lib/python2.7/dist-packages/fabSim-1.0-py2.7.egg' (and everything under it)
creating /usr/local/lib/python2.7/dist-packages/fabSim-1.0-py2.7.egg
Extracting fabSim-1.0-py2.7.egg to /usr/local/lib/python2.7/dist-packages
fabSim 1.0 is already the active version in easy-install.pth
Installed /usr/local/lib/python2.7/dist-packages/fabSim-1.0-py2.7.egg
Processing dependencies for fabSim==1.0
Searching for matplotlib
Reading http://pypi.python.org/simple/matplotlib/
Reading http://matplotlib.sourceforge.net
Reading http://sourceforge.net/project/showfiles.php?group_id=80706
Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474
Reading http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474
Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194
Reading https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.1/
Reading http://matplotlib.org
Reading https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0.1/
Reading https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0
Reading https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.3/
Reading http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.0/
Reading http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.1/
Best match: matplotlib 1.3.0
Downloading https://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-1.3.0/matplotlib-1.3.0.tar.gz
Processing matplotlib-1.3.0.tar.gz
Writing /tmp/easy_install-xOXtid/matplotlib-1.3.0/setup.cfg
Running matplotlib-1.3.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-xOXtid/matplotlib-1.3.0/egg-dist-tmp-JFeCc4
The required version of distribute (>=0.6.28) is not available,
and can't be installed while this script is running. Please
install a more recent version first, using
'easy_install -U distribute'.
(Currently using distribute 0.6.28dev-r0 (/usr/lib/python2.7/dist-packages))
error: Setup script exited with 2
My understanding of setuptools is probably off as I expect it to update/install available dependencies from PyPI. Could someone provide additional insight on this?
pip install -U distribute
or
easy_install -U distribute
I am trying to install IMDbPY in all sorts of ways and keep failing. The package is not pure Python (it has a few C lines) and I suspect that the compilation is the root cause (I'm on Windows).
What I've attempted so far:
pip install imdbpy.
easy_install imdbpy.
Downloading IMDbPY-4.9.tar.gz from Pypi Package Index > IMDbPY 4.9, extracting the thing and then python setup.py install.
I've noticed that pip was trying to install the following packages: imdbpy, SQLObject, FormEncode, SQLAlchemy, decorator, Tempita. I've decided to try installing those packages one after the other by myself, starting with Tempita. I went to Pypi Package Index > Tempita, downloaded the archive, extracted and then python setup.py install. It also failed.
The output of each attempt:
pip install imdbpy:
Downloading/unpacking imdbpy
Running setup.py egg_info for package imdbpy
Created locale for: en it tr.
warning: no previously-included files matching '*~' found anywhere in distri
bution
no previously-included directories found matching 'CVS'
no previously-included directories found matching '.svn'
no previously-included directories found matching '.hg'
warning: no previously-included files matching 'CVS' found anywhere in distr
ibution
warning: no previously-included files matching '.svn' found anywhere in dist
ribution
Downloading/unpacking SQLObject (from imdbpy)
Running setup.py egg_info for package SQLObject
warning: no files found matching 'examples\*.py'
warning: no files found matching '*.py' under directory 'tests'
Downloading/unpacking FormEncode (from imdbpy)
Running setup.py egg_info for package FormEncode
warning: no files found matching '*.py' under directory '.'
no previously-included directories found matching '**\.svn'
Downloading/unpacking SQLAlchemy (from imdbpy)
Running setup.py egg_info for package SQLAlchemy
warning: no files found matching '*.jpg' under directory 'doc'
warning: no files found matching 'Makefile' under directory 'doc'
no previously-included directories found matching 'doc\build\output'
Downloading/unpacking sqlalchemy-migrate (from imdbpy)
Running setup.py egg_info for package sqlalchemy-migrate
warning: no files found matching '*' under directory 'tests'
warning: no previously-included files matching '*pyc' found anywhere in dist
ribution
warning: no previously-included files found matching '.hgtags'
warning: no previously-included files matching '*' found under directory 'do
cs\_build'
Requirement already satisfied (use --upgrade to upgrade): lxml in c:\python27\li
b\site-packages (from imdbpy)
Downloading/unpacking decorator (from sqlalchemy-migrate->imdbpy)
Running setup.py egg_info for package decorator
warning: no previously-included files found matching 'Makefile'
Downloading/unpacking Tempita>=0.4 (from sqlalchemy-migrate->imdbpy)
Running setup.py egg_info for package Tempita
Requirement already satisfied (use --upgrade to upgrade): distribute in c:\pytho
n27\lib\site-packages\distribute-0.6.15-py2.7.egg (from sqlalchemy-migrate->imdb
py)
Installing collected packages: imdbpy, SQLObject, FormEncode, SQLAlchemy, sqlalc
hemy-migrate, decorator, Tempita
Running setup.py install for imdbpy
Created locale for: en it tr.
building 'imdb.parser.sql.cutils' extension
====================================================================
ERROR
=====
Aaargh! An error! An error!
Curse my metal body, I wasn't fast enough. It's all my fault!
Anyway, if you were trying to build a package or install IMDbPY to your
system, looks like we're unable to fetch or install some dependencies,
or to compile the C module.
The best solution is to resolve these dependencies (maybe you're
not connected to Internet?) and/or install a C compiler.
You may, however, go on without some optional pieces of IMDbPY;
try re-running this script with the corresponding optional argument:
--without-lxml exclude lxml (speeds up 'http')
--without-cutils don't compile the C module (speeds up 'sql')
--without-sqlobject exclude SQLObject (you need at least one of)
--without-sqlalchemy exclude SQLAlchemy (SQLObject or SQLAlchemy,)
(if you want to access a )
(local SQL database )
--without-sql no access to SQL databases (implied if both
--without-sqlobject and --without-sqlalchemy
are used)
Example:
python ./setup.py --without-lxml --without-sql install
The caught exception, is re-raise below:
error: Unable to find vcvarsall.bat
Complete output from command C:\Python27\python.exe -c "import setuptools;__
file__='C:\\Users\\yonatan\\build\\imdbpy\\setup.py';execfile(__file__)" install
--single-version-externally-managed --record c:\users\yonatan\appdata\local\tem
p\pip-czwg98-record\install-record.txt:
Created locale for: en it tr.
running install
running build
running build_py
copying imdb\Character.py -> build\lib.win32-2.7\imdb
copying imdb\Company.py -> build\lib.win32-2.7\imdb
copying imdb\helpers.py -> build\lib.win32-2.7\imdb
copying imdb\linguistics.py -> build\lib.win32-2.7\imdb
copying imdb\Movie.py -> build\lib.win32-2.7\imdb
copying imdb\Person.py -> build\lib.win32-2.7\imdb
copying imdb\utils.py -> build\lib.win32-2.7\imdb
copying imdb\_compat.py -> build\lib.win32-2.7\imdb
copying imdb\_exceptions.py -> build\lib.win32-2.7\imdb
copying imdb\_logging.py -> build\lib.win32-2.7\imdb
copying imdb\__init__.py -> build\lib.win32-2.7\imdb
copying imdb\locale\generatepot.py -> build\lib.win32-2.7\imdb\locale
copying imdb\locale\msgfmt.py -> build\lib.win32-2.7\imdb\locale
copying imdb\locale\rebuildmo.py -> build\lib.win32-2.7\imdb\locale
copying imdb\locale\__init__.py -> build\lib.win32-2.7\imdb\locale
copying imdb\parser\__init__.py -> build\lib.win32-2.7\imdb\parser
copying imdb\parser\http\characterParser.py -> build\lib.win32-2.7\imdb\parser\h
ttp
copying imdb\parser\http\companyParser.py -> build\lib.win32-2.7\imdb\parser\htt
p
copying imdb\parser\http\movieParser.py -> build\lib.win32-2.7\imdb\parser\http
copying imdb\parser\http\personParser.py -> build\lib.win32-2.7\imdb\parser\http
copying imdb\parser\http\searchCharacterParser.py -> build\lib.win32-2.7\imdb\pa
rser\http
copying imdb\parser\http\searchCompanyParser.py -> build\lib.win32-2.7\imdb\pars
er\http
copying imdb\parser\http\searchKeywordParser.py -> build\lib.win32-2.7\imdb\pars
er\http
copying imdb\parser\http\searchMovieParser.py -> build\lib.win32-2.7\imdb\parser
\http
copying imdb\parser\http\searchPersonParser.py -> build\lib.win32-2.7\imdb\parse
r\http
copying imdb\parser\http\topBottomParser.py -> build\lib.win32-2.7\imdb\parser\h
ttp
copying imdb\parser\http\utils.py -> build\lib.win32-2.7\imdb\parser\http
copying imdb\parser\http\__init__.py -> build\lib.win32-2.7\imdb\parser\http
copying imdb\parser\mobile\__init__.py -> build\lib.win32-2.7\imdb\parser\mobile
copying imdb\parser\sql\alchemyadapter.py -> build\lib.win32-2.7\imdb\parser\sql
copying imdb\parser\sql\dbschema.py -> build\lib.win32-2.7\imdb\parser\sql
copying imdb\parser\sql\objectadapter.py -> build\lib.win32-2.7\imdb\parser\sql
copying imdb\parser\sql\__init__.py -> build\lib.win32-2.7\imdb\parser\sql
copying imdb\parser\http\bsouplxml\bsoupxpath.py -> build\lib.win32-2.7\imdb\par
ser\http\bsouplxml
copying imdb\parser\http\bsouplxml\etree.py -> build\lib.win32-2.7\imdb\parser\h
ttp\bsouplxml
copying imdb\parser\http\bsouplxml\html.py -> build\lib.win32-2.7\imdb\parser\ht
tp\bsouplxml
copying imdb\parser\http\bsouplxml\_bsoup.py -> build\lib.win32-2.7\imdb\parser\
http\bsouplxml
copying imdb\parser\http\bsouplxml\__init__.py -> build\lib.win32-2.7\imdb\parse
r\http\bsouplxml
running build_ext
building 'imdb.parser.sql.cutils' extension
====================================================================
ERROR
=====
Aaargh! An error! An error!
Curse my metal body, I wasn't fast enough. It's all my fault!
Anyway, if you were trying to build a package or install IMDbPY to your
system, looks like we're unable to fetch or install some dependencies,
or to compile the C module.
The best solution is to resolve these dependencies (maybe you're
not connected to Internet?) and/or install a C compiler.
You may, however, go on without some optional pieces of IMDbPY;
try re-running this script with the corresponding optional argument:
--without-lxml exclude lxml (speeds up 'http')
--without-cutils don't compile the C module (speeds up 'sql')
--without-sqlobject exclude SQLObject (you need at least one of)
--without-sqlalchemy exclude SQLAlchemy (SQLObject or SQLAlchemy,)
(if you want to access a )
(local SQL database )
--without-sql no access to SQL databases (implied if both
--without-sqlobject and --without-sqlalchemy
are used)
Example:
python ./setup.py --without-lxml --without-sql install
The caught exception, is re-raise below:
error: Unable to find vcvarsall.bat
----------------------------------------
Command C:\Python27\python.exe -c "import setuptools;__file__='C:\\Users\\yonata
n\\build\\imdbpy\\setup.py';execfile(__file__)" install --single-version-externa
lly-managed --record c:\users\yonatan\appdata\local\temp\pip-czwg98-record\insta
ll-record.txt failed with error code 1
Storing complete log in C:\Users\yonatan\AppData\Roaming\pip\pip.log
easy_install imdbpy
Searching for imdbpy
Reading http://pypi.python.org/simple/imdbpy/
Reading http://imdbpy.sf.net/
Reading http://imdbpy.sf.net/?page=download
Best match: IMDbPY 4.9
Downloading http://pypi.python.org/packages/source/I/IMDbPY/IMDbPY-4.9.tar.gz#md
5=5b071cd63d1804ed568741d2db8d12b5
Processing IMDbPY-4.9.tar.gz
Running IMDbPY-4.9\setup.py -q bdist_egg --dist-dir c:\users\yonatan\appdata\loc
al\temp\easy_install-tubh5e\IMDbPY-4.9\egg-dist-tmp-nsslin
Created locale for: en it tr.
warning: no previously-included files matching '*~' found anywhere in distributi
on
no previously-included directories found matching 'CVS'
no previously-included directories found matching '.svn'
no previously-included directories found matching '.hg'
warning: no previously-included files matching 'CVS' found anywhere in distribut
ion
warning: no previously-included files matching '.svn' found anywhere in distribu
tion
====================================================================
ERROR
=====
Aaargh! An error! An error!
Curse my metal body, I wasn't fast enough. It's all my fault!
Anyway, if you were trying to build a package or install IMDbPY to your
system, looks like we're unable to fetch or install some dependencies,
or to compile the C module.
The best solution is to resolve these dependencies (maybe you're
not connected to Internet?) and/or install a C compiler.
You may, however, go on without some optional pieces of IMDbPY;
try re-running this script with the corresponding optional argument:
--without-lxml exclude lxml (speeds up 'http')
--without-cutils don't compile the C module (speeds up 'sql')
--without-sqlobject exclude SQLObject (you need at least one of)
--without-sqlalchemy exclude SQLAlchemy (SQLObject or SQLAlchemy,)
(if you want to access a )
(local SQL database )
--without-sql no access to SQL databases (implied if both
--without-sqlobject and --without-sqlalchemy
are used)
Example:
python ./setup.py --without-lxml --without-sql install
The caught exception, is re-raise below:
error: Setup script exited with error: Unable to find vcvarsall.bat
python setup.py install
Created locale for: en it tr.
====================================================================
ERROR
=====
Aaargh! An error! An error!
Curse my metal body, I wasn't fast enough. It's all my fault!
Anyway, if you were trying to build a package or install IMDbPY to your
system, looks like we're unable to fetch or install some dependencies,
or to compile the C module.
The best solution is to resolve these dependencies (maybe you're
not connected to Internet?) and/or install a C compiler.
You may, however, go on without some optional pieces of IMDbPY;
try re-running this script with the corresponding optional argument:
--without-lxml exclude lxml (speeds up 'http')
--without-cutils don't compile the C module (speeds up 'sql')
--without-sqlobject exclude SQLObject (you need at least one of)
--without-sqlalchemy exclude SQLAlchemy (SQLObject or SQLAlchemy,)
(if you want to access a )
(local SQL database )
--without-sql no access to SQL databases (implied if both
--without-sqlobject and --without-sqlalchemy
are used)
Example:
python ./setup.py --without-lxml --without-sql install
The caught exception, is re-raise below:
error in IMDbPY setup command: access to SQL databases wants to be able to remov
e imdb.parser.sql, but the distribution doesn't contain any packages or modules
under imdb.parser.sql
Trying to install Tempita with python setup.py install
running install
running bdist_egg
running egg_info
creating Tempita.egg-info
writing Tempita.egg-info\PKG-INFO
writing top-level names to Tempita.egg-info\top_level.txt
writing dependency_links to Tempita.egg-info\dependency_links.txt
writing manifest file 'Tempita.egg-info\SOURCES.txt'
warning: manifest_maker: standard file 'setup.py' not found
error: package directory 'tempita' does not exist
If you're using Python 2.7 32 bit you could try out the binary package listed towards the bottom of this page.
You could try installing Visual Studio Express 2008 (not 2010), it's free and provides the needed compiler.
You can also switch to ActivePython and use Pypm to install this package.
Running Python 2.7 X86 on Snow Leopard. Installed 64 bit MySQL to avoid conflicts between bit versions. However, still have issues installing MySQLdb.
After following this and various other online guides I'm still no closer. The output I receive during install is:
$ ARCHFLAGS='-arch x86_64' 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.6-x86_64/egg
running install_lib
running build_py
copying MySQLdb/release.py -> build/lib.macosx-10.6-x86_64-2.7/MySQLdb
running build_ext
copying build/lib.macosx-10.6-x86_64-2.7/MySQLdb/release.py -> build/bdist.macosx-10.6-x86_64/egg/MySQLdb
byte-compiling build/bdist.macosx-10.6-x86_64/egg/MySQLdb/release.py to release.pyc
creating stub loader for _mysql.so
byte-compiling build/bdist.macosx-10.6-x86_64/egg/_mysql.py to _mysql.pyc
copying MySQL_python.egg-info/PKG-INFO -> build/bdist.macosx-10.6-x86_64/egg/EGG-INFO
copying MySQL_python.egg-info/SOURCES.txt -> build/bdist.macosx-10.6-x86_64/egg/EGG-INFO
copying MySQL_python.egg-info/dependency_links.txt -> build/bdist.macosx-10.6-x86_64/egg/EGG-INFO
copying MySQL_python.egg-info/top_level.txt -> build/bdist.macosx-10.6-x86_64/egg/EGG-INFO
writing build/bdist.macosx-10.6-x86_64/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.6-x86_64.egg' and adding 'build/bdist.macosx- 10.6-x86_64/egg' to it
error: dist/MySQL_python-1.2.3-py2.7-macosx-10.6-x86_64.egg: Permission denied
Anyone know where I am going wrong?
Chances are that at one point you tried running python setup.py under sudo and now have a dist directory belonging to root. Clear out the existing dist subdirectory in your build directory and rerun:
sudo rm -rf ./dist
ARCHFLAGS='-arch x86_64' python setup.py install
If you then get permission errors in the final install step, you may need to run the install step under sudo:
sudo bash
export ARCHFLAGS='-arch x86_64'
/path/to/same/python2.7 setup.py install
exit
but it's probably better to not do that if you don't have to.