Issue387

Title ‘PyNonetype_Type’ was not declared in this scope
Priority bug Status chatting
Superseder Nosy List freeseacher, kayhayen
Assigned To kayhayen Keywords

Created on 2017-11-05.02:31:08 by freeseacher, last changed by kayhayen.

Messages
msg2289 (view) Author: kayhayen Date: 2017-11-05.06:41:33
Hello there,

it seems the constant creation code for the tuple value "(None,)" fails, which is 
kind of surprising to me. It shouldn't be that rare. Obviously the way it is 
referenced there, is wrong, and could be fixed. I am compiling it myself now, 
obviously I do not have /opt/noc though, and let me note, that it is strange, that I 
had to put ".." in PYTHONPATH.

But I am optimistic to be able to come up with a minimal reproducer myself should 
that fail. The error is definitely not standalone related. I will definitely aim to 
hotfix it.

Yours,
Kay
msg2288 (view) Author: freeseacher Date: 2017-11-05.02:31:07
Hi!

Trying to compile https://github.com/nocproject/noc with nuitka
with command 
nuitka --standalone --show-progress  --recurse-directory=/opt/noc
--recurse-not-to=numpy --recurse-not-to=mercurial --recurse-all
services/activator/service.py

with 
# dpkg -l | grep nuitka
ii  nuitka                         0.5.28.1+ds-1 

under debian 8.8

got after about an hour

Nuitka:INFO:Total memory usage before running scons: 2.95 GB (3162390528 bytes):
In file included from /usr/include/python2.7/Python.h:99:0,
                 from /usr/share/nuitka/nuitka/build/include/nuitka/prelude.h:43,
                 from service.build/__constants.cpp:2:
service.build/__constants.cpp: In function ‘void _createGlobalConstants()’:
service.build/__constants.cpp:38860:72: error: ‘PyNonetype_Type’ was not
declared in this scope
     PyTuple_SET_ITEM( const_tuple_type_NoneType_tuple, 0, (PyObject
*)&PyNonetype_Type ); Py_INCREF( (PyObject *)&PyNonetype_Type );
                                                                        ^
/usr/include/python2.7/tupleobject.h:54:75: note: in definition of macro
‘PyTuple_SET_ITEM’
 #define PyTuple_SET_ITEM(op, i, v) (((PyTupleObject *)(op))->ob_item[i] = v)
                                                                           ^
scons: *** [service.build/__constants.o] Error 1

Any ideas how to fix it ?
History
Date User Action Args
2017-11-05 06:41:33kayhayensetstatus: unread -> chatting
assignedto: kayhayen
messages: + msg2289
nosy: + kayhayen
2017-11-05 02:31:08freeseachercreate