-
-
Notifications
You must be signed in to change notification settings - Fork 40.3k
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
qmk compile-json crashes with TypeError #6428
Comments
Note I was able to work around this and get the command to work by commenting out some stuff as per this diff: diff --git a/bin/qmk b/bin/qmk
index c34365bed..40af28d13 100755
--- a/bin/qmk
+++ b/bin/qmk
@@ -37,12 +37,12 @@ with open('requirements.txt', 'r') as fd:
exit(255)
# Figure out our version
-command = ['git', 'describe', '--abbrev=6', '--dirty', '--always', '--tags']
-result = subprocess.run(command, text=True, capture_output=True)
+#command = ['git', 'describe', '--abbrev=6', '--dirty', '--always', '--tags']
+#result = subprocess.run(command)
-if result.returncode == 0:
- os.environ['QMK_VERSION'] = 'QMK ' + result.stdout.strip()
-else:
+#if result.returncode == 0:
+# os.environ['QMK_VERSION'] = 'QMK ' + result.stdout.strip()
+#else:
os.environ['QMK_VERSION'] = 'QMK ' + strftime('%Y-%m-%d-%H:%M:%S')
# Setup the CLI
|
Thanks for your report here. Sorry for the delay looking at it I've been traveling and am now working through my backlog. It looks like I accidentally used a feature that was added in python 3.7. I'll generate a PR to fix that. |
Can you |
Looks like it's still using
|
I hacked the shebang to run
So I run |
Awesome, thanks! I can confirm it works without modification for me now. |
Describe the Bug
Trying to run
qmk-compile-json path/to/my/layout.json
crashes with aTypeError
. Looks like passing an unexpected argument tosubprocess.run
. I'm trying to run with a python3 virtualenv.TraceBack:
System Information
Additional Context
I didn't initially have
pip3
available. I tried runningutil/linux_install.sh
without anypip3
, after activating a python3 virtualenv wherepip3
was early in the PATH, and after manually installing thepython3-pip
debian package.I think you may need to add
python3-pip
to your required package list for debian-based distros, but even after installing that I get theTypeError
.The text was updated successfully, but these errors were encountered: