-
Notifications
You must be signed in to change notification settings - Fork 65
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
[BUG] ModuleNotFoundError: No module named 'distutils.sysconfig' #213
Comments
Hi @KyleHunter! Are you sure this problem is actually happening? Are you sure this wasn't in the dev images? When I switched the dev images to use |
Uh, I'm not sure I follow. It shows that error and fails on every single repo I have that uses Kibot. All of which worked some weeks ago.
Again, I'm really fuzzy on Github actions and the whole Dockerfile deal. The issue for us, is that even when pointing to a nice stable commit on our local branch, it still errors. Last time when there was a similar error on your branch, it did the same thing to our stable fork. So it's becoming tough to rely on Kibot for work, since at any time, something from the latest version has the ability to break all of our current and past projects... |
Hi @KyleHunter !
Again: the most simple way to use KiBot has advantages and disadvantages. If a workflow fails with some error you must report it as soon as possible. |
@set-soft Hmm That makes sense for the most part. But the error is certainly still there for all of our repo's: and |
Hi @KyleHunter ! |
@set-soft Yeah, here's a test repo I've been using: https://github.com/MicroType-Engineering/test_kibot |
Hi @KyleHunter !
This tag points to a repo with an old Dockerfile that uses the development images:
And which uses an old mechanism that no longer works:
The use of development images was a temporal hack that I disabled after releasing KiBot 1.0.0, to make the results more stable, so now you must explicitly ask for the last code using Your fork is before 1.0.0 release: https://github.com/MicroType-Engineering/KiBot/blob/08b1b8bdfe276ba5fe92e3091f4b0627913b9fa2/kibot/__main__.py#L70 So you are always using the development code. I simplified the way docker images are generated to reduce errors (70e01b3 and 287d9c7). Now the four main GitHub actions tags use the same base. As a result all development images doesn't support running:
This is because now the development images uses the regular images as base, but removing the KiBot and KiCost packages and installing git snap-shots. Your forked code can be adapted to the new images removing it. But I think you should avoid a forked repo for the GitHub actions. You can also change your forked repo to use the last stable image
If you need an image that won't change you can use Note that a forked repo for a GitHub action won't use the code in the repo, just the Dockerfile and what it says to use as base. Let me know if you can fix the problem so I can close the issue. |
@set-soft Yes! That did indeed fix it. So then going forward I'll stop using a forked branch and instead do: Thank you so much for your help as always! |
Describe the bug
On my test project that has been working for a while, I now get this error on trying to produce schematic outputs.
-c kibot_files/schematic-files.kibot.yaml -d KiBotOutput -b kicad_proj/test_kibot.kicad_pcb -e kicad_proj/test_kibot.kicad_sch Traceback (most recent call last): File "/usr/local/bin/kibot", line 16, in <module> main() File "/usr/local/lib/python3.9/dist-packages/kibot/__main__.py", line [25](https://github.com/MicroType-Engineering/test_kibot/runs/6969702244?check_suite_focus=true#step:9:26)9, in main load_actions() File "/usr/local/lib/python3.9/dist-packages/kibot/kiplot.py", line 83, in load_actions from kibot.mcpyrate import activate File "/usr/local/lib/python3.9/dist-packages/kibot/mcpyrate/activate.py", line 31, in <module> from .importer import source_to_xcode, path_xstats File "/usr/local/lib/python3.9/dist-packages/kibot/mcpyrate/importer.py", line 7, in <module> import distutils.sysconfig ModuleNotFoundError: No module named 'distutils.sysconfig'
To Reproduce
Environment (please complete the following information):
Where are you running KiBot:
v1_k6
andv2_k6
. Both show itAdditional context
Something odd (I don't have much experience with Github actions) is that this isn't the first bug that a new version of Kibot is caused, yet using my fork of a known working version on Github will also show the error. It's like even when using a fork, it still references back to your branch.
The text was updated successfully, but these errors were encountered: