jacob_matson
01/03/2023, 10:55 PMjacob_matson
01/03/2023, 10:55 PMUtility 'superset' could not be installed: failed to install plugin 'superset'.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [944 lines of output]
Ignoring numpy: markers 'python_version < "3.9"' don't match your environment
jacob_matson
01/03/2023, 10:56 PMutilities:
- name: superset
variant: apache
pip_url: apache-superset>=2.0.0 markupsafe==2.0.1 Werkzeug==2.0.3 WTForms==2.3.0 duckdb-engine==0.6.4 cryptography==3.4.7
config:
ENABLE_PROXY_FIX: true
edgar_ramirez_mondragon
01/03/2023, 10:57 PMedgar_ramirez_mondragon
01/03/2023, 10:59 PMmeltano install --force
to ignore the python version marker, but I don’t know if that will then cause pip to try building the numpy binary 🤔)jacob_matson
01/03/2023, 11:01 PMsetup.py:67: RuntimeWarning: NumPy 1.19.4 may not yet support Python 3.10.
christoph
01/03/2023, 11:01 PMchristoph
01/03/2023, 11:01 PMNumPy 1.19.4That sounds like an incorrect numpy version ...
christoph
01/03/2023, 11:02 PMedgar_ramirez_mondragon
01/03/2023, 11:02 PMduckdb-engine
) might require that older numpyjacob_matson
01/03/2023, 11:03 PMjacob_matson
01/03/2023, 11:03 PMchristoph
01/03/2023, 11:04 PMchristoph
01/03/2023, 11:05 PMedgar_ramirez_mondragon
01/03/2023, 11:05 PM*
) but some other dep is causing numpy to resolve to 1.19.5: https://github.com/Mause/duckdb_engine/blob/f4f277cdccd10f78e3a2621a47cfc8ae95ec881f/poetry.lock#L322-L328jacob_matson
01/03/2023, 11:06 PMjacob_matson
01/03/2023, 11:07 PMchristoph
01/03/2023, 11:10 PMpipdeptree
to analyse the dependency chain https://github.com/tox-dev/pipdeptreejacob_matson
01/03/2023, 11:10 PMchristoph
01/03/2023, 11:14 PMpipgrip
can actually do the dependency analysis as well ... https://github.com/ddelange/pipgripchristoph
01/03/2023, 11:15 PMpipgrip --tree duckdb-engine
duckdb-engine (0.6.6)
├── duckdb>=0.4.0 (0.6.1)
│ └── numpy>=1.14 (1.24.1)
├── numpy (1.24.1)
└── sqlalchemy<2.0.0,>=1.3.19 (1.4.46)
└── greenlet!=0.4.17 (2.0.1)
christoph
01/03/2023, 11:15 PMchristoph
01/03/2023, 11:16 PMcryptography
??christoph
01/03/2023, 11:17 PMpipgrip --tree cryptography
cryptography (39.0.0)
└── cffi>=1.12 (1.15.1)
└── pycparser (2.21)
jacob_matson
01/03/2023, 11:21 PMchristoph
01/03/2023, 11:23 PMchristoph
01/03/2023, 11:25 PMpyarrow
constraints in Superset 2.0.1 are really old ... https://github.com/apache/superset/blob/507a7562e099707ab1103f4173d6c3b0ade2ec2d/setup.py#L105christoph
01/03/2023, 11:25 PMchristoph
01/03/2023, 11:26 PMmaster
.. https://github.com/apache/superset/blob/ebaad10d6ce72fa9d939833720b44880d5139bb9/setup.py#L111christoph
01/03/2023, 11:28 PMjacob_matson
01/03/2023, 11:29 PMchristoph
01/03/2023, 11:31 PMpipdeptree
output?christoph
01/03/2023, 11:35 PMjacob_matson
01/03/2023, 11:39 PMCan you confirm in your docker image where the old numpy version gets selected from with aYeah, just not sure how to do that inside of the github action template images. hasn't been an issue until today :/output?pipdeptree
jacob_matson
01/03/2023, 11:39 PMchristoph
01/03/2023, 11:42 PMYeah, just not sure how to do that inside of the github action template images.Oh. Sorry, I thought you had a docker image you can launch locally and inspect via a shell ... I think I have a py3.9 interpreter still lying around on my laptop that I can use to do a superset 2.0.1 install and check for numpy myself.
jacob_matson
01/03/2023, 11:42 PMchristoph
01/03/2023, 11:45 PMchristoph
01/03/2023, 11:51 PMchristoph
01/03/2023, 11:55 PMjacob_matson
01/03/2023, 11:56 PMchristoph
01/03/2023, 11:56 PMIs the preferred method for deploying superset locally via the superset docker image?Not for me, no. I'm not a docker guy
jacob_matson
01/03/2023, 11:57 PMchristoph
01/03/2023, 11:59 PMchristoph
01/04/2023, 12:05 AMit broke very recently, last 1-2 weeks at most. was building fine before that.That is odd. 2.0.1 was released on December 21st and 2.0.0 was released on July 15th ... but that particular pyarrow 5.0 constraint has been present in both, 2.0.0 and 2.0.1 .. so, something else, maybe specific to your environment would have changed.
jacob_matson
01/04/2023, 12:15 AM- name: superset
variant: apache
pip_url: apache-superset>=1.5.0 markupsafe==2.0.1 Werkzeug==2.0.3 WTForms==2.3.0 duckdb-engine==0.6.4
config:
ENABLE_PROXY_FIX: true
unsure which version it would have installed - probably 1.5.2 or 2.0.0.jacob_matson
01/04/2023, 12:17 AMpipdeptree
once its stood upchristoph
01/04/2023, 12:17 AMbuilding locally in my dockercontainer now, so I can runIt should definitely be coming from pyarrow.once its stood uppipdeptree
christoph
01/04/2023, 12:18 AMapache-superset>=1.5.0That should not have worked in Python 3.10, only in Python 3.9
jacob_matson
01/04/2023, 12:19 AMchristoph
01/04/2023, 12:19 AMchristoph
01/04/2023, 12:20 AMchristoph
01/04/2023, 12:21 AMSuperset 2.0.2 runs perfectly fine on Python 3.10For clarification. I am actually running from Superset
master
branch. I didn't realise that the 2.0 branch was already so old that it didn't have the Python 3.10 support in it ...jacob_matson
01/04/2023, 12:24 AMjacob_matson
01/04/2023, 12:37 AMjacob_matson
01/04/2023, 12:50 AMpip_url
cleared up my issue.
- name: superset
variant: apache
pip_url: apache-superset>=1.5.0 markupsafe==2.0.1 Werkzeug==2.0.3 WTForms==2.3.0 duckdb-engine==0.6.6 jinja2<3.1.0 cryptography==3.4.7
config:
ENABLE_PROXY_FIX: true
christoph
01/04/2023, 2:03 AMchristoph
01/04/2023, 2:03 AMaaronsteers
01/04/2023, 6:30 PMchristoph
01/04/2023, 8:26 PMchristoph
01/04/2023, 8:27 PMmarkupsafe
, werkzeug
, wtforms
and jinja2
aaronsteers
01/04/2023, 8:28 PMaaronsteers
01/04/2023, 8:29 PMjacob_matson
01/04/2023, 8:30 PMjacob_matson
01/04/2023, 8:31 PMchristoph
01/04/2023, 8:36 PMAt what point is it better to use the docker image instead of installing "locally"That's WHOLE different topic. The Superset team's release strategy for their official docker images is currently 180 degrees opposite of the PyPI releases .....
christoph
01/04/2023, 8:36 PMchristoph
01/04/2023, 8:37 PMlatest
tag.christoph
01/04/2023, 8:39 PMjacob_matson
01/04/2023, 8:41 PMchristoph
01/04/2023, 8:43 PMchristoph
01/04/2023, 8:43 PMchristoph
01/04/2023, 8:44 PMchristoph
01/04/2023, 8:46 PMjacob_matson
01/04/2023, 8:47 PM