Kostas Psimoulis <rondinos@...> writes:

> 
> 
> Hello, I am having a really hard time to install imdbpy,Python Version is 
2.6.4Method 1)pip install IMDbPY just gets prints Downloading/unpacking IMDbPY 
and it gets stuck (tested for over one hour) using 100% cpu and doing 
nothing.Method 2)[code start]root <at> ubuntu:~# easy_install IMDbPYSearching 
for IMDbPYReading http://pypi.python.org/simple/IMDbPY/Reading 
http://imdbpy.sf.net/Reading http://imdbpy.sf.net/?page=downloadBest match: 
IMDbPY 4.7Downloading http://prdownloads.sourceforge.net/imdbpy/IMDbPY-
4.7.tar.gzProcessing IMDbPY-4.7.tar.gzRunning IMDbPY-4.7/setup.py -q bdist_egg -
-dist-dir /tmp/easy_install-yh1e46/IMDbPY-4.7/egg-dist-tmp-b3srKACreated locale 
for: tr en it.warning: no previously-included files matching '*~' found 
anywhere 
in distributionno 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 distributionwarning: no previously-included files 
matching '.svn' found anywhere in distributionimdb/parser/sql/cutils.c:54:20: 
error: Python.h: No such file or directoryimdb/parser/sql/cutils.c: In function 
‘strings_check’:imdb/parser/sql/cutils.c:74: warning: implicit declaration of 
function ‘strlen’imdb/parser/sql/cutils.c:74: warning: incompatible implicit 
declaration of built-in function ‘strlen’imdb/parser/sql/cutils.c:82: warning: 
implicit declaration of function ‘strcmp’imdb/parser/sql/cutils.c: In function 
‘ratcliff’:imdb/parser/sql/cutils.c:152: warning: incompatible implicit 
declaration of built-in function ‘strlen’imdb/parser/sql/cutils.c: In function 
‘strtolower’:imdb/parser/sql/cutils.c:164: warning: incompatible implicit 
declaration of built-in function ‘strlen’imdb/parser/sql/cutils.c:164: warning: 
implicit declaration of function ‘tolower’imdb/parser/sql/cutils.c: At top 
level:imdb/parser/sql/cutils.c:169: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’ before ‘*’ tokenimdb/parser/sql/cutils.c:207: error: expected 
‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ 
tokenimdb/parser/sql/cutils.c:254: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’ before ‘cutils_methods’imdb/parser/sql/cutils.c: In function 
‘initcutils’:imdb/parser/sql/cutils.c:266: warning: implicit declaration of 
function ‘Py_InitModule’imdb/parser/sql/cutils.c:266: error: ‘cutils_methods’ 
undeclared (first use in this function)imdb/parser/sql/cutils.c:266: error: 
(Each undeclared identifier is reported only onceimdb/parser/sql/cutils.c:266: 
error: for each function it appears 
in.)====================================================================  
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: command 'gcc' failed with exit 
status 1[code end]My gcc version is  4.4.1 (Ubuntu 4.4.1-4ubuntu9)Method 
3)python ./setup.py install (Fails with the same error)Method 4)The ubuntu 
package python-imdbpy installs successful but the problem is that I don't have 
and I cannot find anywhere the script imdbpy2sql.pyI found this script in the 
tar.gz file, but shouldn't this file be copied automatically to somewhere like 
/usr/local/bin ?I have all the other prerequisites installed such as sqlobject, 
sqlalchemy and python-mysqldb.
> 
> 
> ------------------------------------------------------------------------------
> Benefiting from Server Virtualization: Beyond Initial Workload 
> Consolidation -- Increasing the use of server virtualization is a top
> priority.Virtualization can reduce costs, simplify management, and improve 
> application availability and disaster protection. Learn more about boosting 
> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
> 
> _______________________________________________
> Imdbpy-help mailing list
> Imdbpy-help@...
> https://lists.sourceforge.net/lists/listinfo/imdbpy-help
> 


For the Python.h error, you need the Python Development Headers which can be 
installed via,

sudo apt-get install python-dev


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help

Reply via email to