microchip-pic-avr-tools / pykitinfo Goto Github PK
View Code? Open in Web Editor NEWpykitinfo provides information about connected Microchip development kits and tools
License: MIT License
pykitinfo provides information about connected Microchip development kits and tools
License: MIT License
(py310x64venv) PS>pip install pykitinfo --upgrade
Collecting pykitinfo
Downloading pykitinfo-0.4.0.6-py3-none-any.whl (19 kB)
Requirement already satisfied: pyusb>=1.2.0 in c:\work\python\py310x64venv\lib\site-packages (from pykitinfo) (1.2.1)
Requirement already satisfied: PyYAML in c:\work\python\py310x64venv\lib\site-packages (from pykitinfo) (6.0)
Requirement already satisfied: appdirs in c:\work\python\py310x64venv\lib\site-packages (from pykitinfo) (1.4.4)
Requirement already satisfied: pyedbglib>=2.22.* in c:\work\python\py310x64venv\lib\site-packages (from pykitinfo) (2.23.0.14)
Collecting pydebuggerconfig>=3.5 (from pykitinfo)
Downloading pydebuggerconfig-3.9.2.121-py3-none-any.whl (217 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 217.5/217.5 kB 6.7 MB/s eta 0:00:00
Collecting crcmod (from pydebuggerconfig>=3.5->pykitinfo)
Downloading crcmod-1.7.tar.gz (89 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 89.7/89.7 kB ? eta 0:00:00
Preparing metadata (setup.py) ... done
Requirement already satisfied: packaging in c:\work\python\py310x64venv\lib\site-packages (from pydebuggerconfig>=3.5->pykitinfo) (23.0)
Requirement already satisfied: IntelHex in c:\work\python\py310x64venv\lib\site-packages (from pydebuggerconfig>=3.5->pykitinfo) (2.3.0)
Collecting xmlschema (from pydebuggerconfig>=3.5->pykitinfo)
Downloading xmlschema-2.5.0-py3-none-any.whl.metadata (8.3 kB)
Requirement already satisfied: pyserial>=3.5 in c:\work\python\py310x64venv\lib\site-packages (from pyedbglib>=2.22.*->pykitinfo) (3.5)
Requirement already satisfied: cython in c:\work\python\py310x64venv\lib\site-packages (from pyedbglib>=2.22.*->pykitinfo) (3.0.0)
Requirement already satisfied: hidapi in c:\work\python\py310x64venv\lib\site-packages (from pyedbglib>=2.22.*->pykitinfo) (0.14.0)
Requirement already satisfied: setuptools>=19.0 in c:\work\python\py310x64venv\lib\site-packages (from hidapi->pyedbglib>=2.22.*->pykitinfo) (65.5.0)
Collecting elementpath<5.0.0,>=4.1.5 (from xmlschema->pydebuggerconfig>=3.5->pykitinfo)
Downloading elementpath-4.1.5-py3-none-any.whl.metadata (6.7 kB)
Downloading xmlschema-2.5.0-py3-none-any.whl (395 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 395.0/395.0 kB 25.7 MB/s eta 0:00:00
Downloading elementpath-4.1.5-py3-none-any.whl (216 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 216.4/216.4 kB ? eta 0:00:00
Building wheels for collected packages: crcmod
Building wheel for crcmod (setup.py) ... done
Created wheel for crcmod: filename=crcmod-1.7-cp310-cp310-win_amd64.whl size=25182 sha256=f7b562382e0704525b6aa9638df7b4375a65006fd026b1bf307cb8c99dc6ce6e
Stored in directory: c:\users\xiaof\appdata\local\pip\cache\wheels\85\4c\07\72215c529bd59d67e3dac29711d7aba1b692f543c808ba9e86
Successfully built crcmod
DEPRECATION: pykitinfo 0.4.0.6 has a non-standard dependency specifier pyedbglib>=2.22.*. pip 24.0 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of pykitinfo or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at https://github.com/pypa/pip/issues/12063
Installing collected packages: crcmod, elementpath, xmlschema, pydebuggerconfig, pykitinfo
Successfully installed crcmod-1.7 elementpath-4.1.5 pydebuggerconfig-3.9.2.121 pykitinfo-0.4.0.6 xmlschema-2.5.0
Hello! this looks like a pretty simple but extremely useful helper for those of us trying to get started using pyedbg!
My trouble is that I'm struggling to figure out which device file I need to change permissions on in order to get pykitinfo
to succeed. Would you consider adding a bit more info to the -v debug
mode that informs the user which devices it's trying to access? I have a PIC Kit 4 attached, and I'm getting this output:
glen@celeron:~$ pykitinfo -v debug
Looking for Microchip kits...
pykitinfo.pykitinfo - DEBUG - Looking for xEDBG kits
pykitinfo.pykitinfo - DEBUG - Looking for PKoB/PICkit 3 kits
pykitinfo.gen4_detect - DEBUG - Looking for Gen4 kits
pykitinfo.pykitinfo_cli - ERROR - Operation failed with ValueError: The device has no langid (permission issue, no string descriptors supported or device error)
pykitinfo.pykitinfo_cli - DEBUG - The device has no langid (permission issue, no string descriptors supported or device error)
Traceback (most recent call last):
File "/home/glen/.local/lib/python3.10/site-packages/pykitinfo/pykitinfo_cli.py", line 131, in main
return pykitinfo.pykitinfo(arguments)
File "/home/glen/.local/lib/python3.10/site-packages/pykitinfo/pykitinfo.py", line 38, in pykitinfo
kit_list = detect_all_kits()
File "/home/glen/.local/lib/python3.10/site-packages/pykitinfo/pykitinfo.py", line 65, in detect_all_kits
kit_list += detect_gen4_tools()
File "/home/glen/.local/lib/python3.10/site-packages/pykitinfo/gen4_detect.py", line 116, in detect_gen4_tools
tools = list_gen4_libusb_tools()
File "/home/glen/.local/lib/python3.10/site-packages/pykitinfo/gen4_detect.py", line 72, in list_gen4_libusb_tools
serial_number = device.serial_number
File "/home/glen/.local/lib/python3.10/site-packages/usb/core.py", line 864, in serial_number
self._serial_number = util.get_string(self, self.iSerialNumber)
File "/home/glen/.local/lib/python3.10/site-packages/usb/util.py", line 313, in get_string
raise ValueError("The device has no langid"
ValueError: The device has no langid (permission issue, no string descriptors supported or device error)
Thank you!
Glen
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.