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

operator-courier fails in a Docker container: Codec can't decode byte 0xe2 in position x error #181

Open
sgkiokas opened this issue Mar 10, 2020 · 0 comments

Comments

@sgkiokas
Copy link

sgkiokas commented Mar 10, 2020

Hello all,

I'm trying to run the operator-sdk within a Docker container for some e2e purposes based on Ubuntu 18.04. To install it, I've put in the container the following:

RUN sudo apt-get install -y \
    python3.7 \ 
    python3-pip

Then, I install it via pip3 install operator-courier and the version I got is the latest.

In a Makefile that I need to run, on of the recipes contain the following command:

operator-courier verify olm-catalog/$(OPERATOR_NAME)

and the moment this line is executed, I'm getting:

`ascii' codec can't decode byte 0xe2 in position 1582: ordinal not in range(128)

When I ran it locally with the same version of the CLI, everything works fine.

I've tried to change my locale in the container by adding:

RUN sudo apt-get -y install locales \ 
    sudo sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
    locale-gen

ENV LANG en_US.UTF-8 

Unfortunately, this didn't help.

I also tried to install the binary like LANG="en_US.UTF-8" pip3 install operator-courier.

This didn't help either.

I imagine I'm missing some dependency. Any suggestion would be very helpful!

Thanks a lot in advance.

P.S.: Not sure if it's a Python related problem as described here.

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

1 participant