RedashCommunity / redash

The Community Led continuation of Redash. Make Your Company Data Driven. Connect to any data source, easily visualize, dashboard and share your data.
https://redash.community/
BSD 2-Clause "Simplified" License
37 stars 7 forks source link

[BUG] python3.10.0 Could you please provide more details about the error message you encountered when trying to install the existing dependencies from the requests.txt file? #51

Closed Avey777 closed 1 year ago

Avey777 commented 1 year ago

      src/gevent/libev/corecext.c:22579:17: warning: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
      22579 |             ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
            |                 ^
      src/gevent/libev/corecext.c:22584:17: warning: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
      22584 |             ret = _PyGen_Send((PyGenObject*)yf, value == Py_None ? NULL : value);
            |                 ^
      src/gevent/libev/corecext.c: In function ‘__Pyx_Generator_Next’:
      src/gevent/libev/corecext.c:22668:17: warning: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
      22668 |             ret = _PyGen_Send((PyGenObject*)yf, NULL);
            |                 ^
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for gevent
Failed to build greenlet gevent
ERROR: Could not build wheels for greenlet, gevent, which is required to install pyproject.toml-based projects
(redashenv) root@tospino:/home/booming/redash/redash# 
justinclift commented 1 year ago

Looking over that, it doesn't seem like the whole error message. Those 3 initial messages at the top have warning in them, so there's probably something above them with error in it. That'd be the main error which made gcc fail. In theory. :smile:

Avey777 commented 1 year ago

You can give it a try. What I did was to pull the latest code and then use the Python 3.10.0 environment to execute "pip install -r requirements.txt".