Closed michellebieger closed 4 months ago
Hi Michelle! I don't think we've ever come across this error. A few troubleshooting suggestions (sorry that they are sparse):
Thank you very much for your patience!
- Is this platform specific error? Have you tried following instructions from a docker container or a windows machine?
I would like to get it into a Docker container--this is just me following the README for this repository, where it says I must compile this first locally and then via Docker.
- Is this a version specific error? Normally the build process should work with the latest compiler. Could you clarify the versions you're using?
I've just git clone
'd this repository and tried to follow the instructions; so I assume this is the latest version. I've also been trying to find a way to use the PyPi unifmu
package in a poetry
environment to generate an FMU and then deploy to Docker--in this I also have a few questions--namely, how to get the generated model into Docker? How I can specify what the intended release environment (Windows, Mac, etc.) should be? And just generally I'm not sure I'm generating it correctly--I've done the following: create a new poetry
environment, putting my requirements.txt
, builder.py
file in the new repository, then add unifmu
to the poetry
.toml
file and run poetry run unifmu generate python model
.
- You seem to already have a feeling where things need to be improved. If you add the type annnotations to the code to see if the error goes away?
I'm not an expert in this langauge at all; I did try adding in the type annotations but it didn't resolve the issue!
Thanks so much for replying--would love any additional guidance you have as I'm not sure I'm understanding the documentation very well!
Thanks for the quick reply @michellebieger ! I've asked for some help internally to try and figure out whether the build has broke in the past couple of months. @sagilar is aware of this.
One more question, if you don't mind: why is it that you need to build the unifmu from source? Are the binaries in the releases not enough?
Normally it should just be to download a released version and run the command line. You can also run the binary from a docker container running ubuntu. Then I think the fact that you're on a mac no longer matters (but I am not certain here).
Thank you for your patience! Drop me an email if you want to schedule a meeting or something: https://clagms.github.io/contact/
Hi @michellebieger,
I tried fixing the issue and compiled it on my windows computer, then on the other OSs (mac included) using the docker image, and they all seemed to work. Can you see if you can compile the library with the updated code on your Mac?
Hiya, I'm looking to use this package as a way to compile FMUs on MacOS and then build on Docker. I'm currently on Apple M2 but I have Rosetta installed.
When following the local build instructions on the unifmu README, I get the following error:
Would it be possible to get assistance on correcting this? It looks like the error primarily comes from
cli/src/utils.rs
on line 21; whereoptions
hasn't been properly typescripted.