-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pylirc is not loadable for python3 #3
Comments
To make pylirc work with python3 struct module_state { #define GETSTATE(m) ((struct module_state*)PyModule_GetState(m)) static int pylircTraverse(PyObject *m, visitproc visit, void *arg) { static int pylircClear(PyObject *m) { static struct PyModuleDef moduledef = { PyObject * PyInit_pylirc(void)
} And you there is a need to avoid warning ... |
For me this is work on raspbian
|
But also there is a need to rename |
Could you please clone the repository and commit your changes? |
Hello! Thank you for pylirc.
Do you have any plans to support pylirc for python3?
Now pylirc is not loadable. I am not an expert of python. But I think it is because Py_InitModule() does not exist in python3. PyModule_Create() should be used instead.
https://docs.python.org/3/howto/cporting.html
I have installed pylirc as pip3 install pylirc2. Got an error
python3 -c 'import pylirc'
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named 'pylirc'
with -v option
Traceback (most recent call last):
File "", line 1, in
File "", line 2237, in _find_and_load
File "", line 2224, in _find_and_load_unlocked
ImportError: No module named 'pylirc'
if I rename /usr/local/lib/python3.4/dist-packages/pylircmodule.cpython-34m.so to /usr/local/lib/python3.4/dist-packages/pylirc.cpython-34m.so
Then I got
python3 -c 'import pylirc'
Traceback (most recent call last):
File "", line 1, in
ImportError: /usr/local/lib/python3.4/dist-packages/pylirc.cpython-34m.so: undefined symbol: Py_InitModule
The text was updated successfully, but these errors were encountered: