Just starting makepy.py without any paramters, like
MyFullPath\python.exe MyFullPath\makepy.py
results to
ValueError: invalid literal for int() with base 16: ‘0.0.0’
I’m not using any code. Just starting makepy.py via the Windows 11 command prompt. I want t get the list of all registered type librarie. Same problem with parameter -d.
makepy.py is an utility tool which is installed via
GitHub - mhammond/pywin32: Python for Windows (pywin32) Extensions · GitHub
(pywin32 is the Python for Win32 extensions, which provides access to many of the Windows APIs from Python, including COM support.)
in folder
Lib\site-packages\win32com\client\makepy.py
pywin32/com/win32com/client/makepy.py at main · mhammond/pywin32 · GitHub
Used for Windows COM/ActiveX support, importing (registered) type libraries.
File "MyPath\Lib\site-packages\win32com\client\makepy.py", line 449, in
rc = main()
File "MyPath\Lib\site-packages\win32com\client\makepy.py", line 421, in main
rc = selecttlb.SelectTlb()
File "MyPath\Lib\site-packages\win32com\client\selecttlb.py", line 172, in SelectTlb
i.minor = int(i.minor, 16)
~~~^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 16: '0.0.0'
3. There seems to be an dependency which type libraries are installed. I have one PC without that problem, but my main development PCs show all that error message. On one I installed 3.14 fresh, together with pip install pywin32. Same problem.
Based on the comments in the source file, I think there’s something wrong with some of your registry entries, which you can edit by typing regedit into the Win + R dialog. I’m not familiar with the library, but I can point you to start reading here.