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

Wheel / Support for Python 3.9 #42

Open
cryptocoinserver opened this issue Nov 1, 2020 · 8 comments
Open

Wheel / Support for Python 3.9 #42

cryptocoinserver opened this issue Nov 1, 2020 · 8 comments

Comments

@cryptocoinserver
Copy link

I got this error trying it on the new Python 3.9.


  ERROR: Command errored out with exit status 1:

   command: /home/travis/virtualenv/python3.9.0/bin/python /home/travis/virtualenv/python3.9.0/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpunr0p85k

       cwd: /tmp/pip-install-apt3uj1d/tulipy

  Complete output (143 lines):

  running bdist_wheel

  running build

  running build_py

  creating build

  creating build/lib.linux-x86_64-3.9

  creating build/lib.linux-x86_64-3.9/tulipy

  copying tulipy/__init__.py -> build/lib.linux-x86_64-3.9/tulipy

  running build_ext

  skipping 'tulipy/lib/__init__.c' Cython extension (up-to-date)

  building 'tulipy.lib' extension

  creating build/temp.linux-x86_64-3.9

  creating build/temp.linux-x86_64-3.9/libindicators

  creating build/temp.linux-x86_64-3.9/tulipy

  creating build/temp.linux-x86_64-3.9/tulipy/lib

  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fPIC -Ilibindicators -Itulipy/lib -I/tmp/pip-build-env-1fr4vj2s/overlay/lib/python3.9/site-packages/numpy/core/include -I/home/travis/virtualenv/python3.9.0/include -I/opt/python/3.9.0/include/python3.9 -c libindicators/tiamalgamation.c -o build/temp.linux-x86_64-3.9/libindicators/tiamalgamation.o

  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fPIC -Ilibindicators -Itulipy/lib -I/tmp/pip-build-env-1fr4vj2s/overlay/lib/python3.9/site-packages/numpy/core/include -I/home/travis/virtualenv/python3.9.0/include -I/opt/python/3.9.0/include/python3.9 -c tulipy/lib/__init__.c -o build/temp.linux-x86_64-3.9/tulipy/lib/__init__.o

  In file included from /tmp/pip-build-env-1fr4vj2s/overlay/lib/python3.9/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822:0,

                   from /tmp/pip-build-env-1fr4vj2s/overlay/lib/python3.9/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,

                   from /tmp/pip-build-env-1fr4vj2s/overlay/lib/python3.9/site-packages/numpy/core/include/numpy/arrayobject.h:4,

                   from tulipy/lib/__init__.c:594:

  /tmp/pip-build-env-1fr4vj2s/overlay/lib/python3.9/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]

   #warning "Using deprecated NumPy API, disable it with " \

    ^~~~~~~

  tulipy/lib/__init__.c: In function ‘__pyx_pf_6tulipy_3lib_10_Indicator_2__call__’:

  tulipy/lib/__init__.c:3547:70: warning: passing argument 2 of ‘__pyx_v_self->info->indicator’ from incompatible pointer type [-Wincompatible-pointer-types]

     __pyx_v_ret = __pyx_v_self->info->indicator(__pyx_v_min_input_len, __pyx_v_c_inputs, (&(*__Pyx_BufPtrCContig1d(__pyx_t_5numpy_float64_t *, __pyx_pybuffernd_c_options.rcbuffer->pybuffer.buf, __pyx_t_22, __pyx_pybuffernd_c_options.diminfo[0].strides))), __pyx_v_c_outputs);

                                                                        ^~~~~~~~~~~~~~~~

  tulipy/lib/__init__.c:3547:70: note: expected ‘const double * const*’ but argument is of type ‘double **’

  tulipy/lib/__init__.c: In function ‘__Pyx_modinit_type_init_code’:

  tulipy/lib/__init__.c:8102:38: error: ‘PyTypeObject {aka struct _typeobject}’ has no member named ‘tp_print’; did you mean ‘tp_dict’?

     __pyx_type_6tulipy_3lib__Indicator.tp_print = 0;

                                        ^~~~~~~~

                                        tp_dict

  tulipy/lib/__init__.c: In function ‘__Pyx_ParseOptionalKeywords’:

  tulipy/lib/__init__.c:10033:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]

                       (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :

                       ^

  In file included from /opt/python/3.9.0/include/python3.9/unicodeobject.h:1026:0,

                   from /opt/python/3.9.0/include/python3.9/Python.h:97,

                   from tulipy/lib/__init__.c:4:

  /opt/python/3.9.0/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here

   static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {

                            ^~~~~~~~~~~~~~~~~~~~~~~~~~

  tulipy/lib/__init__.c:10033:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]

                       (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :

                       ^

  In file included from /opt/python/3.9.0/include/python3.9/unicodeobject.h:1026:0,

                   from /opt/python/3.9.0/include/python3.9/Python.h:97,

                   from tulipy/lib/__init__.c:4:

  /opt/python/3.9.0/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here

   Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(

                                               ^~~~~~~~~~~~~~~~~~~

  tulipy/lib/__init__.c:10033:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]

                       (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :

                       ^

  In file included from /opt/python/3.9.0/include/python3.9/unicodeobject.h:1026:0,

                   from /opt/python/3.9.0/include/python3.9/Python.h:97,

                   from tulipy/lib/__init__.c:4:

  /opt/python/3.9.0/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here

   static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {

                            ^~~~~~~~~~~~~~~~~~~~~~~~~~

  tulipy/lib/__init__.c:10033:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]

                       (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :

                       ^

  In file included from /opt/python/3.9.0/include/python3.9/unicodeobject.h:1026:0,

                   from /opt/python/3.9.0/include/python3.9/Python.h:97,

                   from tulipy/lib/__init__.c:4:

  /opt/python/3.9.0/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here

   static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {

                            ^~~~~~~~~~~~~~~~~~~~~~~~~~

  tulipy/lib/__init__.c:10033:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]

                       (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :

                       ^

  In file included from /opt/python/3.9.0/include/python3.9/unicodeobject.h:1026:0,

                   from /opt/python/3.9.0/include/python3.9/Python.h:97,

                   from tulipy/lib/__init__.c:4:

  /opt/python/3.9.0/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here

   Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(

                                               ^~~~~~~~~~~~~~~~~~~

  tulipy/lib/__init__.c:10033:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]

                       (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :

                       ^

  In file included from /opt/python/3.9.0/include/python3.9/unicodeobject.h:1026:0,

                   from /opt/python/3.9.0/include/python3.9/Python.h:97,

                   from tulipy/lib/__init__.c:4:

  /opt/python/3.9.0/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here

   static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {

                            ^~~~~~~~~~~~~~~~~~~~~~~~~~

  tulipy/lib/__init__.c:10049:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]

                           (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :

                           ^

  In file included from /opt/python/3.9.0/include/python3.9/unicodeobject.h:1026:0,

                   from /opt/python/3.9.0/include/python3.9/Python.h:97,

                   from tulipy/lib/__init__.c:4:

  /opt/python/3.9.0/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here

   static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {

                            ^~~~~~~~~~~~~~~~~~~~~~~~~~

  tulipy/lib/__init__.c:10049:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]

                           (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :

                           ^

  In file included from /opt/python/3.9.0/include/python3.9/unicodeobject.h:1026:0,

                   from /opt/python/3.9.0/include/python3.9/Python.h:97,

                   from tulipy/lib/__init__.c:4:

  /opt/python/3.9.0/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here

   Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(

                                               ^~~~~~~~~~~~~~~~~~~

  tulipy/lib/__init__.c:10049:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]

                           (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :

                           ^

  In file included from /opt/python/3.9.0/include/python3.9/unicodeobject.h:1026:0,

                   from /opt/python/3.9.0/include/python3.9/Python.h:97,

                   from tulipy/lib/__init__.c:4:

  /opt/python/3.9.0/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here

   static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {

                            ^~~~~~~~~~~~~~~~~~~~~~~~~~

  tulipy/lib/__init__.c:10049:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]

                           (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :

                           ^

  In file included from /opt/python/3.9.0/include/python3.9/unicodeobject.h:1026:0,

                   from /opt/python/3.9.0/include/python3.9/Python.h:97,

                   from tulipy/lib/__init__.c:4:

  /opt/python/3.9.0/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here

   static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {

                            ^~~~~~~~~~~~~~~~~~~~~~~~~~

  tulipy/lib/__init__.c:10049:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]

                           (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :

                           ^

  In file included from /opt/python/3.9.0/include/python3.9/unicodeobject.h:1026:0,

                   from /opt/python/3.9.0/include/python3.9/Python.h:97,

                   from tulipy/lib/__init__.c:4:

  /opt/python/3.9.0/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here

   Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(

                                               ^~~~~~~~~~~~~~~~~~~

  tulipy/lib/__init__.c:10049:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]

                           (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :

                           ^

  In file included from /opt/python/3.9.0/include/python3.9/unicodeobject.h:1026:0,

                   from /opt/python/3.9.0/include/python3.9/Python.h:97,

                   from tulipy/lib/__init__.c:4:

  /opt/python/3.9.0/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here

   static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {

                            ^~~~~~~~~~~~~~~~~~~~~~~~~~

  error: command '/usr/bin/gcc' failed with exit code 1

  ----------------------------------------

  ERROR: Failed building wheel for tulipy```

ERROR: Could not build wheels for tulipy which use PEP 517 and cannot be installed directly
@cameronscrosby
Copy link

I have this same issue. Any luck so far?

@cryptocoinserver
Copy link
Author

I forked it and updated the requirements: https://github.com/cryptocoinserver/tulipy
pip install newtulipy

@KarunChikhale
Copy link

hmm, do i trust you @cryptocoinserver

@cryptocoinserver
Copy link
Author

lol :D what would I have to gain? Feel free to check the commits and source.

@KarunChikhale
Copy link

@cryptocoinserver Haha, jk. I trust you :D

@codeplea
Copy link
Member

codeplea commented Mar 3, 2021

@cryptocoinserver Thank you for getting this working with Python 3.9. Would you have any interest in maintaining this on a semi-official basis?

@funghostvn
Copy link

I forked it and updated the requirements: https://github.com/cryptocoinserver/tulipy
pip install newtulipy

Thank for amazing package. It worked with numpy 1.20.3. But can you use numpy 1.19.x for newtulipy. Currently Tensorflow 2.5 require numpy ~1.19.3 so I can not use your package and tensorflow in a environment.

@cryptocoinserver
Copy link
Author

Now under: https://github.com/jesse-ai/tulipy
You can fork it and change whatever you like.

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

5 participants