You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Здравствуйте, при попытке сборки и установки модуля для python3.5 под Astra linux 1.6 возникает ошибка при импорте >>> import parsec Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: dynamic module does not define module export function (PyInit_parsec)
Здравствуйте, при попытке сборки и установки модуля для python3.5 под Astra linux 1.6 возникает ошибка при импорте
>>> import parsec Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: dynamic module does not define module export function (PyInit_parsec)
Решение:
`root@srv:/usr/src/python-parsec# git diff parsec.c
diff --git a/parsec.c b/parsec.c
index 4bdbfbf..a383d0f 100644
--- a/parsec.c
+++ b/parsec.c
@@ -392,9 +392,9 @@ static PyObject* moduleinit(void)
}
#if PY_MAJOR_VERSION >= 3
-extern PyMODINIT_FUNC PyInit_parsecmod(void);
+extern PyMODINIT_FUNC PyInit_parsec(void);
-PyMODINIT_FUNC PyInit_parsecmod(void)
+PyMODINIT_FUNC PyInit_parsec(void)
{
return moduleinit();
}
`
The text was updated successfully, but these errors were encountered: