superset icon indicating copy to clipboard operation
superset copied to clipboard

Getting an error while installing superset using pip

Open swapniljariwala opened this issue 2 years ago • 13 comments

A clear and concise description of what the bug is.

How to reproduce the bug

git clone [email protected]:your-username/superset.git
cd superset
python3 -m venv venv # setup a python3 virtualenv
source venv/bin/activate
# Install external dependencies
pip install -e .

Expected results

Normal installation

Actual results

Installation failing

ERROR: Could not find a version that satisfies the requirement sqloxide==0.1.15 (from apache-superset) (from versions: 0.1.0, 0.1.1)
ERROR: No matching distribution found for sqloxide==0.1.15

Environment

No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 10 (buster) Release: 10 Codename: buster

Additional context

Probable issue: in setup.py

 install_requires=[ ....
                     "sqloxide==0.1.15",
           ]

The said version of sqloxide is not available on pypi

swapniljariwala avatar Mar 30 '22 13:03 swapniljariwala

This is probably due to older Python version 3.7, I'll close it if version upgrade fixes it

swapniljariwala avatar Mar 30 '22 14:03 swapniljariwala

Yeah I would try 3.8!

srinify avatar Mar 30 '22 16:03 srinify

Tried with 3.8, still facing issue,

I am in docker dev environment. Looks like debian container.

swapniljariwala avatar Apr 10 '22 17:04 swapniljariwala

@swapniljariwala Are you running your docker env on M1 Mac? (Or generally on ARM based platform)? Looks like sqloxide (see this issue https://github.com/wseaton/sqloxide/issues/108) isn't (yet) releasing aarch based wheels.

As a workaround run your docker using --platform linux/amd64 option

kakoni avatar May 30 '22 08:05 kakoni

Also have this problem on Ubuntu 18.04.6 LTS, not running docker or on an M1 mac

Had to downgrade to 1.4.2

patrickchoi avatar Jun 15 '22 01:06 patrickchoi

@swapniljariwala I got it to work by installing python 3.9.8. I'm using a Mac though - macOS Big Sur, Version 11.6.6

Khalizo avatar Jun 30 '22 23:06 Khalizo

I have had the same issue on Ubuntu 20.04.4 LTS. I tried with various versions of python (3.8 and 3.9), but had to downgrade to using 1.4.2 as @patrickchoi suggested.

MeganBeckett avatar Jul 05 '22 09:07 MeganBeckett

I encountered this error on python 3.8.9, I changed to 3.8.12 and it worked, didn't check further why that may be the case 👍

konradwudkowski avatar Jul 15 '22 14:07 konradwudkowski

I encountered this error on python 3.8.12

zzmg avatar Jul 22 '22 06:07 zzmg

I am on MacOS Monterey 12.5 running on a Macbook Pro M1 and encountered this issue on superset 2.0.0

Whenever I build the repository, I always gets stuck on 6/6 stating that: ERROR: No matching distribution found for sqloxide==0.1.17

What solved my issue is forcing docker to run linux/amd64 with the command "DOCKER_DEFAULT_PLATFORM=linux/amd64 docker-compose build"

harrychristianx avatar Jul 28 '22 06:07 harrychristianx

Using a ARM server on Oracle, tried "DOCKER_DEFAULT_PLATFORM=linux/amd64 docker-compose build"

And installed with pip latest and 0.34.0, 0.34.1

none of them work

DaiZack avatar Sep 14 '22 19:09 DaiZack

yes this happen to me with ERROR: No matching distribution found for sqloxide==0.1.15 (from apache-superset==1.5.1)

lazuardi21 avatar Oct 05 '22 14:10 lazuardi21