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

ValueError: invalid literal for int() with base 10: ' #12

Closed
Unkn0wn-MDCLXIV opened this issue Dec 2, 2018 · 9 comments
Closed

ValueError: invalid literal for int() with base 10: ' #12

Unkn0wn-MDCLXIV opened this issue Dec 2, 2018 · 9 comments

Comments

@Unkn0wn-MDCLXIV
Copy link

When I try to activate my Windows 10 LTSC 2019 I get the following error message on the server:

Client sending
===============> Server received RPC Bind Request !!!
Server parsing RPC Bind Request...
Server generating RPC Bind Response...
Client receiving
<=============== Server sending RPC Bind Response...
RPC Bind acknowledged !!!

Client sending
===============> Server received RPC Activation Request !!!
Server parsing RPC Activation Request...
Server processing KMS Activation Request...
----------------------------------------
Exception happened during processing of request from ('192.168.178.109', 50768)
Traceback (most recent call last):
File "/usr/lib/python3.6/socketserver.py", line 317, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib/python3.6/socketserver.py", line 348, in process_request
self.finish_request(request, client_address)
File "/usr/lib/python3.6/socketserver.py", line 361, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python3.6/socketserver.py", line 721, in __init__
self.handle()
File "server.py", line 157, in handle
res = str(handler.populate()).encode('latin-1')
File "/opt/py-kms/py3-kms/rpcBase.py", line 42, in populate
return self.generateResponse(self.parseRequest())
File "/opt/py-kms/py3-kms/rpcRequest.py", line 22, in generateResponse
responseData = kmsBase.generateKmsResponseData(request['pduData'], self.config)
File "/opt/py-kms/py3-kms/kmsBase.py", line 327, in generateKmsResponseData
return messagehandler.executeRequestLogic()
File "/opt/py-kms/py3-kms/kmsRequestV5.py", line 71, in executeRequestLogic
responseBuffer = self.serverLogic(decrypted['request'])
File "/opt/py-kms/py3-kms/kmsBase.py", line 176, in serverLogic
count = int(kmsitem['NCountPolicy'])
ValueError: invalid literal for int() with base 10: ''

@zh2209645
Copy link

This is because some missing value in KmsDataBase.xml, just clone the least version.

@Oratorian
Copy link

This is after the least version

@zh2209645
Copy link

If the least version still have this error, try this one:
https://github.com/zh2209645/py-kms
I tried to fix the error caused by the xml file.

@Unkn0wn-MDCLXIV
Copy link
Author

If the least version still have this error, try this one:
https://github.com/zh2209645/py-kms
I tried to fix the error caused by the xml file.

That fixed the issue, thanks

@taten14
Copy link

taten14 commented Dec 2, 2018

If the least version still have this error, try this one:
https://github.com/zh2209645/py-kms
I tried to fix the error caused by the xml file.

Fixed! Thanks!

@Oratorian
Copy link

Not fixed for me, I still get the 'Int() with base 10' error.

I cloned your repo and tried to run it. Same error

@zh2209645
Copy link

Not fixed for me, I still get the 'Int() with base 10' error.

I cloned your repo and tried to run it. Same error

Please provide specific error message.

@SystemRage
Copy link
Owner

Ok! Fixed missing values in KmsDataBase.xml.
Now works !

@ricktendo
Copy link

Confirmed, just re-activated Office 2019

C:\Program Files\Microsoft Office\Office16>cscript //Nologo ospp.vbs /act
---Processing--------------------------
---------------------------------------
Installed product key detected - attempting to activate the following product:
SKU ID: 5b5cf08f-b81a-431d-b080-3450d8620565
LICENSE NAME: Office 19, Office19VisioPro2019VL_KMS_Client_AE edition
LICENSE DESCRIPTION: Office 19, VOLUME_KMSCLIENT channel
Last 5 characters of installed product key: REDACTED
<Product activation successful>
---------------------------------------
Installed product key detected - attempting to activate the following product:
SKU ID: 85dd8b5f-eaa4-4af3-a628-cce9e77c9a03
LICENSE NAME: Office 19, Office19ProPlus2019VL_KMS_Client_AE edition
LICENSE DESCRIPTION: Office 19, VOLUME_KMSCLIENT channel
Last 5 characters of installed product key: REDACTED
<Product activation successful>
---------------------------------------
---------------------------------------
---Exiting-----------------------------

edgd1er referenced this issue in edgd1er/py-kms Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants