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

error: Linux distribution not supported: 'archlinux_unknown' #194

Open
George3d6 opened this issue Nov 27, 2017 · 12 comments
Open

error: Linux distribution not supported: 'archlinux_unknown' #194

George3d6 opened this issue Nov 27, 2017 · 12 comments

Comments

@George3d6
Copy link

When trying to install aerospike via sudo pip3 install --upgrade aerospike

I get the following error:

    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-8fyrk27g/aerospike/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-47fdbw1j-record/install-record.txt --single-version-externally-managed --compile:
    info: Executing ./scripts/aerospike-client-c.sh
    error: Linux distribution not supported: 'archlinux_unknown'
    error: scripts/aerospike-client-c.sh 1

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-8fyrk27g/aerospike/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-47fdbw1j-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-8fyrk27g/aerospike/

@George3d6
Copy link
Author

It should be noted I already have the C aerospike client installed on my machine, so I guess the issue here would be providing an install script that doesn't try to source the client but rather looks for it on the hosts machine first. Unless I may be doing something horribly wrong when installing.

@brunneis
Copy link

Try this: https://github.com/aerospike/aerospike-client-python/blob/master/BUILD.md#building-on-an-unsupported-linux-distro

Basically, setting the following environment variables:

export DOWNLOAD_C_CLIENT=0
export AEROSPIKE_C_HOME=/path/to/aerospike-c-client
export AEROSPIKE_LUA_PATH=/path/to/aerospike-lua-core/src

@George3d6
Copy link
Author

I'm away from my laptop right now, I will try this first thing tomorrow and close the issue if it works, though it would be nice to add that info to the unsupported distro error message.

@ixaxaar
Copy link

ixaxaar commented Jun 1, 2018

I guess no one thought about letting the python lib have a pure python backoff instead of forcefully shoving the C lib at everyone. "Performance first" even if it does not install lol.

@rbotzer
Copy link
Member

rbotzer commented Jun 1, 2018

Feel free to contribute code, but maybe your contribution is a joke so good you made yourself laugh? Hard to tell.

@ixaxaar
Copy link

ixaxaar commented Jun 6, 2018

Nah, its frustrating to the point that it becomes funny (after some headbanging of course). Maybe devrant is the better place for that :/

@marknaero
Copy link
Contributor

With pip (>=19.0) and latest python client (>=3.8.0), you should be able to install on linux without needing to clone the c client or install any other dependencies anymore.

@Felixoid
Copy link

Well, it's broken for me at least..

┌[20:35:33] felixoid@ig-fel:~/OPT/Felixoid/github/ClickHouse/ClickHouse venv=(venv3) [dddl_replication_check|✚1…4]
└>±> pip --version
pip 20.0.2 from /home/felixoid/OPT/Felixoid/github/ClickHouse/ClickHouse/venv3/lib/python3.8/site-packages/pip (python 3.8)
┌[20:35:34] felixoid@ig-fel:~/OPT/Felixoid/github/ClickHouse/ClickHouse venv=(venv3) [dddl_replication_check|✚1…4]
└>±> python --version
Python 3.8.3
┌[20:35:39] felixoid@ig-fel:~/OPT/Felixoid/github/ClickHouse/ClickHouse venv=(venv3) [dddl_replication_check|✚1…4]
└>±> pip install aerospike
Collecting aerospike
  Using cached aerospike-3.10.0.tar.gz (149 kB)
