after-compile pip install errors. which libraries is it looking for? #9

Open
opened 2022-06-20 04:48:14 +02:00 by ParaplegicRacehorse · 0 comments
ParaplegicRacehorse commented 2022-06-20 04:48:14 +02:00 (Migrated from github.com)

lbry-rocksdb compiles just fine per the written instructions.

Then pip fails to install it, wheel claiming it can't find static libraries.

setup.py appears to look for

  • librocksdb.a (debian package librocksdb-dev)
  • libbz2.a (debian package libbz2-dev)
  • liblz4.a (debian package liblz4-dev)
  • libsnappy.a (debian package libsnappy-dev)
  • libz.a (debian package zlib1g-dev)
  • libzstd.a (debian package libzstd-dev)

None of these packages are part of [Debian] build-essentials or binutils packages. Maybe they should be put in the build instructions to install these libraries?

Even after installing these libraries, wheel failed. Even after re-compiling the whole package, wheel failed. pip install -e . yields the following error(s):

Installing build dependencies ... done
Checking if build backend supports build editable ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

* Getting requirements to build wheel did not run successfully.
  exit code: 1
    [1 lines of output]
    missing static library files
    [end of output]

note: this error originates from a subprocess, and is likely not a problem with pip.
error: subprocess exited with error

Getting requirements to build wheel did not run successfully.
exit code: 1
See above for output

note: This error originates from a subprocess, and is likely not a problem with pip.

So, which static libraries is it looking for?

I thought it might be looking for [Debian package] python3-snappy, so I installed and again tried the pip install. Result -- fail with same errors.

Then I thought that if there's a python3-snappy debian package, there must be a snappy available from pypi, so I attempted to install it [with pip] resulting in pages of errors and an unsuccessful install.

What am I missing?

Hardware: Pine64 PineTab (aarch64 arm), OS: Mobian (debian bookworm), python 3.10.5, gcc 11.3.0

`lbry-rocksdb` compiles just fine per the written instructions. Then pip fails to install it, wheel claiming it can't find static libraries. `setup.py` appears to look for - `librocksdb.a` (debian package `librocksdb-dev`) - `libbz2.a` (debian package `libbz2-dev`) - `liblz4.a` (debian package `liblz4-dev`) - `libsnappy.a` (debian package `libsnappy-dev`) - `libz.a` (debian package `zlib1g-dev`) - `libzstd.a` (debian package `libzstd-dev`) None of these packages are part of [Debian] `build-essentials` or `binutils` packages. Maybe they should be put in the build instructions to install these libraries? Even after installing these libraries, wheel failed. Even after re-compiling the whole package, wheel failed. `pip install -e .` yields the following error(s): ``` Installing build dependencies ... done Checking if build backend supports build editable ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error * Getting requirements to build wheel did not run successfully. exit code: 1 [1 lines of output] missing static library files [end of output] note: this error originates from a subprocess, and is likely not a problem with pip. error: subprocess exited with error Getting requirements to build wheel did not run successfully. exit code: 1 See above for output note: This error originates from a subprocess, and is likely not a problem with pip. ``` So, which static libraries is it looking for? I thought it might be looking for [Debian package] `python3-snappy`, so I installed and again tried the pip install. Result -- fail with same errors. Then I thought that if there's a python3-snappy debian package, there must be a `snappy` available from pypi, so I attempted to install it [with pip] resulting in pages of errors and an unsuccessful install. What am I missing? Hardware: Pine64 PineTab (aarch64 arm), OS: Mobian (debian bookworm), python 3.10.5, gcc 11.3.0
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-rocksdb#9
No description provided.