Note: This forum is merely an archive. It is no longer possible to register or post. - StackOverflow
New Ace of Spades Forums: http://buildandshoot.com/

Pyspades on Ubuntu

For all your hosting needs.

Pyspades on Ubuntu

Postby EnderdragonDE » Tue May 01, 2012 1:33 pm

Hello i have a problem, i will install a aos server on my VServer.
But when i will install this with the Tutorial by pyspades Wiki its dont work.

and when i install this with this tutorial:

http://ace-spades.com/forums/viewtopic.php?f=79&t=5267#p54382

Then i come only at Step 6.

When i Type "./build.sh" he says this:
Code: Select all
aceofspades@enderdragon:/opt/pyspades$ ./build.sh
Traceback (most recent call last):
  File "build.py", line 4, in <module>
    from Cython.Distutils import build_ext
ImportError: No module named Cython.Distutils
Traceback (most recent call last):
  File "setup.py", line 3, in <module>
    from Cython.Distutils import build_ext
ImportError: No module named Cython.Distutils


have everyone a other tutorial? or what is wrong?

Thanks (Sorry for the not perfect english)
EnderdragonDE
Member
 
Posts: 11
Joined: Tue May 01, 2012 1:27 pm

Re: Pyspades on Ubuntu

Postby EnderdragonDE » Tue May 01, 2012 4:26 pm

Nobody have a idea :(?
EnderdragonDE
Member
 
Posts: 11
Joined: Tue May 01, 2012 1:27 pm

Re: Pyspades on Ubuntu

Postby Falk3n » Tue May 01, 2012 5:56 pm

Code: Select all
ImportError: No module named Cython.Distutils


You don't seem to have this module installed properly or it can't find it. Quick google search on "cython" got me Cython's Webpage. Maybe you need to install this.
Image
User avatar
Falk3n
Member
 
Posts: 16
Joined: Tue Jan 03, 2012 10:36 pm

Re: Pyspades on Ubuntu

Postby EnderdragonDE » Tue May 01, 2012 6:25 pm

hm it works i can start the build.sh but now he says when i type ./build.sh:

Code: Select all
root@enderdragon:/opt/pyspades# ./build.sh
Traceback (most recent call last):
  File "build.py", line 5, in <module>
    from Cython.Build import cythonize
ImportError: No module named Build
running build_ext
cythoning enet.pyx to enet.c

Error converting Pyrex file to C:
------------------------------------------------------------
...
import atexit

from cpython cimport bool
^
------------------------------------------------------------

/opt/pyspades/enet/enet.pyx:3:0: 'cpython.pxd' not found

Error converting Pyrex file to C:
------------------------------------------------------------
...
import atexit

from cpython cimport bool

from libc.stddef cimport ptrdiff_t
^
------------------------------------------------------------

/opt/pyspades/enet/enet.pyx:5:0: 'libc.stddef.pxd' not found

Error converting Pyrex file to C:
------------------------------------------------------------
...
import atexit

from cpython cimport bool

from libc.stddef cimport ptrdiff_t
^
------------------------------------------------------------

/opt/pyspades/enet/enet.pyx:5:0: 'ptrdiff_t.pxd' not found

Error converting Pyrex file to C:
------------------------------------------------------------
...
import atexit

from cpython cimport bool

from libc.stddef cimport ptrdiff_t
                        ^
------------------------------------------------------------

/opt/pyspades/enet/enet.pyx:5:25: Name 'ptrdiff_t' not declared in module 'libc.  stddef'

Error converting Pyrex file to C:
------------------------------------------------------------
...
            elif op == 3:
                return self.address != obj.address
        raise NotImplementedError

    def __hash__(self):
        return <ptrdiff_t>self._enet_peer
               ^
------------------------------------------------------------

/opt/pyspades/enet/enet.pyx:427:16: 'ptrdiff_t' is not a type identifier
building 'enet' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototy  pes -fPIC -DHAS_POLL -DHAS_FCNTL -DHAS_MSGHDR_FLAGS -DHAS_SOCKLEN_T -DHAS_GETHOS  TBYNAME_R -DHAS_GETHOSTBYADDR_R -Ienet/include/ -I/usr/include/python2.6 -c enet  .c -o build/temp.linux-x86_64-2.6/enet.o -O3
enet.c:1:2: error: #error Do not use this file, it is the result of a failed Cyt  hon compilation.
error: command 'gcc' failed with exit status 1
EnderdragonDE
Member
 
Posts: 11
Joined: Tue May 01, 2012 1:27 pm

Re: Pyspades on Ubuntu

Postby Falk3n » Tue May 01, 2012 6:37 pm

Code: Select all
ImportError: No module named Build

It can't find the 'Build' module in Cython. Make sure you have it installed properly.

I think it'd be a good time to say I am unfamiliar with installing pyspades though.
Image
User avatar
Falk3n
Member
 
Posts: 16
Joined: Tue Jan 03, 2012 10:36 pm

Re: Pyspades on Ubuntu

Postby EnderdragonDE » Tue May 01, 2012 7:13 pm

i have installed Cython and the Package "Build" doesnt excist...


hm i installed Cython with:

Code: Select all
sudo apt-get install Cython
EnderdragonDE
Member
 
Posts: 11
Joined: Tue May 01, 2012 1:27 pm

Re: Pyspades on Ubuntu

Postby EnderdragonDE » Tue May 01, 2012 7:37 pm

hm now i have install Cython Manual but the same error...
EnderdragonDE
Member
 
Posts: 11
Joined: Tue May 01, 2012 1:27 pm

Re: Pyspades on Ubuntu

Postby EnderdragonDE » Tue May 01, 2012 8:24 pm

sorry for the double posts but i need urgent help...
EnderdragonDE
Member
 
Posts: 11
Joined: Tue May 01, 2012 1:27 pm

Re: Pyspades on Ubuntu

Postby ilplayde » Tue May 01, 2012 9:51 pm

use this to install cython:

sudo python -m easy_install cython
Image
ilplayde
Member
 
Posts: 39
Joined: Sat Feb 04, 2012 9:49 pm
Location: Germany

Re: Pyspades on Ubuntu

Postby EnderdragonDE » Tue May 01, 2012 9:57 pm

Same error:

Code: Select all
root@enderdragon:/opt/pyspades# ./build.sh
Traceback (most recent call last):
  File "build.py", line 5, in <module>
    from Cython.Build import cythonize
ImportError: No module named Build
running build_ext
cythoning enet.pyx to enet.c

Error converting Pyrex file to C:
------------------------------------------------------------
...
import atexit

from cpython cimport bool
^
------------------------------------------------------------

/opt/pyspades/enet/enet.pyx:3:0: 'cpython.pxd' not found

Error converting Pyrex file to C:
------------------------------------------------------------
...
import atexit

from cpython cimport bool

from libc.stddef cimport ptrdiff_t
^
------------------------------------------------------------

/opt/pyspades/enet/enet.pyx:5:0: 'libc.stddef.pxd' not found

Error converting Pyrex file to C:
------------------------------------------------------------
...
import atexit

from cpython cimport bool

from libc.stddef cimport ptrdiff_t
^
------------------------------------------------------------

/opt/pyspades/enet/enet.pyx:5:0: 'ptrdiff_t.pxd' not found

Error converting Pyrex file to C:
------------------------------------------------------------
...
import atexit

from cpython cimport bool

from libc.stddef cimport ptrdiff_t
                        ^
------------------------------------------------------------

/opt/pyspades/enet/enet.pyx:5:25: Name 'ptrdiff_t' not declared in module 'libc.stddef'

Error converting Pyrex file to C:
------------------------------------------------------------
...
            elif op == 3:
                return self.address != obj.address
        raise NotImplementedError

    def __hash__(self):
        return <ptrdiff_t>self._enet_peer
               ^
------------------------------------------------------------

/opt/pyspades/enet/enet.pyx:427:16: 'ptrdiff_t' is not a type identifier
building 'enet' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DHAS_POLL -DHAS_FCNTL -DHAS_MSGHDR_FLAGS -DHAS_SOCKLEN_T -DHAS_GETHOSTBYNAME_R -DHAS_GETHOSTBYADDR_R -Ienet/include/ -I/usr/include/python2.6 -c enet.c -o build/temp.linux-x86_64-2.6/enet.o -O3
enet.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
error: command 'gcc' failed with exit status 1
EnderdragonDE
Member
 
Posts: 11
Joined: Tue May 01, 2012 1:27 pm

Re: Pyspades on Ubuntu

Postby EnderdragonDE » Wed May 02, 2012 12:09 am

need help :S
EnderdragonDE
Member
 
Posts: 11
Joined: Tue May 01, 2012 1:27 pm

Re: Pyspades on Ubuntu

Postby EnderdragonDE » Wed May 02, 2012 12:18 pm

push push push
EnderdragonDE
Member
 
Posts: 11
Joined: Tue May 01, 2012 1:27 pm

Re: Pyspades on Ubuntu

Postby ilplayde » Wed May 02, 2012 6:05 pm

try:
sh build.sh

instead of
./build.sh
Image
ilplayde
Member
 
Posts: 39
Joined: Sat Feb 04, 2012 9:49 pm
Location: Germany

Re: Pyspades on Ubuntu

Postby EnderdragonDE » Thu May 03, 2012 10:14 am

Same error...


Code: Select all
 File "build.py", line 5, in <module>
    from Cython.Build import cythonize
ImportError: No module named Build
running build_ext
cythoning enet.pyx to enet.c

Error converting Pyrex file to C:
------------------------------------------------------------
...
import atexit

from cpython cimport bool
^
------------------------------------------------------------

/opt/pyspades/enet/enet.pyx:3:0: 'cpython.pxd' not found

Error converting Pyrex file to C:
------------------------------------------------------------
...
import atexit

from cpython cimport bool

from libc.stddef cimport ptrdiff_t
^
------------------------------------------------------------

/opt/pyspades/enet/enet.pyx:5:0: 'libc.stddef.pxd' not found

Error converting Pyrex file to C:
------------------------------------------------------------
...
import atexit

from cpython cimport bool

from libc.stddef cimport ptrdiff_t
^
------------------------------------------------------------

/opt/pyspades/enet/enet.pyx:5:0: 'ptrdiff_t.pxd' not found

Error converting Pyrex file to C:
------------------------------------------------------------
...
import atexit

from cpython cimport bool

from libc.stddef cimport ptrdiff_t
                        ^
------------------------------------------------------------

/opt/pyspades/enet/enet.pyx:5:25: Name 'ptrdiff_t' not declared in module 'libc.stddef'

Error converting Pyrex file to C:
------------------------------------------------------------
...
            elif op == 3:
                return self.address != obj.address
        raise NotImplementedError

    def __hash__(self):
        return <ptrdiff_t>self._enet_peer
               ^
------------------------------------------------------------

/opt/pyspades/enet/enet.pyx:427:16: 'ptrdiff_t' is not a type identifier
building 'enet' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DHAS_POLL -DHAS_FCNTL -DHAS_MSGHDR_FLAGS -DHAS_SOCKLEN_T -DHAS_GETHOSTBYNAME_R -DHAS_GETHOSTBYADDR_R -Ienet/include/ -I/usr/include/python2.6 -c enet.c -o build/temp.linux-x86_64-2.6/enet.o -O3
enet.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
error: command 'gcc' failed with exit status 1



Ich denke du kannst deutsch laut deiner Signatur :P
EnderdragonDE
Member
 
Posts: 11
Joined: Tue May 01, 2012 1:27 pm

Re: Pyspades on Ubuntu

Postby EnderdragonDE » Fri May 04, 2012 10:10 am

need help.... -.- :P
EnderdragonDE
Member
 
Posts: 11
Joined: Tue May 01, 2012 1:27 pm

Next

Return to Server



Who is online

Users browsing this forum: No registered users and 3 guests

cron