Skip to content
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

сборка модуля под Python3.5 Astra linux 1.6 #3

Open
papa-cliff opened this issue Nov 20, 2020 · 0 comments
Open

сборка модуля под Python3.5 Astra linux 1.6 #3

papa-cliff opened this issue Nov 20, 2020 · 0 comments

Comments

@papa-cliff
Copy link

papa-cliff commented Nov 20, 2020

Здравствуйте, при попытке сборки и установки модуля для 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();
}
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant