Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#6 setup.sh error

closed-later
Compilation (1)
6
2011-01-31
2010-12-23
Anonymous
No

running install
running build
running build_py
running build_ext
cythoning agent.pyx to agent.c

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

cdef class Agent:
"""Abstract base class for all agents"""

def __init__(self, object code, N.Neighborhood_2D corporality, N.Neighborhood_2D sensoriality, int prana, int mana, object address):
^
------------------------------------------------------------

/home/XXXX/ouroborus/birdcage/agent.pyx:37:38: 'N' is not declared

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

cdef class Agent:
"""Abstract base class for all agents"""

def __init__(self, object code, N.Neighborhood_2D corporality, N.Neighborhood_2D sensoriality, int prana, int mana, object address):
^
------------------------------------------------------------

/home/XXXX/ouroborus/birdcage/agent.pyx:37:69: 'N' is not declared

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

cdef class Agent_2D(Agent):
"""Base class for all agents based on a two-dimensional automaton."""

def __init__(self, object code, N.Neighborhood_2D corporality, N.Neighborhood_2D sensoriality, int prana, int mana, object address):
^
------------------------------------------------------------

/home/XXXX/ouroborus/birdcage/agent.pyx:186:38: 'N' is not declared

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

cdef class Agent_2D(Agent):
"""Base class for all agents based on a two-dimensional automaton."""

def __init__(self, object code, N.Neighborhood_2D corporality, N.Neighborhood_2D sensoriality, int prana, int mana, object address):
^
------------------------------------------------------------

/home/XXXX/ouroborus/birdcage/agent.pyx:186:69: 'N' is not declared
building 'agent' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c agent.c -o build/temp.linux-i686-2.6/agent.o
agent.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
/home/XXXX/ouroborus/worldish
running build_ext
mkdir: cannot create directory `creatures': File exists

Discussion

  • Would help a lot to know on which distro are you working and which version of cython had, also I think maybe you don't had python-imaging installed.

     
  • Corryn Cropian
    Corryn Cropian
    2011-01-05

    • priority: 5 --> 6
    • assigned_to: nobody --> sat_tara
    • status: open --> open-works-for-me
     
  • When reporting bugs please add info about OS, and version for example on Debian you can do cat /etc/issue to get in my case "Debian GNU/Linux 5.0 \n \l" also its really useful to know wich dependencies you had meet if those for cython or for pyrex for example to get a list of python related packages (with version numbers) also in Debian you can do dpkg -l | grep python with any normal user.

    If you're on a RPM based distro from memory the same for listing packages can be achieved doing rpm -qa | grep python (both dpkg and rpm invocations are almost the same, list all packages with grep you got the ones with the string, in this case python related).

     
    • status: open-works-for-me --> pending-later
     
  • Since the compilation works when using Pyrex as a compiler, the default compiler has been set to Pyrex. Why Cython does not work must still be investigated.

     
  • This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
    • status: pending-later --> closed-later
     
  • Changes done by sat_tara temporaly broken compilation, that it's fixed now in the current version on the svn repository.