question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Py-KMS on Python Version 3.10 not working

See original GitHub issue

Hello

I want to use py-kms for my homelab test but cannot start the service

here step by step what i have done

py pip install tzlocal pysqlite3
  • Unzipped py-kms-master.zip at C:\KMS\
  • checking if python works correctly : OK
c:\KMS\py-kms>py
Python 3.10.0 (tags/v3.10.0:b494f59, Oct  4 2021, 19:00:18) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
  • try to start pykms_Server.py and get an error
c:\KMS\py-kms>py pykms_Server.py
Traceback (most recent call last):
  File "c:\KMS\py-kms\pykms_Server.py", line 27, in <module>
    from Etrigan import Etrigan, Etrigan_parser, Etrigan_check, Etrigan_job
  File "c:\KMS\py-kms\Etrigan.py", line 12, in <module>
    from collections import Sequence
ImportError: cannot import name 'Sequence' from 'collections' (C:\Program Files\Python310\lib\collections\__init__.py)

c:\KMS\py-kms>

I would like to get some help to know if i missed one step

thanks you in advance

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:11

github_iconTop GitHub Comments

2reactions
CRCinAUcommented, Dec 23, 2021

This is a much better fix - as it supports both:

try:
    from collections.abc import Sequence
except ImportError:
    from collections import Sequence
2reactions
simonmicrocommented, Dec 9, 2021

You are right. I’ll create PRs from now on… The next branch will be used from now on for direct commits 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python 3.10 not recognized · Issue #160 · actions/setup- ...
However, this doesn't seem to work for 3.10. The action errors out, with the following error msg: Version 3.1 with arch x64 not...
Read more >
After upgrading Python to 3.10, pip installed modules no ...
I tried uninstalling pip and reinstalling it, thinking it would know my current version of Python and use a new directory, but that...
Read more >
Release 1.0 SystemRage
Newer version may work as long as the KMS protocol does not change. ... Now in a command prompt type C:\Windows\Python27\python.exe ...
Read more >
Python 3.10 in Pythonanywhere : Forums
It depends -- if you're using some 3.10 specific language features, they would not work on PythonAnywhere yet.
Read more >
Terminal and other programs don't work after installing ...
Terminal as well as software installer now work. Presumably other programs too. Python3 is back at version 3.6.9. I will try and install...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found