Building wheels for collected packages: aerospike
  Building wheel for aerospike (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/felixoid/OPT/Felixoid/github/ClickHouse/ClickHouse/venv3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jmm0dpcx/aerospike/setup.py'"'"'; __file__='"'"'/tmp/pip-install-jmm0dpcx/aerospike/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-j38sjaz2
       cwd: /tmp/pip-install-jmm0dpcx/aerospike/
  Complete output (3 lines):
  info: Executing ./scripts/aerospike-client-c.sh
  error: Linux distribution not supported: 'arch'
  error: scripts/aerospike-client-c.sh 1
  ----------------------------------------
  ERROR: Failed building wheel for aerospike
  Running setup.py clean for aerospike
Failed to build aerospike
Installing collected packages: aerospike
    Running setup.py install for aerospike ... error
    ERROR: Command errored out with exit status 1:
     command: /home/felixoid/OPT/Felixoid/github/ClickHouse/ClickHouse/venv3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jmm0dpcx/aerospike/setup.py'"'"'; __file__='"'"'/tmp/pip-install-jmm0dpcx/aerospike/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-64m65crv/install-record.txt --single-version-externally-managed --compile --install-headers /home/felixoid/OPT/Felixoid/github/ClickHouse/ClickHouse/venv3/include/site/python3.8/aerospike
         cwd: /tmp/pip-install-jmm0dpcx/aerospike/
    Complete output (3 lines):
    info: Executing ./scripts/aerospike-client-c.sh
    error: Linux distribution not supported: 'arch'
    error: scripts/aerospike-client-c.sh 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/felixoid/OPT/Felixoid/github/ClickHouse/ClickHouse/venv3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jmm0dpcx/aerospike/setup.py'"'"'; __file__='"'"'/tmp/pip-install-jmm0dpcx/aerospike/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-64m65crv/install-record.txt --single-version-externally-managed --compile --install-headers /home/felixoid/OPT/Felixoid/github/ClickHouse/ClickHouse/venv3/include/site/python3.8/aerospike Check the logs for full command output.
WARNING: You are using pip version 20.0.2; however, version 20.1.1 is available.
You should consider upgrading via the '/home/felixoid/OPT/Felixoid/github/ClickHouse/ClickHouse/venv3/bin/python -m pip install --upgrade pip' command.

@dwelch-spike
Copy link
Contributor

Hi @Felixoid, The Python client doesn't officially support python3.8 yet so there isn't a manylinux2010 wheel for it on pip. The build script instead tries to build the Python client which requires the Aerospike C client. The C client does not officially support Arch so the build script tries to pull a C client artifact that doesn't exist and fails. You can get around this a few ways, using Python <= 3.7 should work, or, manually build the Python client and C client. This issue should be fixed when official 3.8 support is released (soon).

@sakebomb
Copy link

sakebomb commented Nov 6, 2020

Seems like this is still an issue:

pip install aerospike
Defaulting to user installation because normal site-packages is not writeable
Collecting aerospike
  Downloading aerospike-4.0.0.tar.gz (154 kB)
     |████████████████████████████████| 154 kB 3.0 MB/s 
Building wheels for collected packages: aerospike
  Building wheel for aerospike (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8ak0kdhk/aerospike/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8ak0kdhk/aerospike/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-2ilswkgi
       cwd: /tmp/pip-install-8ak0kdhk/aerospike/
  Complete output (3 lines):
  info: Executing ./scripts/aerospike-client-c.sh
  error: Linux distribution not supported: 'arch'
  error: scripts/aerospike-client-c.sh 1
  ----------------------------------------
  ERROR: Failed building wheel for aerospike
  Running setup.py clean for aerospike
Failed to build aerospike
Installing collected packages: aerospike
    Running setup.py install for aerospike ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8ak0kdhk/aerospike/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8ak0kdhk/aerospike/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-j0i39q6n/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/sakebomb/.local/include/python3.8/aerospike
         cwd: /tmp/pip-install-8ak0kdhk/aerospike/
    Complete output (3 lines):
    info: Executing ./scripts/aerospike-client-c.sh
    error: Linux distribution not supported: 'arch'
    error: scripts/aerospike-client-c.sh 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8ak0kdhk/aerospike/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8ak0kdhk/aerospike/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-j0i39q6n/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/sakebomb/.local/include/python3.8/aerospike Check the logs for full command output.

@dwelch-spike
Copy link
Contributor

Hi @sakebomb ,

Looks like there was an issue publishing the manylinux wheels for the last release so the client was building from source. The install should work now. Please give it another try, with the pip --no-cache flag to make sure the wheel is pulled.

@sakebomb
Copy link

sakebomb commented Nov 6, 2020

That worked! Thank you @dwelch-spike

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

8 participants