problem with installing python module / gcc

  • Posted January 4, 2014

Hello, i’m trying to install python module(twisted) which requires gcc to be installed. I’m very newbie to all server things, I’ve install gcc by using “yum install gcc” and then I tried to install “twisted” again. The console has thrown this line: twisted/runner/portmap.c:55: warning: implicit declaration of function ‘Py_InitModule’

twisted/runner/portmap.c:55: error: ‘PortmapMethods’ undeclared (first use in this function)

twisted/runner/portmap.c:55: error: (Each undeclared identifier is reported only once

twisted/runner/portmap.c:55: error: for each function it appears in.)

error: command ‘gcc’ failed with exit status 1

Cleaning up… Command /usr/bin/python -c “import setuptools, tokenize;file=‘/tmp/pip_build_root/Twisted/’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(‘\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-zzFLEI-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/Twisted Traceback (most recent call last): File “/usr/bin/pip”, line 9, in <module> load_entry_point(‘pip==1.5’, ‘console_scripts’, ‘pip’)() File “/usr/lib/python2.6/site-packages/pip/”, line 185, in main return command.main(cmd_args) File “/usr/lib/python2.6/site-packages/pip/”, line 161, in main text = ‘\n’.join(complete_log) UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe2 in position 49: ordinal not in range(128)

How can I fix this? Thank you for help


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Got through this! <br>To get it working i’ve created new droplet on ubuntu. Then upgrade your apt-get to newest version, and type this: <br>sudo apt-get install libxml2-dev libxslt-dev
<br> <br>