-
Notifications
You must be signed in to change notification settings - Fork 94
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
Prebuilt executables crash in release 0.9.3 #258
Comments
Confirmed, also on Win10 and Ubuntu :-( The issue is related to amaranth and / or pyinstaller. I'll try to use newer releases, if this doesn't work I'll exclude amaranth from the requirements. |
Simply re-building (pre-release v0.9.4b1) did not improve things. Root cause seems to be related to the jschon library that is used by amaranth. A |
Slightly off topic, but I want to thank you for pyfda. It has been my go-to program for analyzing and/or designing digital filters since I stumbled upon it several years ago. |
Also off topic ;-) : You would help me a lot by giving me a few hints (per PM or here) about what you like / dislike / miss in pyfda. It's the usual open source problem of developing for unknown users ... |
The reason for the crash was indeed that pyinstaller does not include the '*.json' data files of the jschon package as pointed out by the amaranth community amaranth-lang/amaranth#1549 . They can be added manually by the following snippet in the spec file for pyinstaller:
Unfortunately, amaranth still doesn't play nice with pyinstaller, I now get the warning "
|
What's the backtrace for that? It might be an issue with this code in
|
It might be a problem with your own code here:
|
True, I was not prepared to process a Now that I've got your attention ;-) - somewhat off-topic: I have been struggling to embed myHDL / migen / nmigen / amaranth into my code literally for years now. It's not so much the actual RTL description (I have some Verilog / VHDL background), I have difficulties wrapping my head around the embedding of amaranth code into my python project. In principle, simulation and Verilog export with amaranth work but my current problem is a max recursion error after some 140 steps. I know I'm not interacting correctly with my amaranth module, but I'm a bit tired of running into walls. Do you know someone from the amaranth project who could discuss the basic concepts with me some other time? As an alternative, I've started looking into using a Jinja/Verilog based template approach for generating code and possibly icarus / cocotb for simulation / verification which might be a better suited for small dsp blocks with parametrizable word length. |
You could file an issue or open a discussion on the https://github.com/amaranth-lang/amaranth/ repository, or you could reach out via IRC (#amaranth-lang at libera.chat) or Matrix (#amaranth-lang:matrix.org) to have someone assist you.
This isn't strictly speaking enough information to figure out what the problem is, but you probably generate very large expressions that need to be broken up into chunks with Do you have a reproducer?
That would almost certainly be more painful to contributors, especially those on Windows. |
Fixed in 0.9.5b1 |
The latest version (0.9.3) of pyfdax_win.exe fails on a couple of Win 11 systems I tried it on.
The text was updated successfully, but these errors were encountered: