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

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

msg2314 (view) Author: kayhayen Date: 2018-03-13.19:26:01
Can you please retry, I think this got fixed.
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.

msg2288 (view) Author: freeseacher Date: 2017-11-05.02:31:07

Trying to compile with nuitka
with command 
nuitka --standalone --show-progress  --recurse-directory=/opt/noc
--recurse-not-to=numpy --recurse-not-to=mercurial --recurse-all

# dpkg -l | grep nuitka
ii  nuitka                

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 In function ‘void _createGlobalConstants()’: 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
 #define PyTuple_SET_ITEM(op, i, v) (((PyTupleObject *)(op))->ob_item[i] = v)
scons: *** [] Error 1

Any ideas how to fix it ?
Date User Action Args
2018-03-13 19:26:01kayhayensetstatus: chatting -> resolved
messages: + msg2314
2017-11-05 06:41:33kayhayensetstatus: unread -> chatting
assignedto: kayhayen
messages: + msg2289
nosy: + kayhayen
2017-11-05 02:31:08freeseachercreate