-1

I am trying to install Crossbar in my ubuntu 14.04.
I installed the dependencies as per the instruction here.
When I am trying to install cross the twisted installation fails.
I am having python 2.7.6. I installed all the python-devl packages and all are up to date. I am getting the below error when I execute "pip install crossbar".

copying twisted/internet/iocpreactor/iocpsupport/winsock_pointers.c -> build/lib.linux-i686-2.7/twisted/internet/iocpreactor/iocpsupport
copying twisted/python/sendmsg.c -> build/lib.linux-i686-2.7/twisted/python
copying twisted/test/raiser.c -> build/lib.linux-i686-2.7/twisted/test
running build_ext
cc -O2 -fPIC -Wimplicit -I/usr/lib/pypy/include -c conftest.c -o conftest.o
building 'twisted.runner.portmap' extension
creating build/temp.linux-i686-2.7
creating build/temp.linux-i686-2.7/twisted
creating build/temp.linux-i686-2.7/twisted/runner
cc -O2 -fPIC -Wimplicit -I/usr/lib/pypy/include -c twisted/runner/portmap.c -o build/temp.linux-i686-2.7/twisted/runner/portmap.o
twisted/runner/portmap.c:10:20: fatal error: Python.h: No such file or directory
include <Python.h>
compilation terminated.error: command 'cc' failed with exit status 1
oberstet
  • 21,353
  • 10
  • 64
  • 97
Joshua
  • 442
  • 1
  • 5
  • 20

1 Answers1

0

Do you have the dev files installed from pypy? I don't use Ubuntu, but I believe the package is called pypy-dev. I contains a proper Python.h.

The one you mention belongs to the main Python installation. /usr/include/python2.7/Python.h

jcoppens
  • 5,306
  • 6
  • 27
  • 47
  • Great ..It worked ..Can i use the standard python itself for the further Crossbar development ... – Joshua Aug 05 '14 at 19:15
  • I don't see why not. I understand that Pypy is the exception, not Python. But, admittedly, I've never used Crossbar. From their page it seems clear that they actually mean 'normal' Python though. – jcoppens Aug 05 '14 at 20:58
  • FWIW, Crossbar.io runs fine on PyPy. The recipe under http://crossbar.io/docs/Installation-on-Linux/ does mention steps to get started on PyPy. – oberstet Oct 18 '14 at 09:52