[SOLVED] PyPlanet install errors

Python 3 Server Controller for Trackmania and Shootmania for script-only modes.

Moderators: TheM, toffe, NADEO

Locked
bass
Posts: 86
Joined: 21 Sep 2011, 23:36

[SOLVED] PyPlanet install errors

Post by bass »

Seeing these errors on the pip install pyplanet --upgrade stage of my install. Any ideas please?

Code: Select all

/temp.linux-x86_64-3.7/numpy/linalg/lapack_lite/f2c_c_lapack.o build/temp.linux-x86_64-3.7/numpy/linalg/lapack_lite/f2c_d_lapack.o build/temp.linux-x86_64-3.7/numpy/linalg/lapack_lite/f2c_s_lapack.o build/temp.linux-x86_64-3.7/numpy/linalg/lapack_lite/f2c_lapack.o build/temp.linux-x86_64-3.7/numpy/linalg/lapack_lite/f2c_blas.o build/temp.linux-x86_64-3.7/numpy/linalg/lapack_lite/f2c_config.o build/temp.linux-x86_64-3.7/numpy/linalg/lapack_lite/f2c.o -Lbuild/temp.linux-x86_64-3.7 -lnpymath -o build/lib.linux-x86_64-3.7/numpy/linalg/_umath_linalg.cpython-37m-x86_64-linux-gnu.so
      building 'numpy.random.mtrand' extension
      compiling C sources
      C compiler: gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC

      creating build/temp.linux-x86_64-3.7/numpy/random
      creating build/temp.linux-x86_64-3.7/numpy/random/mtrand
      compile options: '-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -Inumpy/core/include -Ibuild/src.linux-x86_64-3.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/root/.pyenv/versions/3.7.0/envs/dirt-server/include -I/root/.pyenv/versions/3.7.0/include/python3.7m -Ibuild/src.linux-x86_64-3.7/numpy/core/src/private -Ibuild/src.linux-x86_64-3.7/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.7/numpy/core/src/private -Ibuild/src.linux-x86_64-3.7/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.7/numpy/core/src/private -Ibuild/src.linux-x86_64-3.7/numpy/core/src/npymath -c'
      gcc: numpy/random/mtrand/mtrand.c
      numpy/random/mtrand/mtrand.c: In function â__Pyx_PyCFunction_FastCallâ:
      numpy/random/mtrand/mtrand.c:44374:13: error: too many arguments to function â(PyObject * (*)(PyObject *, PyObject * const*, Py_ssize_t))methâ
           return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL);
                  ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      numpy/random/mtrand/mtrand.c: In function â__Pyx__ExceptionSaveâ:
      numpy/random/mtrand/mtrand.c:44793:21: error: âPyThreadState {aka struct _ts}â has no member named âexc_typeâ; did you mean âcurexc_typeâ?
           *type = tstate->exc_type;
                           ^~~~~~~~
                           curexc_type
      numpy/random/mtrand/mtrand.c:44794:22: error: âPyThreadState {aka struct _ts}â has no member named âexc_valueâ; did you mean âcurexc_valueâ?
           *value = tstate->exc_value;
                            ^~~~~~~~~
                            curexc_value
      numpy/random/mtrand/mtrand.c:44795:19: error: âPyThreadState {aka struct _ts}â has no member named âexc_tracebackâ; did you mean âcurexc_tracebackâ?
           *tb = tstate->exc_traceback;
                         ^~~~~~~~~~~~~
                         curexc_traceback
      numpy/random/mtrand/mtrand.c: In function â__Pyx__ExceptionResetâ:
      numpy/random/mtrand/mtrand.c:44802:24: error: âPyThreadState {aka struct _ts}â has no member named âexc_typeâ; did you mean âcurexc_typeâ?
           tmp_type = tstate->exc_type;
                              ^~~~~~~~
                              curexc_type
      numpy/random/mtrand/mtrand.c:44803:25: error: âPyThreadState {aka struct _ts}â has no member named âexc_valueâ; did you mean âcurexc_valueâ?
           tmp_value = tstate->exc_value;
                               ^~~~~~~~~
                               curexc_value
      numpy/random/mtrand/mtrand.c:44804:22: error: âPyThreadState {aka struct _ts}â has no member named âexc_tracebackâ; did you mean âcurexc_tracebackâ?
           tmp_tb = tstate->exc_traceback;
                            ^~~~~~~~~~~~~
                            curexc_traceback
      numpy/random/mtrand/mtrand.c:44805:13: error: âPyThreadState {aka struct _ts}â has no member named âexc_typeâ; did you mean âcurexc_typeâ?
           tstate->exc_type = type;
                   ^~~~~~~~
                   curexc_type
      numpy/random/mtrand/mtrand.c:44806:13: error: âPyThreadState {aka struct _ts}â has no member named âexc_valueâ; did you mean âcurexc_valueâ?
           tstate->exc_value = value;
                   ^~~~~~~~~
                   curexc_value
      numpy/random/mtrand/mtrand.c:44807:13: error: âPyThreadState {aka struct _ts}â has no member named âexc_tracebackâ; did you mean âcurexc_tracebackâ?
           tstate->exc_traceback = tb;
                   ^~~~~~~~~~~~~
                   curexc_traceback
      numpy/random/mtrand/mtrand.c: In function â__Pyx__GetExceptionâ:
      numpy/random/mtrand/mtrand.c:44862:24: error: âPyThreadState {aka struct _ts}â has no member named âexc_typeâ; did you mean âcurexc_typeâ?
           tmp_type = tstate->exc_type;
                              ^~~~~~~~
                              curexc_type
      numpy/random/mtrand/mtrand.c:44863:25: error: âPyThreadState {aka struct _ts}â has no member named âexc_valueâ; did you mean âcurexc_valueâ?
           tmp_value = tstate->exc_value;
                               ^~~~~~~~~
                               curexc_value
      numpy/random/mtrand/mtrand.c:44864:22: error: âPyThreadState {aka struct _ts}â has no member named âexc_tracebackâ; did you mean âcurexc_tracebackâ?
           tmp_tb = tstate->exc_traceback;
                            ^~~~~~~~~~~~~
                            curexc_traceback
      numpy/random/mtrand/mtrand.c:44865:13: error: âPyThreadState {aka struct _ts}â has no member named âexc_typeâ; did you mean âcurexc_typeâ?
           tstate->exc_type = local_type;
                   ^~~~~~~~
                   curexc_type
      numpy/random/mtrand/mtrand.c:44866:13: error: âPyThreadState {aka struct _ts}â has no member named âexc_valueâ; did you mean âcurexc_valueâ?
           tstate->exc_value = local_value;
                   ^~~~~~~~~
                   curexc_value
      numpy/random/mtrand/mtrand.c:44867:13: error: âPyThreadState {aka struct _ts}â has no member named âexc_tracebackâ; did you mean âcurexc_tracebackâ?
           tstate->exc_traceback = local_tb;
                   ^~~~~~~~~~~~~
                   curexc_traceback
      numpy/random/mtrand/mtrand.c: In function â__Pyx_PyCFunction_FastCallâ:
      numpy/random/mtrand/mtrand.c:44374:13: error: too many arguments to function â(PyObject * (*)(PyObject *, PyObject * const*, Py_ssize_t))methâ
           return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL);
                  ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      numpy/random/mtrand/mtrand.c: In function â__Pyx__ExceptionSaveâ:
      numpy/random/mtrand/mtrand.c:44793:21: error: âPyThreadState {aka struct _ts}â has no member named âexc_typeâ; did you mean âcurexc_typeâ?
           *type = tstate->exc_type;
                           ^~~~~~~~
                           curexc_type
      numpy/random/mtrand/mtrand.c:44794:22: error: âPyThreadState {aka struct _ts}â has no member named âexc_valueâ; did you mean âcurexc_valueâ?
           *value = tstate->exc_value;
                            ^~~~~~~~~
                            curexc_value
      numpy/random/mtrand/mtrand.c:44795:19: error: âPyThreadState {aka struct _ts}â has no member named âexc_tracebackâ; did you mean âcurexc_tracebackâ?
           *tb = tstate->exc_traceback;
                         ^~~~~~~~~~~~~
                         curexc_traceback
      numpy/random/mtrand/mtrand.c: In function â__Pyx__ExceptionResetâ:
      numpy/random/mtrand/mtrand.c:44802:24: error: âPyThreadState {aka struct _ts}â has no member named âexc_typeâ; did you mean âcurexc_typeâ?
           tmp_type = tstate->exc_type;
                              ^~~~~~~~
                              curexc_type
      numpy/random/mtrand/mtrand.c:44803:25: error: âPyThreadState {aka struct _ts}â has no member named âexc_valueâ; did you mean âcurexc_valueâ?
           tmp_value = tstate->exc_value;
                               ^~~~~~~~~
                               curexc_value
      numpy/random/mtrand/mtrand.c:44804:22: error: âPyThreadState {aka struct _ts}â has no member named âexc_tracebackâ; did you mean âcurexc_tracebackâ?
           tmp_tb = tstate->exc_traceback;
                            ^~~~~~~~~~~~~
                            curexc_traceback
      numpy/random/mtrand/mtrand.c:44805:13: error: âPyThreadState {aka struct _ts}â has no member named âexc_typeâ; did you mean âcurexc_typeâ?
           tstate->exc_type = type;
                   ^~~~~~~~
                   curexc_type
      numpy/random/mtrand/mtrand.c:44806:13: error: âPyThreadState {aka struct _ts}â has no member named âexc_valueâ; did you mean âcurexc_valueâ?
           tstate->exc_value = value;
                   ^~~~~~~~~
                   curexc_value
      numpy/random/mtrand/mtrand.c:44807:13: error: âPyThreadState {aka struct _ts}â has no member named âexc_tracebackâ; did you mean âcurexc_tracebackâ?
           tstate->exc_traceback = tb;
                   ^~~~~~~~~~~~~
                   curexc_traceback
      numpy/random/mtrand/mtrand.c: In function â__Pyx__GetExceptionâ:
      numpy/random/mtrand/mtrand.c:44862:24: error: âPyThreadState {aka struct _ts}â has no member named âexc_typeâ; did you mean âcurexc_typeâ?
           tmp_type = tstate->exc_type;
                              ^~~~~~~~
                              curexc_type
      numpy/random/mtrand/mtrand.c:44863:25: error: âPyThreadState {aka struct _ts}â has no member named âexc_valueâ; did you mean âcurexc_valueâ?
           tmp_value = tstate->exc_value;
                               ^~~~~~~~~
                               curexc_value
      numpy/random/mtrand/mtrand.c:44864:22: error: âPyThreadState {aka struct _ts}â has no member named âexc_tracebackâ; did you mean âcurexc_tracebackâ?
           tmp_tb = tstate->exc_traceback;
                            ^~~~~~~~~~~~~
                            curexc_traceback
      numpy/random/mtrand/mtrand.c:44865:13: error: âPyThreadState {aka struct _ts}â has no member named âexc_typeâ; did you mean âcurexc_typeâ?
           tstate->exc_type = local_type;
                   ^~~~~~~~
                   curexc_type
      numpy/random/mtrand/mtrand.c:44866:13: error: âPyThreadState {aka struct _ts}â has no member named âexc_valueâ; did you mean âcurexc_valueâ?
           tstate->exc_value = local_value;
                   ^~~~~~~~~
                   curexc_value
      numpy/random/mtrand/mtrand.c:44867:13: error: âPyThreadState {aka struct _ts}â has no member named âexc_tracebackâ; did you mean âcurexc_tracebackâ?
           tstate->exc_traceback = local_tb;
                   ^~~~~~~~~~~~~
                   curexc_traceback
      error: Command "gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -Inumpy/core/include -Ibuild/src.linux-x86_64-3.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/root/.pyenv/versions/3.7.0/envs/dirt-server/include -I/root/.pyenv/versions/3.7.0/include/python3.7m -Ibuild/src.linux-x86_64-3.7/numpy/core/src/private -Ibuild/src.linux-x86_64-3.7/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.7/numpy/core/src/private -Ibuild/src.linux-x86_64-3.7/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.7/numpy/core/src/private -Ibuild/src.linux-x86_64-3.7/numpy/core/src/npymath -c numpy/random/mtrand/mtrand.c -o build/temp.linux-x86_64-3.7/numpy/random/mtrand/mtrand.o -MMD -MF build/temp.linux-x86_64-3.7/numpy/random/mtrand/mtrand.o.d" failed with exit status 1

      ----------------------------------------
  Command "/root/.pyenv/versions/3.7.0/envs/dirt-server/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-ii16k94s/numpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-zjs4dx5g/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-tt0rh_az --compile --install-headers /root/.pyenv/versions/3.7.0/envs/dirt-server/include/site/python3.7/numpy" failed with error code 1 in /tmp/pip-install-ii16k94s/numpy/

  ----------------------------------------
Command "/root/.pyenv/versions/3.7.0/envs/dirt-server/bin/python -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-tt0rh_az --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- wheel setuptools Cython "numpy==1.9.3; python_version=='3.5'" "numpy==1.12.1; python_version=='3.6'" "numpy==1.13.1; python_version>='3.7'"" failed with error code 1 in None
bass
Posts: 86
Joined: 21 Sep 2011, 23:36

Re: PyPlanet install errors

Post by bass »

Hello. Help Anyone?

Keep getting the same error. On 3 different machines and 3 different distro's sigh :teub:
User avatar
toffe
Posts: 782
Joined: 15 Jun 2013, 10:57
Location: The Netherlands
Contact:

Re: PyPlanet install errors

Post by toffe »

Sorry for the quite late reply.
Can you please try again with python 3.6.x? Also, make sure you have the build-essentials installed on Ubuntu/Debian.
bass
Posts: 86
Joined: 21 Sep 2011, 23:36

Re: PyPlanet install errors

Post by bass »

Yes! That corrected the issue! On to configure....

Thanks! :thumbsup:

bass
User avatar
toffe
Posts: 782
Joined: 15 Jun 2013, 10:57
Location: The Netherlands
Contact:

Re: PyPlanet install errors

Post by toffe »

PyPlanet 0.6.1 supports Python 3.7 and is just released.
Locked

Return to “PyPlanet”

Who is online

Users browsing this forum: No registered users and 2 guests