Monday, December 28, 2015

pip install twisted hangs

I have my standalone box without internet connection and having pythong packages in a directory to install,

I used the following pip command to install the python package with the "requirement" file

/usr/bin/pip install --no-download -r ./installer/requirements -b ./installer/SOURCES/python-modules-sources --install-option=--prefix=/somedirectory/tmp

and the requirement file looks like this,


django==1.6.8
django-evolution==0.7.4
django-pipeline==1.3.25
django-haystack==2.3.1
argparse==1.3.0
markdown==2.4.1
mimeparse==0.1.3
recaptcha-client==1.0.6
SOAPpy==0.12.5
PyXB
python-dateutil==1.5
python-memcached==1.53
paramiko==1.15.1
Pygments==1.6
pytz==2014.7
feedparser==5.1.3
ecdsa==0.11
jsmin==2.0.6
docutils==0.12
fpconst==0.7.2
futures==2.2.0
pillowfight==0.2
Whoosh==2.6.0
wstools==0.3
twisted==13.2.0
backports.ssl-match-hostname==3.5.0.1
tornado==3.2
zope.interface==4.0.5
pycrypto==2.6.1



when executing  Running setup.py install for twisted
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.6 -c conftest.c -o conftest.o
    building 'twisted.runner.portmap' extension
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.6 -c twisted/runner/portmap.c -o build/temp.linux-x86_64-2.6/twisted/runner/portmap.o
    gcc -pthread -shared build/temp.linux-x86_64-2.6/twisted/runner/portmap.o -L/usr/lib64 -lpython2.6 -o build/lib.linux-x86_64-2.6/twisted/runner/portmap.so


It is hanging with the above line and after 15 to 20 mins, If I issue ctrl+c, it is not showing any error, and in /root/.pip/pip.log, I could see only the following at end,

 building 'twisted.runner.portmap' extension

    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.6 -c twisted/runner/portmap.c -o build/temp.linux-x86_64-2.6/twisted/runner/portmap.o

    gcc -pthread -shared build/temp.linux-x86_64-2.6/twisted/runner/portmap.o -L/usr/lib64 -lpython2.6 -o build/lib.linux-x86_64-2.6/twisted/runner/portmap.so

Operation cancelled by user

Exception information:
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/pip/basecommand.py", line 104, in main
    status = self.run(options, args)
  File "/usr/lib/python2.6/site-packages/pip/commands/install.py", line 250, in run
    requirement_set.install(install_options, global_options)
  File "/usr/lib/python2.6/site-packages/pip/req.py", line 1133, in install
    requirement.install(install_options, global_options)
  File "/usr/lib/python2.6/site-packages/pip/req.py", line 577, in install
    cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
  File "/usr/lib/python2.6/site-packages/pip/__init__.py", line 230, in call_subprocess
    line = console_to_str(stdout.readline())
KeyboardInterrupt


pip --version
pip 1.1 from /usr/lib/python2.6/site-packages (python 2.6)
python --version
Python 2.6.6


Would anyone please tell me where it is going wrong and what package is missing ?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/13a28a4b-12f0-47e1-bd41-7d3f8c82b72b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment