-
Notifications
You must be signed in to change notification settings - Fork 2
TypeError: 'bytearray' object does not support item assignment #4
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
Comments
Thanks for the awesome bug report @chris-schmitz ! I think it is a bug. Hopefully @sommersoft can look at it a bit later today. |
To echo @tannewt, thank you for the detailed report. I can definitely look into this later today. |
No problem at all :) Let me know if there's anything else I can do to help you dig in. |
@chris-schmitz, ID'd what was causing this. May take a few days, but the fix will be available soon. If you're comfortable with using Thank you again for putting in the issue. And, thank you for using it! Sorry we had the hiccup; that's all on me for not testing on a non-express board before pushing it out. |
Nice :D I'm not familiar with
No problem and no worries at all. If it helps make the library better it's worth the effort! I'm just excited that I'll be able to use python for my project! I wrote out some of the logic using cpp and while it's been a good experience, I'd def much prefer using python for it. |
@sommersoft
And I got this error:
After reading the link (and some of micropython's repo issues) it seems like I have the wrong version of mpy-cross for the original trellis python file. Does this sound right? If so, what version of python did you write the original version of the library in? I'm also cool with waiting for the pull request to be merged in so if you don't have time to help on this question no worries, figuring out mpy-cross (and python dev in general) personal exploration. I can go back and dig more later (just ran out of time at lunch today). |
Aww yeah!!! @sommersoft The fix from the pull request def fixed my issue! I'll def pull in the new version of the mpy file once the PR's been approved for this repository, but for now I'm unsuck, moving forward with my project, and have learned a bit of python tooling along the way. Thanks for the help! It's super appreciated! |
@chris-schmitz sweet!!! Glad it's working for you! And keep us updated on your project (on Discord, or maybe Show & Tell Live on Wednesdays?). |
Def will do. Hmm, I hadn't thought about the show and tell. Maybe I'll try to hop on soon :) |
@sommersoft thanks again for resolving this issue. I had to set the project aside for a bit because I'm trying to wrap up a project at work and it took up a bit of my free build time, but I'm starting to get back to it and making progress. I've been using circuit python to help me learn python in general and I'm loving it so far. Thanks for the help. I'm def getting there! https://vimeo.com/265899480 |
I'm new to both python and coding for arduino micro controllers so please bear with me if I missed something obvious.
I'm trying to use the trellis python library on a adafruit trinket M0. I read over the readme and installed the dependency list and installed the adafruit bus device
lib
directory on my trinket. I also double checked myboot_out.txt
file on the trinket and confirmed that I'm a 2.0+ version of circuit python:To start out I tried copy/pasting the readme demo code into my main.py file:
The trellis was unresponsive, so I
screen
ed into the trinket to watch the output. When I did I received the following error message:I've not dug yet into the
adafruit_trellis.py
file yet to wrap my head around what's going on. I wanted to post the issue here first to see if there's an obvious thing I'm missing.Thanks!!
The text was updated successfully, but these errors were encountered: