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

loadgenerator build failed #126

Closed
Frapschen opened this issue Jun 10, 2022 · 4 comments
Closed

loadgenerator build failed #126

Frapschen opened this issue Jun 10, 2022 · 4 comments
Labels
bug Something isn't working help wanted Extra attention is needed question Further information is requested

Comments

@Frapschen
Copy link
Contributor

Frapschen commented Jun 10, 2022

Question

I want build the loadgenerator service ,run :

docker build -t otel-demo-loadgenerator:1.0.0 -f ./src/loadgenerator/Dockerfile .

I got an error:

#9 55.03 Failed to build psutil
#9 55.03 ERROR: Could not build wheels for psutil, which is required to install pyproject.toml-based projects
#9 55.03 WARNING: You are using pip version 22.0.4; however, version 22.1.2 is available.
#9 55.03 You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
------
executor failed running [/bin/sh -c pip install --prefix="/usr/local/" -r ./requirements.txt]: exit code: 1

dev env:

os: macos 12.3.1
cpu: M1
IED:golang

is there someone encounter the same err or help me out ?

@Frapschen Frapschen added the question Further information is requested label Jun 10, 2022
@cartersocha cartersocha added bug Something isn't working help wanted Extra attention is needed labels Jun 11, 2022
@wph95
Copy link
Member

wph95 commented Jun 12, 2022

MacOS: 12.3.1
CPU: Intel Core i7

not reproduce

Because I don't have an m1 mac, I can't help you troubleshoot. I personally think
This is not the problem of this repo. Because the base image used is the official python:3.10-slim.
and I recommended

  • Update your docker for mac
  • Manually pull docker image "docker pull python:3.10-slim" to make sure the local image is up to date.
  • Retry again

@parker-edwards
Copy link

@Frapschen if it's helpful I ran into this error as well and was able to resolve it by replacing python:3.10-slim with python:3.10 in /opentelemetry-demo-webstore/src/loadgenerator/Dockerfile

@Frapschen
Copy link
Contributor Author

MacOS: 12.3.1
CPU: Intel Core i7

not reproduce

Because I don't have an m1 mac, I can't help you troubleshoot. I personally think This is not the problem of this repo. Because the base image used is the official python:3.10-slim. and I recommended

  • Update your docker for mac
  • Manually pull docker image "docker pull python:3.10-slim" to make sure the local image is up to date.
  • Retry again

think for your advice :)

@Frapschen
Copy link
Contributor Author

@Frapschen if it's helpful I ran into this error as well and was able to resolve it by replacing python:3.10-slim with python:3.10 in /opentelemetry-demo-webstore/src/loadgenerator/Dockerfile

think for your advice :) this method work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants