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

ImportError: cannot import name 'GroupWorkerLimit' from 'copr_common.worker_manager' #2951

Closed
BH1SCW opened this issue Oct 13, 2023 · 7 comments

Comments

@BH1SCW
Copy link

BH1SCW commented Oct 13, 2023

after docker-compose up -d there are two instance which already exit

docker logs -f copr_backend-build_1
Traceback (most recent call last):
  File "/usr/bin/copr-run-dispatcher", line 11, in <module>
    from copr_backend.daemons.build_dispatcher import BuildDispatcher
  File "/usr/lib/python3.11/site-packages/copr_backend/daemons/build_dispatcher.py", line 5, in <module>
    from copr_common.worker_manager import GroupWorkerLimit
ImportError: cannot import name 'GroupWorkerLimit' from 'copr_common.worker_manager' (/usr/lib/python3.11/site-packages/copr_common/worker_manager.py)
docker logs -f copr_backend-action_1
Traceback (most recent call last):
  File "/usr/bin/copr-run-dispatcher", line 11, in <module>
    from copr_backend.daemons.build_dispatcher import BuildDispatcher
  File "/usr/lib/python3.11/site-packages/copr_backend/daemons/build_dispatcher.py", line 5, in <module>
    from copr_common.worker_manager import GroupWorkerLimit
ImportError: cannot import name 'GroupWorkerLimit' from 'copr_common.worker_manager' (/usr/lib/python3.11/site-packages/copr_common/worker_manager.py)

Thanks

@BH1SCW
Copy link
Author

BH1SCW commented Oct 13, 2023

after reading the source code I find the reason:

there was no GroupWorkerLimit from this file

/usr/lib/python3.11/site-packages/copr_common/dispatcher.py

@praiskup
Copy link
Member

Thank you for the ticket. You seem to be using a pre-release version of copr-backend package; this requires a pre-release version of python3-copr-common, too. Can you retry?

@BH1SCW
Copy link
Author

BH1SCW commented Oct 13, 2023

Thank you for the ticket. You seem to be using a pre-release version of copr-backend package; this requires a pre-release version of python3-copr-common, too. Can you retry?

Thanks for reply, I just clone code and run

docker-compose up -d

everything is built from current source code,
I am not sure how can I switch pre-release version or stable version, if you don't mind tell me more that will be cool and I can retry later.

Thanks

@praiskup
Copy link
Member

Ah, I see - this seems like a docker-compose bug indeed.

@FrostyX
Copy link
Member

FrostyX commented Oct 13, 2023

@BH1SCW can you please try if this helps?

docker-compose build --no-cache
docker-compose up -d

@BH1SCW
Copy link
Author

BH1SCW commented Oct 17, 2023

docker-compose build --no-cache

Great, this tips works very well,
Thanks

@FrostyX
Copy link
Member

FrostyX commented Oct 17, 2023

Nice, glad to hear that :-)

@FrostyX FrostyX closed this as completed Oct 17, 2023
@praiskup praiskup moved this from Needs triage to Done in CPT Kanban Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants