OpenL3 installation error

L4T:r32.4.4
Dockerfile: GitHub - dusty-nv/jetson-containers: Machine Learning Containers for NVIDIA Jetson and JetPack-L4T
[I have combined both tensorflow and pytorch dockerfile]

ENV (Successfully installed):
tensorflow-2.3.0
torch-1.10.0
torchvision-0.11.0a0+fa347eb

As I am working with .wav file, openl3 is needed. However when I pip3 install openl3, there is a error message telling that no distribution version is matched. Error message is shown below:

β€œβ€"
Collecting openl3
Downloading openl3-0.4.1.tar.gz (18 kB)
Preparing metadata (setup.py) … error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c β€˜import io, os, sys, setuptools, tokenize; sys.argv[0] = β€˜"’"’/tmp/pip-install-dlvt6pw5/openl3_37e72b9af8984aaba0577cbbee2a6b40/setup.py’"’"’; file=’"’"’/tmp/pip-install-dlvt6pw5/openl3_37e72b9af8984aaba0577cbbee2a6b40/setup.py’"’"’;f = getattr(tokenize, β€˜"’"β€˜open’"’"’, open)(file) if os.path.exists(file) else io.StringIO(’"’"β€˜from setuptools import setup; setup()’"’"’);code = f.read().replace(’"’"’\r\n’"’"’, β€˜"’"’\n’"’"’);f.close();exec(compile(code, file, β€˜"’"β€˜exec’"’"’))’ egg_info --egg-base /tmp/pip-pip-egg-info-e4rutikh
cwd: /tmp/pip-install-dlvt6pw5/openl3_37e72b9af8984aaba0577cbbee2a6b40/
Complete output (55 lines):
Traceback (most recent call last):
File β€œβ€, line 1, in
File β€œ/tmp/pip-install-dlvt6pw5/openl3_37e72b9af8984aaba0577cbbee2a6b40/setup.py”, line 44, in
long_description = file.read()
File β€œ/usr/lib/python3.6/encodings/ascii.py”, line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: β€˜ascii’ codec can’t decode byte 0xe2 in position 1433: ordinal not in range(128)
Downloading weight file openl3_audio_linear_music-v0_4_0.h5.gz …
Decompressing …
Decompression complete
Removing compressed file
Downloading weight file openl3_audio_linear_env-v0_4_0.h5.gz …
Decompressing …
Decompression complete
Removing compressed file
Downloading weight file openl3_audio_mel128_music-v0_4_0.h5.gz …
Decompressing …
Decompression complete
Removing compressed file
Downloading weight file openl3_audio_mel128_env-v0_4_0.h5.gz …
Decompressing …
Decompression complete
Removing compressed file
Downloading weight file openl3_audio_mel256_music-v0_4_0.h5.gz …
Decompressing …
Decompression complete
Removing compressed file
Downloading weight file openl3_audio_mel256_env-v0_4_0.h5.gz …
Decompressing …
Decompression complete
Removing compressed file
Downloading weight file openl3_image_linear_music-v0_4_0.h5.gz …
Decompressing …
Decompression complete
Removing compressed file
Downloading weight file openl3_image_linear_env-v0_4_0.h5.gz …
Decompressing …
Decompression complete
Removing compressed file
Downloading weight file openl3_image_mel128_music-v0_4_0.h5.gz …
Decompressing …
Decompression complete
Removing compressed file
Downloading weight file openl3_image_mel128_env-v0_4_0.h5.gz …
Decompressing …
Decompression complete
Removing compressed file
Downloading weight file openl3_image_mel256_music-v0_4_0.h5.gz …
Decompressing …
Decompression complete
Removing compressed file
Downloading weight file openl3_image_mel256_env-v0_4_0.h5.gz …
Decompressing …
Decompression complete
Removing compressed file
β€œβ€"

I have already β€œpip3 install --upgrade pip setuptools wheel” before running β€œpip3 install openl3”, but still cannot solve the issue. Anyone could help me a bit on this, many thanks!

libsndfile1 and SoundFile both are installed successfully.

Anyone please help on this issue?
No luck so far.

Sorry for the late response, have you managed to get issue resolved? Thanks

Hi,

This issue seems related to the encoding language.
Would you mind trying the following command to see if it helps?

$ export LC_CTYPE=en_US.UTF-8
$ export LANG=en_US.UTF-8

The openl3 library can be installed without issue in our environment.

$ sudo pip3 install openl3 --no-deps
The directory '/home/nvidia/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/nvidia/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting openl3
  Downloading https://files.pythonhosted.org/packages/45/b2/41bfae0ad6b69050e862a93229daea415b1045099d2d9c558a09093e1302/openl3-0.4.1.tar.gz
Installing collected packages: openl3
  Running setup.py install for openl3 ... done
Successfully installed openl3-0.4.1

Thanks.

1 Like

Hi,

I am using Dockerfile to build the environment, below is the code I used to install openl3:

install OpenL3

RUN apt-get update &&
apt-get install -y --no-install-recommends
llvm-9
llvm-9-dev
&& rm -rf /var/lib/apt/lists/*
&& apt-get clean
RUN cd /usr/bin && ln -s llvm-config-9 llvm-config
#RUN export LLVM_CONFIG=/usr/bin/llvm-config-7
RUN pip3 install --no-cache-dir llvmlite==0.33.0

ENV LC_ALL=C.UTF-8
RUN /bin/bash -c β€œsource ~/.bashrc”
RUN pip3 install --no-cache-dir openl3

I believe exporting the encoding language to utf-8 would help for the installation. however, changing only this will occur another issue, as you could see in above, that’s the llvm wheel could not be built correctly due to missing llvm-confifg.

Btw anyone familiarize with the Dockerfile? how can I use the export cmd inside it? most of my Dockerfile code is following @dusty_nv GitHub, it would be nice anyone can improve it.

I have to run below export cmd to run tensorflow and touch successfully:
export LD_PRELOAD=/usr/local/lib/python3.6/dist-packages/sklearn/__check_build/…/…/scikit_learn.libs/libgomp-d22c30c5.so.1.0.0:/usr/lib/aarch64-linux-gnu/libgomp.so.1
Is that way my Dockerfile could export it automatically or adding this to the docker_run.sh?

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

Hi,

Would you mind sharing the error when you install the llvmlite?

Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.