Open jeybb opened 5 years ago
I was trying to modify ext/rle.c
PyMODINIT_FUNC initrle(void)
{
(void) Py_InitModule("rle", rle_methods);
}
to
static struct PyModuleDef rle =
{
PyModuleDef_HEAD_INIT,
"rle", /* name of module */
"", /* module documentation, may be NULL */
-1, /* size of per-interpreter state of the module, or -1 if the module keeps state in global variables. */
rle_methods
};
PyMODINIT_FUNC PyInit_rle(void)
{
return PyModule_Create(&rle);
}
, and modify code/log.py print "[*] %s"%message
to print("[*] %s"%message)
It can be successfully installed
Thank you, @warwolf767
Tested: Windows + Py3.6
Getting an error regarding Py_InitModule for RLC on build via pip install:
Searched around and it looks like a Py2.x vs 3.x issue:
https://github.com/vyassu/DeepSentiment/issues/8
Thanks for your time!