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

Error when importing supplychainpy #67

Open
IlzeAmandaA opened this issue Dec 5, 2018 · 3 comments
Open

Error when importing supplychainpy #67

IlzeAmandaA opened this issue Dec 5, 2018 · 3 comments

Comments

@IlzeAmandaA
Copy link

Hi,
have been trying to install the package to Ubuntu via 'pip install supplychainpy==0.0.5'
but keep on getting this error:
supplychainpy/simulations/sim_summary.c:8290:13: error: too many arguments to function ‘(PyObject * ()(PyObject , PyObject * const, Py_ssize_t))meth’
return (
((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL);
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: command 'gcc' failed with exit status 1

Do you have any suggestions of how to fix it or alternatives for the installation?

@zenz
Copy link

zenz commented Jun 27, 2019

Perhaps you are using python 3.7? it seems this lib didn't support 3.7 yet.

@zenz
Copy link

zenz commented Jul 2, 2019

Current solution:

git clone the code to local path
git clone git@github.com:KevinFasusi/supplychainpy.git
then modify file simulations/sim_summary.c on line 8290 from
return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL);
to
return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs);

then on the source code root path run:

python setup.py sdist
cd dist
pip3 install supplychainpy-0.0.5.tar.gz

That's it, hope Kevin can revised the code soon.

@Goldfox88
Copy link

any help for when you are using python 3.7 on windows?

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

3 participants