Open Kabron287 opened 5 years ago
Short story: Install Python 3.6 or 3.7 (I'm using 3.7) and use that. I suspect your old Python 3.4 is the first problem here.
Longer story: Even then the gui won't work, because it's only made to enumerate ports on OSX and Linux. However, once you know what port you're on (e.g., "COM3:
"), you can make a simple hack of spigui.py to make it work:
After the line self.devs = self.devices()
Add the line self.devs = {'COM3:': 'COM3:'}
(with your COM port in it)
Then it (hopefully) will work better. Mine works with this.
I'd also suggest you update the title here to be more informative - something like "Unable to run samples using Windows 10" since that's really the main problem here.
@Kabron287 was getting an error because of missing 'wx' - is it included in Python 3.7 on Windows?
Or did you install wx by doing something like: https://wxpython.org/pages/downloads/index.html
I have opened #17 for the port enumeration problem. Thanks
The warnings about python_requires and the The headers or library files could not be found for zlib, a required dependency when compiling Pillow from source.
error are what I see in their logfile here. The former suggests outdated Python, but the latter is because Pillow is being compiled (a binary wheel would be the way to go for that.) Maybe updating pip would allow that, but installing a current Python might be a better way to go to get a functional install - 3.4 is also just about EOL:
Python GUI should:
Windows 10 x64 executing pip install pillow spidriver I got a huge output with meaningnone sense. See attach. pip_output.txt
executing python spigui.py I got
d:\Down\SPI_Driver\spidriver-master\python\samples>python spigui.py Traceback (most recent call last): File "spigui.py", line 9, in <module> import wx ImportError: No module named 'wx'
and so on, nothing works. maybe instructions have to be more comprehensive? Any line of comments in examples?