whitequark[cis] changed the topic of #glasgow to: digital interface explorer · meetings Saturday 2200 UTC · code https://github.com/GlasgowEmbedded/glasgow · logs https://libera.irclog.whitequark.org/glasgow · Matrix #glasgow-interface-explorer:matrix.org · discord https://1bitsquared.com/pages/chat
emaste[m] has joined #glasgow
<emaste[m]> A pair of Glasgows arrived today 🎉
<emaste[m]> Now I need to get the software working on FreeBSD
<whitequark[cis]> !!!
<whitequark[cis]> let me know how this goes, and please do add info to the manual once you do
<emaste[m]> File "/usr/home/emaste/src/glasgow/software/glasgow/support/plugin.py", line 71, in all
<emaste[m]> TypeError: entry_points() got an unexpected keyword argument 'group'
<emaste[m]> return {ep.name: cls(ep) for ep in importlib.metadata.entry_points(group=cls.GROUP_NAME)}
<whitequark[cis]> which python?
<emaste[m]> it's going to be a bunch of yak shaving
<emaste[m]> 3.9.18
<whitequark[cis]> software is broken on 3.9 for unclear reasons
<whitequark[cis]> it passes on CI
<whitequark[cis]> maybe CI just never exercises that code?..
<emaste[m]> Hrm, well that makes me happy at least that this specific issue isn't FreeBSD-specific
<_whitenotifier-f> [glasgow] emaste commented on issue #408: "glasgow --version" produces TypeError: entry_points() got an unexpected keyword argument 'group' - https://github.com/GlasgowEmbedded/glasgow/issues/408#issuecomment-1745916064
Darius has quit [Quit: Bye]
Darius has joined #glasgow
<emaste[m]> hrm, there's a compatibility note that says
<emaste[m]> > The “selectable” entry points were introduced in importlib_metadata 3.6 and Python 3.10. Prior to those changes, entry_points accepted no parameters and always returned a dictionary of entry points, keyed by group.
<_whitenotifier-f> [glasgow] emaste commented on issue #408: "glasgow --version" produces TypeError: entry_points() got an unexpected keyword argument 'group' - https://github.com/GlasgowEmbedded/glasgow/issues/408#issuecomment-1745923044
<whitequark[cis]> okay lemme fix this quick
<_whitenotifier-f> [glasgow] SnoopJ commented on issue #408: "glasgow --version" produces TypeError: entry_points() got an unexpected keyword argument 'group' - https://github.com/GlasgowEmbedded/glasgow/issues/408#issuecomment-1745924275
<emaste[m]> esden (@_discord_269693955338141697:catircservices.org) LED resistors might want more tuning 🙂
<emaste[m]> FX2 is very bright
<_whitenotifier-f> [glasgow] whitequark opened pull request #416: support.plugin: add python 3.8-3.9 support - https://github.com/GlasgowEmbedded/glasgow/pull/416
<SnoopJ> oh huh even simpler
<whitequark[cis]> :/
<emaste[m]> is a python newbie, unfortunately
<esden[m]> sorry but it will stay what it is for the time being. I will not be making any "tuning" at this point.
<emaste[m]> LEDs are just too efficient these days
<esden[m]> feel free to tape over it. It is fine when used with a case.
<emaste[m]> It's in a case
<SnoopJ> oh right, that error is from elsewhere in the `plugin` module, so you *did* fix the problem but there are other parts of the code that are assuming the newer `importlib.metadata` surface
<esden[m]> ok well, I was fine with it, but I tend to have a lot light in my work areas. It is bit individual what is too much or too little.
<whitequark[cis]> yeah I think I know how to fix this
<SnoopJ> you could maybe getattr() your way out of the bag there but `importlib-metadata` is the "it just works as if I had the modern one" fix
<SnoopJ> (not that you need my input, lol)
<whitequark[cis]> emaste: try again?
<_whitenotifier-f> [glasgow] whitequark synchronize pull request #416: support.plugin: add python 3.8-3.9 support - https://github.com/GlasgowEmbedded/glasgow/pull/416
<emaste[m]> `ModuleNotFoundError: No module named 'importlib_metadata'`
<whitequark[cis]> you need to reinstall
<whitequark[cis]> pipx reinstall glasgow
<whitequark[cis]> (it's mentioned on https://glasgow-embedded.org/latest/install.html!)
<_whitenotifier-f> [glasgow] SnoopJ reviewed pull request #416 commit - https://github.com/GlasgowEmbedded/glasgow/pull/416#discussion_r1344995238
<_whitenotifier-f> [glasgow] whitequark reviewed pull request #416 commit - https://github.com/GlasgowEmbedded/glasgow/pull/416#discussion_r1345000555
<_whitenotifier-f> [glasgow] whitequark synchronize pull request #416: support.plugin: add python 3.8-3.9 support - https://github.com/GlasgowEmbedded/glasgow/pull/416
<whitequark[cis]> pushed again
<whitequark[cis]> emaste: last versoin?
<whitequark[cis]> the current one works for me
<SnoopJ> oh hah you're impacted by aiohttp dragging their feet on a release, too. I have no idea what they're waiting on
<SnoopJ> but if it's a bunch of angry users they're about to get it
<emaste[m]> just a sec
<SnoopJ> nice
<whitequark[cis]> yesssss
<whitequark[cis]> that is ... somewhat normal
<SnoopJ> hah
<emaste[m]> $ glasgow list
<emaste[m]> Segmentation fault (core dumped)
<whitequark[cis]> could you report this to python-usb1 maintainerplease?
<whitequark[cis]> s/maintainerplease/maintainer please/
<whitequark[cis]> it's not something in glasgow, i think
<emaste[m]> Yeah, I don't think this is glasgow's fault
<emaste[m]> now how do I run python under lldb under pipx
<whitequark[cis]> pipx creates a venv for you
<whitequark[cis]> this should work more directly
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 1 commit to gh-readonly-queue/main/pr-416-309eda03335674de894fd713bb691f423af6787d [+0/-0/±3] https://github.com/GlasgowEmbedded/glasgow/commit/613cdc10bc61
<_whitenotifier-f> [GlasgowEmbedded/glasgow] whitequark 613cdc1 - support.plugin: add python 3.8-3.9 support.
<emaste[m]> lldb /usr/home/emaste/.local/pipx/venvs/glasgow/bin/python -- /usr/home/emaste/.local/pipx/venvs/glasgow/bin/glasgow
<_whitenotifier-f> [glasgow] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-416-309eda03335674de894fd713bb691f423af6787d - https://github.com/GlasgowEmbedded/glasgow
<SnoopJ> +1
<whitequark[cis]> aha, i see
<whitequark[cis]> there could be a number of causes to it
<whitequark[cis]> could be freebsd, could be python-usb
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 1 commit to main [+0/-0/±3] https://github.com/GlasgowEmbedded/glasgow/compare/309eda033356...613cdc10bc61
<whitequark[cis]> s/usb/usb1/
<_whitenotifier-f> [GlasgowEmbedded/glasgow] whitequark 613cdc1 - support.plugin: add python 3.8-3.9 support.
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-416-309eda03335674de894fd713bb691f423af6787d
<_whitenotifier-f> [glasgow] whitequark closed pull request #416: support.plugin: add python 3.8-3.9 support - https://github.com/GlasgowEmbedded/glasgow/pull/416
<_whitenotifier-f> [glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-416-309eda03335674de894fd713bb691f423af6787d - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-f> [glasgow] whitequark closed issue #408: "glasgow --version" produces TypeError: entry_points() got an unexpected keyword argument 'group' - https://github.com/GlasgowEmbedded/glasgow/issues/408
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-actions[bot] pushed 1 commit to gh-pages [+93/-0/±0] https://github.com/GlasgowEmbedded/glasgow/compare/d21770813294...175737345c7a
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] 1757373 - Deploying to gh-pages from @ GlasgowEmbedded/glasgow@613cdc10bc61dbb902a42ccb11fcb472a160771e 🚀
marcus_c has joined #glasgow
<whitequark[cis]> how?
<emaste[m]> - if usb_context.hasCapability(usb1.CAP_HAS_HOTPLUG):
<emaste[m]> + if 0 and usb_context.hasCapability(usb1.CAP_HAS_HOTPLUG):
<SnoopJ> lol
<whitequark[cis]> ah
cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #glasgow
pg12 has quit [Ping timeout: 248 seconds]
<vivithecanine[m]> Trying to poke at the OPL2 applet and I can't figure out what voltage settings are appropriate, as it's a required setting
pg12 has joined #glasgow
redstarcomrade has joined #glasgow
redstarcomrade has quit [Changing host]
redstarcomrade has joined #glasgow
pg12 has quit [Ping timeout: 255 seconds]
pg12 has joined #glasgow
gundy9558[m] has quit [Quit: Idle timeout reached: 172800s]
joerg has quit [Ping timeout: 272 seconds]
joerg has joined #glasgow
brolin has joined #glasgow
brolin has quit [Ping timeout: 255 seconds]
redstarcomrade has quit [Read error: Connection reset by peer]
<vivithecanine[m]> I get Error: Streaming timeout (glitched too hard?) when trying to play back the sample VGZ files with the yamaha applet
ar-jan has joined #glasgow
ewenmcneill[m] has quit [Quit: Idle timeout reached: 172800s]
bvernoux has joined #glasgow
<sven> it arrived a day early \o/
<sven> together with the case. very nice work :)
<_whitenotifier-f> [glasgow] txf- opened issue #417: glasgow build also has importlib issues with python <3.10 - https://github.com/GlasgowEmbedded/glasgow/issues/417
<whitequark[cis]> vivithecanine: 5V is usually the right voltage
<_whitenotifier-f> [glasgow] whitequark assigned issue #417: glasgow build also has importlib issues with python <3.10 - https://github.com/GlasgowEmbedded/glasgow/issues/417
jscarsbrook[m] has joined #glasgow
<jscarsbrook[m]> My Glasgow arrived and it got it interfacing with a ADT7410. This is an incredibly amazing project.
<whitequark[cis]> :D
<whitequark[cis]> thank you
nullun[m] has quit [Quit: Idle timeout reached: 172800s]
<pitust> roughly how many (per day) glasgows are being assembled? (and thus, roughly how long until mine will be shipped?)
<whitequark[cis]> I think Esden assembles the devices in batches, so it's not something that meaningfully averages per day
<smeding> oo, apparently a package arrived at my parents' place. i wonder...!
redstarcomrade has joined #glasgow
redstarcomrade has quit [Changing host]
redstarcomrade has joined #glasgow
<smeding> can't wait to 何でもできる!何でもなる!
<smeding> ... 何でもする, i suppose
<emaste[m]> Hopefully someone reports success with Python 3.9 on Linux - I'll pick up the FreeBSD experiments again after that
redstarcomrade has quit [Read error: Connection reset by peer]
skipwich has quit [Ping timeout: 255 seconds]
skipwich has joined #glasgow
skipwich_ has joined #glasgow
skipwich has quit [Ping timeout: 255 seconds]
skipwich_ is now known as skipwich
skipwich is now known as skipwich_
skipwich_ is now known as skipwich
<_whitenotifier-f> [glasgow] whitequark opened issue #418: Add the very nice diagrams from CrowdSupply packaging on the website - https://github.com/GlasgowEmbedded/glasgow/issues/418
<_whitenotifier-f> [glasgow] whitequark assigned issue #418: Add the very nice diagrams from CrowdSupply packaging on the website - https://github.com/GlasgowEmbedded/glasgow/issues/418
<whitequark[cis]> currently sorting out issues on python 3.8/3.9
<whitequark[cis]> i am miserable
<SnoopJ> it's very nice that `importlib.metadata` exists but the rapid changes in its interface over several releases are perfect misery-fodder
brolin has joined #glasgow
<_whitenotifier-f> [glasgow] whitequark opened pull request #419: Add an abominable workaround for Python 3.8-3.9 - https://github.com/GlasgowEmbedded/glasgow/pull/419
<whitequark[cis]> emaste: see above ^
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 2 commits to gh-readonly-queue/main/pr-419-613cdc10bc61dbb902a42ccb11fcb472a160771e [+0/-0/±5] https://github.com/GlasgowEmbedded/glasgow/compare/69d23bfa397b^...54edef07eaed
<_whitenotifier-f> [GlasgowEmbedded/glasgow] whitequark 69d23bf - plugin: fix type error setting `requirement.marker`.
<_whitenotifier-f> [GlasgowEmbedded/glasgow] whitequark 54edef0 - support.plugin: abominable workaround for Python 3.8-3.9.
<_whitenotifier-f> [glasgow] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-419-613cdc10bc61dbb902a42ccb11fcb472a160771e - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 2 commits to main [+0/-0/±5] https://github.com/GlasgowEmbedded/glasgow/compare/613cdc10bc61...54edef07eaed
<_whitenotifier-f> [GlasgowEmbedded/glasgow] whitequark 69d23bf - plugin: fix type error setting `requirement.marker`.
<_whitenotifier-f> [GlasgowEmbedded/glasgow] whitequark 54edef0 - support.plugin: abominable workaround for Python 3.8-3.9.
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-419-613cdc10bc61dbb902a42ccb11fcb472a160771e
<_whitenotifier-f> [glasgow] whitequark closed pull request #419: Add an abominable workaround for Python 3.8-3.9 - https://github.com/GlasgowEmbedded/glasgow/pull/419
<_whitenotifier-f> [glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-419-613cdc10bc61dbb902a42ccb11fcb472a160771e - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-f> [glasgow] whitequark closed issue #417: glasgow build also has importlib issues with python <3.10 - https://github.com/GlasgowEmbedded/glasgow/issues/417
novakov[m] has joined #glasgow
<novakov[m]> my glasgow arrived today (a lot quicker than I expected) after a bit of play with it I'm curious - did you think about using IPython as repl?
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-actions[bot] pushed 1 commit to gh-pages [+93/-0/±0] https://github.com/GlasgowEmbedded/glasgow/compare/175737345c7a...a9f88f69585c
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] a9f88f6 - Deploying to gh-pages from @ GlasgowEmbedded/glasgow@54edef07eaed4e086ff974aaff8c6f2b260f7f92 🚀
<whitequark[cis]> what the fuck:??
<whitequark[cis]> I think I found a bug in GitHub?
<russss> did you summon a bug with too much cursed python
brolin has quit [Ping timeout: 258 seconds]
nullun[m]1 has quit [Quit: Idle timeout reached: 172800s]
<emaste[m]> ah back to FreeBSD yak shaving RuntimeError: unsupported platform freebsd14 for wasmtime
<emaste[m]> @Catherine thanks for sorting out python 3.8/3.9, sorry that you've got a bunch of non-fun things
<_whitenotifier-f> [glasgow] whitequark opened pull request #420: Fix the abominable workaround for Python 3.8-3.9 to work on 3.10+ - https://github.com/GlasgowEmbedded/glasgow/pull/420
<whitequark[cis]> 420 blaze it
<emaste[m]> it looks like wasmtime should have FreeBSD support but maybe there's something that's confused by the version number
<_whitenotifier-f> [glasgow] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-420-54edef07eaed4e086ff974aaff8c6f2b260f7f92 - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 1 commit to gh-readonly-queue/main/pr-420-54edef07eaed4e086ff974aaff8c6f2b260f7f92 [+0/-0/±1] https://github.com/GlasgowEmbedded/glasgow/commit/62e27d9941bf
<_whitenotifier-f> [GlasgowEmbedded/glasgow] whitequark 62e27d9 - support.plugin: fix the abominable workaround for Python 3.10+.
<whitequark[cis]> oh god it does not work on python 3.8
<whitequark[cis]> you know what i'll just drop support for that
lle_bout[m] has joined #glasgow
<lle_bout[m]> Catherine: python3.8 is really ancient by now, even Debian oldstable has 3.9
<whitequark[cis]> yeah
<SnoopJ> idk about "ancient" but it's now the oldest extant version
<SnoopJ> I may be biased there though since $employer moves like molasses and we're still targeting an officially-EOL version :(
<_whitenotifier-f> [glasgow] whitequark closed pull request #420: Fix the abominable workaround for Python 3.8-3.9 to work on 3.10+ - https://github.com/GlasgowEmbedded/glasgow/pull/420
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-420-54edef07eaed4e086ff974aaff8c6f2b260f7f92
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 1 commit to main [+0/-0/±1] https://github.com/GlasgowEmbedded/glasgow/compare/54edef07eaed...62e27d9941bf
<_whitenotifier-f> [GlasgowEmbedded/glasgow] whitequark 62e27d9 - support.plugin: fix the abominable workaround for Python 3.10+.
<_whitenotifier-f> [glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-420-54edef07eaed4e086ff974aaff8c6f2b260f7f92 - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-actions[bot] pushed 1 commit to gh-pages [+93/-0/±0] https://github.com/GlasgowEmbedded/glasgow/compare/a9f88f69585c...954813a74d10
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] 954813a - Deploying to gh-pages from @ GlasgowEmbedded/glasgow@62e27d9941bf22d1fdb73681af7eb74e96be775a 🚀
<lle_bout[m]> I see, 3.8 still has security support but EOL in October 2024, it was initially released in October 2019 apparently - https://devguide.python.org/versions/ - but I think that in practice not many people are still gonna be on debian oldoldstable which has Python 3.7 so it's reasonable to expect newer, I use debian as a reference because most commonly available LTS distros are debian derivatives
<SnoopJ> Debian has thankfully woken up and gotten with the times instead of continuing to live on the trailing edge of Python
<SnoopJ> probably in no small part because there's been a lot more cooperation between the core and distros (PEP 668 being a particularly recent/controversial example)
<_whitenotifier-f> [glasgow] whitequark opened pull request #421: Drop Python 3.8 support - https://github.com/GlasgowEmbedded/glasgow/pull/421
<whitequark[cis]> <emaste[m]> "it looks like wasmtime should..." <- I think wasmtime-py does not publish wheels for FreeBSD
<whitequark[cis]> and I'm not actually sure what a freebsd wheel would even look like
<_whitenotifier-f> [glasgow] whitequark synchronize pull request #421: Drop Python 3.8 support - https://github.com/GlasgowEmbedded/glasgow/pull/421
<_whitenotifier-f> [glasgow] whitequark synchronize pull request #421: Drop Python 3.8 support - https://github.com/GlasgowEmbedded/glasgow/pull/421
<_whitenotifier-f> [glasgow] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-421-62e27d9941bf22d1fdb73681af7eb74e96be775a - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 2 commits to gh-readonly-queue/main/pr-421-62e27d9941bf22d1fdb73681af7eb74e96be775a [+0/-0/±4] https://github.com/GlasgowEmbedded/glasgow/compare/d4a46dc7c896^...92f76ba54f66
<_whitenotifier-f> [GlasgowEmbedded/glasgow] whitequark d4a46dc - software: remove Python 3.7 compatibility shims.
<_whitenotifier-f> [GlasgowEmbedded/glasgow] whitequark 92f76ba - software: drop support for Python 3.8.
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-421-62e27d9941bf22d1fdb73681af7eb74e96be775a
<_whitenotifier-f> [glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-421-62e27d9941bf22d1fdb73681af7eb74e96be775a - https://github.com/GlasgowEmbedded/glasgow
bvernoux has quit [Read error: Connection reset by peer]
brolin has joined #glasgow
<_whitenotifier-f> [glasgow] whitequark synchronize pull request #421: Drop Python 3.8 support - https://github.com/GlasgowEmbedded/glasgow/pull/421
brolin has quit [Ping timeout: 272 seconds]
brolin has joined #glasgow
brolin has quit [Ping timeout: 255 seconds]
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 2 commits to gh-readonly-queue/main/pr-421-62e27d9941bf22d1fdb73681af7eb74e96be775a [+0/-0/±5] https://github.com/GlasgowEmbedded/glasgow/compare/ef1efe2f98f6^...e4fd2dc22f9a
<_whitenotifier-f> [GlasgowEmbedded/glasgow] whitequark ef1efe2 - software: remove Python 3.7 compatibility shims.
<_whitenotifier-f> [GlasgowEmbedded/glasgow] whitequark e4fd2dc - software: drop support for Python 3.8.
<_whitenotifier-f> [glasgow] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-421-62e27d9941bf22d1fdb73681af7eb74e96be775a - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 2 commits to main [+0/-0/±5] https://github.com/GlasgowEmbedded/glasgow/compare/62e27d9941bf...e4fd2dc22f9a
<_whitenotifier-f> [GlasgowEmbedded/glasgow] whitequark ef1efe2 - software: remove Python 3.7 compatibility shims.
<_whitenotifier-f> [GlasgowEmbedded/glasgow] whitequark e4fd2dc - software: drop support for Python 3.8.
<_whitenotifier-f> [glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-421-62e27d9941bf22d1fdb73681af7eb74e96be775a - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-f> [glasgow] whitequark closed pull request #421: Drop Python 3.8 support - https://github.com/GlasgowEmbedded/glasgow/pull/421
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-421-62e27d9941bf22d1fdb73681af7eb74e96be775a
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-actions[bot] pushed 1 commit to gh-pages [+93/-0/±0] https://github.com/GlasgowEmbedded/glasgow/compare/954813a74d10...591ea85055de
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] 591ea85 - Deploying to gh-pages from @ GlasgowEmbedded/glasgow@e4fd2dc22f9a48b633004cab0d749606a31e07a2 🚀
<_whitenotifier-f> [glasgow] txf- opened issue #422: running Glasgow exectutable produces "TypeError: expected string or bytes-like object" in packaging\utils.py - https://github.com/GlasgowEmbedded/glasgow/issues/422
<sorear> wondering if it would make sense to use glasgow-embedded.org as the main landing page instead of the repo e.g. in the TOPIC here
whitequark[cis] changed the topic of #glasgow to: digital interface explorer · meetings Saturday 2200 UTC · https://glasgow-embedded.org · logs https://libera.irclog.whitequark.org/glasgow · Matrix #glasgow-interface-explorer:matrix.org · Discord https://1bitsquared.com/pages/chat
whitequark[cis] changed the topic of #glasgow to: https://glasgow-embedded.org · digital interface explorer · meetings Saturday 2200 UTC · logs https://libera.irclog.whitequark.org/glasgow · Matrix #glasgow-interface-explorer:matrix.org · Discord https://1bitsquared.com/pages/chat
<_whitenotifier-f> [glasgow] whitequark commented on issue #422: running Glasgow exectutable produces "TypeError: expected string or bytes-like object" in packaging\utils.py - https://github.com/GlasgowEmbedded/glasgow/issues/422#issuecomment-1747472518
<_whitenotifier-f> [glasgow] whitequark commented on issue #287: GPIB applet - https://github.com/GlasgowEmbedded/glasgow/issues/287#issuecomment-1747483555
<emaste[m]> I'm not even sure what wheels are 🙂 But it seems I know what my next tasks are at least.
<whitequark[cis]> emaste: wasmtime isn't a hard dep; instead it's a way to ship yosys, nextpnr-ice40, and icepack to people without having them download something like https://github.com/YosysHQ/oss-cad-suite-build
<whitequark[cis]> I think basically no one in the Python or open FPGA tools ecosystem ships binaries for FreeBSD
notgull has quit [Ping timeout: 260 seconds]
<emaste[m]> I'm not really sure why they'd _need_ to (as opposed to using the FreeBSD package collection)
<whitequark[cis]> does FreeBSD package yosys, nextpnr-ice40 and icepack?
<emaste[m]> yosys-0.33
<whitequark[cis]> that's good enough
<emaste[m]> nextpnr-0.4_1,1 Portable FPGA place and route tool
<whitequark[cis]> good enough
<whitequark[cis]> (which architectures?)
<emaste[m]> hmm, no -ice40 though, not sure what's in that nextpnr package (will look), no icepack
<whitequark[cis]> devel/icestorm?
<whitequark[cis]> https://cgit.freebsd.org/ports/tree/devel/icestorm yeah this is it
<emaste[m]> ah yes icestorm-g20220915 IceStorm tools for Lattice iCE40 FPGAs
<whitequark[cis]> you're all set
<whitequark[cis]> you can completely ignore missing wasmtime
<whitequark[cis]> it's entirely optional
<whitequark[cis]> let me draft a PR for FreeBSD install instructions
<emaste[m]> well other than it terminates with an exception, but I can if 0 and that for now too 🙂
notgull has joined #glasgow
<whitequark[cis]> which?
<whitequark[cis]> I'm confused?
<whitequark[cis]> also how do you install anything on freebsd?
<emaste[m]> it exited with an exception from RuntimeError: unsupported platform freebsd14 for wasmtime
<whitequark[cis]> okay so
<whitequark[cis]> uninstall wasmtime
dcdb2[m] has quit [Quit: Idle timeout reached: 172800s]
<whitequark[cis]> or, hm, hold on
<whitequark[cis]> are you using pipx?
<emaste[m]> yeah
<whitequark[cis]> okay, do this
<whitequark[cis]> pipx uninstall glasgow
<whitequark[cis]> pipx install -e 'glasgow/software' # (note the lack of [builtin-toolchain]``
<whitequark[cis]> * pipx install -e 'glasgow/software' # (note the lack of [builtin-toolchain\]
<whitequark[cis]> s//`/, s///, s/``/`/
<whitequark[cis]> s//`/, s///, s/``/)`/
<emaste[m]> ah, so that should just rely on me having yosys etc. installed as FreeBSD packages
<whitequark[cis]> yes
<whitequark[cis]> does freebsd use sudo?
<whitequark[cis]> or is it just su or something
<emaste[m]> sudo (or doas) packages are available and present on most typical FreeBSD machines, although I don't have sudo at the moment
<whitequark[cis]> I'll just use # shell prompt tehn
<whitequark[cis]> s/#/`#`/, s/tehn/then/
<whitequark[cis]> assuming the FreeBSD user knows what they're doing already
<emaste[m]> oh, for the FreeBSD install instructions? yeah I usually just use # for examples that need root
<emaste[m]> but $ sudo blah would not be at all out of place
<whitequark[cis]> for linux it's nice to be able to copy and paste them into the terminal and sudo works fine
<whitequark[cis]> ahh I see
tuxfool[m] has quit [Quit: Idle timeout reached: 172800s]
<_whitenotifier-f> [glasgow] whitequark opened pull request #423: Add installation instructions for FreeBSD - https://github.com/GlasgowEmbedded/glasgow/pull/423
<whitequark[cis]> does this look right?
<emaste[m]> I was going to say that copy-pasting a sudo example on FreeBSD is generally going to work, but then anyone running glasgow on FreeBSD is probably a few standard deviations away from the norm 🙂
<emaste[m]> will check in one moment
<_whitenotifier-f> [glasgow] emaste reviewed pull request #423 commit - https://github.com/GlasgowEmbedded/glasgow/pull/423#discussion_r1346366725
<emaste[m]> packages installing...
<emaste[m]> and I still need to sort out the usb hotplug crash properly
<emaste[m]> hmm `ERROR: ABC: execution of command ""abc" -s -f /tmp/yosys-abc-jFhDmZ/abc.script 2>&1" failed: return code 127.`
<emaste[m]> installing abc-g20220920
<emaste[m]> \o/
<emaste[m]> glasgow run selftest leds works
<whitequark[cis]> fantastic
<whitequark[cis]> what was that with abc?
<_whitenotifier-f> [glasgow] emaste reviewed pull request #423 commit - https://github.com/GlasgowEmbedded/glasgow/pull/423#discussion_r1346373010
<whitequark[cis]> oh you just need abc
<emaste[m]> ya
<_whitenotifier-f> [glasgow] whitequark synchronize pull request #423: Add installation instructions for FreeBSD - https://github.com/GlasgowEmbedded/glasgow/pull/423
<whitequark[cis]> so yosys actually ships a version a version of abc with itself
<whitequark[cis]> and using external abc is not recommended
<emaste[m]> hmm, maybe the freebsd yosys packager removed it
<whitequark[cis]> most likely
<whitequark[cis]> this isn't correct probably
<whitequark[cis]> but will work well enough for glasgow
<emaste[m]> hmm, yosys package was added in 2018 and has been through several maintainers
<emaste[m]> will try to find out the background
<_whitenotifier-f> [glasgow] whitequark reviewed pull request #423 commit - https://github.com/GlasgowEmbedded/glasgow/pull/423#discussion_r1346377907
<_whitenotifier-f> [glasgow] whitequark reviewed pull request #423 commit - https://github.com/GlasgowEmbedded/glasgow/pull/423#discussion_r1346378011
brolin has joined #glasgow
<emaste[m]> MAKE_ARGS= ABCEXTERNAL=abc
<emaste[m]> is what's in the yosys pkg Makefile
<whitequark[cis]> yeah it should probably not use external abc
<emaste[m]> it's been there since the initial submission (https://reviews.freebsd.org/D15632), I'll ping the current maintainer and see if they can undo it
brolin has quit [Ping timeout: 272 seconds]
<emaste[m]> thanks so much for all of your help on the FreeBSD bits!
<whitequark[cis]> np! happy to have it running
brolin has joined #glasgow
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 1 commit to gh-readonly-queue/main/pr-423-e4fd2dc22f9a48b633004cab0d749606a31e07a2 [+0/-0/±1] https://github.com/GlasgowEmbedded/glasgow/commit/13d456d41e09
<_whitenotifier-f> [GlasgowEmbedded/glasgow] whitequark 13d456d - manual: install: add instructions for FreeBSD.
<_whitenotifier-f> [glasgow] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-423-e4fd2dc22f9a48b633004cab0d749606a31e07a2 - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 1 commit to main [+0/-0/±1] https://github.com/GlasgowEmbedded/glasgow/compare/e4fd2dc22f9a...13d456d41e09
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-423-e4fd2dc22f9a48b633004cab0d749606a31e07a2
<_whitenotifier-f> [glasgow] whitequark closed pull request #423: Add installation instructions for FreeBSD - https://github.com/GlasgowEmbedded/glasgow/pull/423
<_whitenotifier-f> [glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-423-e4fd2dc22f9a48b633004cab0d749606a31e07a2 - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-actions[bot] pushed 1 commit to gh-pages [+93/-0/±0] https://github.com/GlasgowEmbedded/glasgow/compare/591ea85055de...7e147f8b7ec6
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] 7e147f8 - Deploying to gh-pages from @ GlasgowEmbedded/glasgow@13d456d41e09b8404e1392a729717d4721ef7a09 🚀
<whitequark[cis]> emaste: the change is live!
<_whitenotifier-f> [glasgow] txf- commented on issue #422: running Glasgow exectutable produces "TypeError: expected string or bytes-like object" in packaging\utils.py - https://github.com/GlasgowEmbedded/glasgow/issues/422#issuecomment-1747568912
<_whitenotifier-f> [glasgow] whitequark commented on issue #422: running Glasgow exectutable produces "TypeError: expected string or bytes-like object" in packaging\utils.py - https://github.com/GlasgowEmbedded/glasgow/issues/422#issuecomment-1747574056
<_whitenotifier-f> [glasgow] whitequark opened pull request #424: CI: only test software on push/pull_request if there are modifications - https://github.com/GlasgowEmbedded/glasgow/pull/424
<_whitenotifier-f> [glasgow] txf- commented on issue #422: running Glasgow exectutable produces "TypeError: expected string or bytes-like object" in packaging\utils.py - https://github.com/GlasgowEmbedded/glasgow/issues/422#issuecomment-1747578906
<lle_bout[m]> Catherine: I noticed the author of the above issue is using Windows so should be able to upgrade to Python 3.11 rather easily
<_whitenotifier-f> [glasgow] whitequark synchronize pull request #424: CI: only test software on push/pull_request if there are modifications - https://github.com/GlasgowEmbedded/glasgow/pull/424
brolin has quit [Ping timeout: 260 seconds]
<whitequark[cis]> still need to fix the underlying bug
<whitequark[cis]> like we either support 3.9 or we do not.
<lle_bout[m]> sure :p
<lle_bout[m]> Can't wait for mine, I am eager to help with development, analyzing unknown devices as I go
<lle_bout[m]> unfortunately not early bird
<_whitenotifier-f> [glasgow] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-424-13d456d41e09b8404e1392a729717d4721ef7a09 - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 2 commits to gh-readonly-queue/main/pr-424-13d456d41e09b8404e1392a729717d4721ef7a09 [+0/-0/±2] https://github.com/GlasgowEmbedded/glasgow/compare/2fad5b56792c^...ed88757d083a
<_whitenotifier-f> [GlasgowEmbedded/glasgow] whitequark 2fad5b5 - manual: install: phrasing.
<_whitenotifier-f> [GlasgowEmbedded/glasgow] whitequark ed88757 - CI: only test software on push/pull_request if modified.
<whitequark[cis]> okay, i did some CI engineering to make this slightly less painful
<lle_bout[m]> Is there a virtual glasgow USB device or something for basic full program tests?
<whitequark[cis]> there is not a virtual glasgow USB device, no
<whitequark[cis]> what do you mean by "full program test"?
<lle_bout[m]> like command line tests, unlike units tests which would only test a function or algorithm
<lle_bout[m]> I think they also call this integration testing
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 2 commits to main [+0/-0/±2] https://github.com/GlasgowEmbedded/glasgow/compare/13d456d41e09...ed88757d083a
<_whitenotifier-f> [GlasgowEmbedded/glasgow] whitequark 2fad5b5 - manual: install: phrasing.
<_whitenotifier-f> [GlasgowEmbedded/glasgow] whitequark ed88757 - CI: only test software on push/pull_request if modified.
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-424-13d456d41e09b8404e1392a729717d4721ef7a09
<_whitenotifier-f> [glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-424-13d456d41e09b8404e1392a729717d4721ef7a09 - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-f> [glasgow] whitequark closed pull request #424: CI: only test software on push/pull_request if there are modifications - https://github.com/GlasgowEmbedded/glasgow/pull/424
<lle_bout[m]> Either way, too bad, I guess I'll have to wait until I really get one to help in any way, I very well see how many protocols could break under the radar if everything isnt being tested constantly
<lle_bout[m]> * many protocols (as they add up) could break
<whitequark[cis]> can you elaborate?
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-actions[bot] pushed 1 commit to gh-pages [+93/-0/±0] https://github.com/GlasgowEmbedded/glasgow/compare/7e147f8b7ec6...1acba7bb395e
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] 1acba7b - Deploying to gh-pages from @ GlasgowEmbedded/glasgow@ed88757d083afeb636a69519ca5fb4fabd351420 🚀
RaYmAn has quit [Remote host closed the connection]
RaYmAn has joined #glasgow
<_whitenotifier-f> [glasgow] whitequark opened pull request #425: CI: fix job skip conditions - https://github.com/GlasgowEmbedded/glasgow/pull/425
<whitequark[cis]> oh I think I know what's going on with caching on our CI
<whitequark[cis]> bleugh
<lle_bout[m]> Since I don't have a glasgow, a virtual/simulated version of glasgow would allow me to help test/develop the CLI, and then since that error from this issue we were just talking about happened with a common command people are supposed to run (at least I believe); I was mumbling about adding integration tests to the CI since you were speaking about it. But since the CI can't have a real glasgow device, then it also needs a simulated
<lle_bout[m]> version of one for that. Considering the quantity of proprietary protocols that exists, I was thinking that if people contribute code and then nobody uses it for a while because it's not such a common protocol then it could break and bit-rot (don't really know the specifics of the API to realize how main glasgow could interfere with an applet). I don't really know the design of glasgow yet or if there is some API for applets that's
<lle_bout[m]> gonna change at some point so that applets need to update. I am thinking that in many cases people will develop applets for proprietary protocols once and then never come back to maintain it.. that's why I tend to think it will break/bitrot fast
<lle_bout[m]> * maintain it (and not many people will have access to the actual hardware to test the proprietary protocol impl).. that's
<whitequark[cis]> basically, right now we are just not set up for an influx of people submitting applets period
<whitequark[cis]> since i started the project i got significantly more disabled, had to move (escape, really) across two countries, leave several abusive environments, and so on, which isn't really conducive to software development
<whitequark[cis]> there is some support for record/replay based verification of applets on CI
<whitequark[cis]> but it's at best vestigial, and there are plenty of other issues meaning we just cannot handle a big influx of applets
<lle_bout[m]> yeah.. we spoke about that before. no worries, well I'll have to study the code abit more then I will have a more informed take on potential issues
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 1 commit to gh-readonly-queue/main/pr-425-ed88757d083afeb636a69519ca5fb4fabd351420 [+0/-0/±1] https://github.com/GlasgowEmbedded/glasgow/commit/0192561adc34
<_whitenotifier-f> [GlasgowEmbedded/glasgow] whitequark 0192561 - CI: fix job skip conditions.
<_whitenotifier-f> [glasgow] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-425-ed88757d083afeb636a69519ca5fb4fabd351420 - https://github.com/GlasgowEmbedded/glasgow
<lle_bout[m]> That's nice, the record/replay
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 1 commit to main [+0/-0/±1] https://github.com/GlasgowEmbedded/glasgow/compare/ed88757d083a...0192561adc34
<_whitenotifier-f> [GlasgowEmbedded/glasgow] whitequark 0192561 - CI: fix job skip conditions.
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-425-ed88757d083afeb636a69519ca5fb4fabd351420
<_whitenotifier-f> [glasgow] whitequark closed pull request #425: CI: fix job skip conditions - https://github.com/GlasgowEmbedded/glasgow/pull/425
<_whitenotifier-f> [glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-425-ed88757d083afeb636a69519ca5fb4fabd351420 - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-actions[bot] pushed 1 commit to gh-pages [+93/-0/±0] https://github.com/GlasgowEmbedded/glasgow/compare/1acba7bb395e...0abe135457b4
<_whitenotifier-f> [GlasgowEmbedded/glasgow] github-merge-queue[bot] 0abe135 - Deploying to gh-pages from @ GlasgowEmbedded/glasgow@0192561adc344df958790ad0720414f7b161558e 🚀
duskwuff[m] has joined #glasgow
<duskwuff[m]> I wonder how viable (if at all) it'd be to have applets talk to software simulations instead of real or synthesized hardware. write a simulated serial flash chip, hook an appropriate applet up to that
<whitequark[cis]> who's gonna write all the simulation models?
<whitequark[cis]> that's even more work than the applet
<lle_bout[m]> If for all applets the tests cases include an analog or digital sample of some signals then the applets are tested against that all the time and make it a requirement for third party applets contribution to ease maintenance, sounds good to me, so that if the contributor disappears there's still a way to know the applet works even if you don't have the hardware it's supposed to work with
<lle_bout[m]> I think making an actual full simulation of glasgow is not very practical, just for purposes of CI and testing to cover some cases probably but that's it
<lle_bout[m]> The simulations are not gonna be behaving exactly like hardware and no one cares about applets that work only with simulations (e.g. in CI), so I think samples from real hardware is better, you can always add more samples as you find hardware with different behavior causing bugs
<lle_bout[m]> But the sample strategy works for read operations but not for writing, however
<whitequark[cis]> it works for any operation, actually
<lle_bout[m]> like if glasgow generate some signals to write to some NAND flash, how to test that glasgow generated proper signals the NAND flash will understand?
<whitequark[cis]> read afterwardS?
<whitequark[cis]> * read afterward?
<lle_bout[m]> I mean, in CI
<lle_bout[m]> without any hardware, glasgow or NAND flash chip
<whitequark[cis]> sorry, I don't understand; the exact same record/replay mechanism for reads can be used for writes
<whitequark[cis]> you verify the replay log
<lle_bout[m]> Okay, since I don't even know how this replay thing works, I think we can postpone this discussion when I studied glasgow CLI more
<whitequark[cis]> oh I figured out the infuriating caching issue
<whitequark[cis]> it's because when GHA has a cache hit, it doesn't overwrite the key
ar-jan has quit [Ping timeout: 255 seconds]
<_whitenotifier-f> [glasgow] whitequark opened pull request #426: Fix CI skipping and caching - https://github.com/GlasgowEmbedded/glasgow/pull/426
<_whitenotifier-f> [glasgow] whitequark synchronize pull request #426: Fix CI skipping and caching - https://github.com/GlasgowEmbedded/glasgow/pull/426
<_whitenotifier-f> [glasgow] whitequark commented on issue #422: running Glasgow exectutable produces "TypeError: expected string or bytes-like object" in packaging\utils.py - https://github.com/GlasgowEmbedded/glasgow/issues/422#issuecomment-1747665175
q3w3e3[m] has quit [Quit: Idle timeout reached: 172800s]
thestumbler[m] has quit [Quit: Idle timeout reached: 172800s]
cyrozap has quit [Quit: ZNC 1.8.2+deb3.1 - https://znc.in]
cyrozap has joined #glasgow
<_whitenotifier-f> [glasgow] txf- commented on issue #422: running Glasgow exectutable produces "TypeError: expected string or bytes-like object" in packaging\utils.py - https://github.com/GlasgowEmbedded/glasgow/issues/422#issuecomment-1747727711
brolin has joined #glasgow
Lord_Nightmare has quit [Quit: ZNC - http://znc.in]
brolin has quit [Ping timeout: 255 seconds]
cyrozap has quit [Quit: ZNC 1.8.2+deb3.1 - https://znc.in]
cyrozap has joined #glasgow
Lord_Nightmare has joined #glasgow
<Attie[m]> re cache: gah, well done
<whitequark[cis]> Attie: except it still doesn't work
<Attie[m]> i was reading through the PR wondering if it would
<whitequark[cis]> actually, no
<Attie[m]> the docs are surprisingly vague on that front... and there doesn't appear to be a way to always store the files
<whitequark[cis]> it works on exactly one runner??
<Attie[m]> Seems they all say "Cache hit occurred on the primary key [...], not saving cache." to me?
<Attie[m]> I'm struggling to see how this cache is useful - it's a one-time fill, many-times retrieve
<whitequark[cis]> you use the source file hash as your primary key
<whitequark[cis]> and if it doesn't find that it retrieves the most recent one with the same prefix
<whitequark[cis]> it's ... weird
<Attie[m]> but then you'll either end up with a new/empty cache (if any files change), or the cache won't be stored again (even if you run different paths, etc...)
<Attie[m]> i think it's intended more as a "build" then "consume" process in the same pipeline(??)
<tpw_rules> wow the case even came with the allen keys to put it together <3
<Attie[m]> i wonder if these in combination may be more what we're after:
<tpw_rules> tpw_rules@MacBook-Pro ~ % nix run nixpkgs#glasgow -- list
<tpw_rules> C3-20230730T150252Z
<tpw_rules> I: g.device.hardware: found revC3 device with API level 2 (supported API level is 1)
<tpw_rules> does the self test require some special harness
<tpw_rules> is there a way to set the analyzer rate? i get a fifo overrun error after a little while
<whitequark[cis]> <Attie[m]> "i wonder if these in combination..." <- no.
<whitequark[cis]> the cache is the right thing to use here
<whitequark[cis]> I'm fixing it up
<tpw_rules> oh maybe because i was a bad boy and didn't turn on the pull resistors
<tpw_rules> this thing is already awesome, very excited
<esden[cis]> glad you got it and having fun with it tpw_rules :)
<esden[cis]> And regarding allen wrench. I knew that if I don't include it it will be a problem for some people in all kinds of ways. Every time I get something that needs an allen wrench it comes with a wrench in most coses... even ikea furniture ... sooo I tried to clear the ikea furture bar.
<tpw_rules> how does the bitstream caching work? i don't think nixpkgs patched that out
<tpw_rules> ah it's a rather older version, ignore me