Skip to content
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

error using -z flag #39

Closed
LGentilePL opened this issue Aug 27, 2021 · 1 comment
Closed

error using -z flag #39

LGentilePL opened this issue Aug 27, 2021 · 1 comment

Comments

@LGentilePL
Copy link

The code:
./target/unifmu generate python test-py
succesfully worked. However using the -z flag as in
./target/unifmu generate -z python test-py
produced the error:
[2021-08-27T11:20:40Z INFO unifmu] Generating FMU for language 'Python' with tmpdir "/var/folders/g6/kltshxrn3198s863_j7l4b_m0000gp/T/.tmpNHQ2H0" and final output path "test-py" [2021-08-27T11:20:40Z INFO unifmu] "/var/folders/g6/kltshxrn3198s863_j7l4b_m0000gp/T/.tmpNHQ2H0/binaries/win64/unifmu.dll" [2021-08-27T11:20:40Z INFO unifmu] copying resource "python/backend.py" to "/var/folders/g6/kltshxrn3198s863_j7l4b_m0000gp/T/.tmpNHQ2H0/resources/backend.py" [2021-08-27T11:20:40Z INFO unifmu] copying resource "python/model.py" to "/var/folders/g6/kltshxrn3198s863_j7l4b_m0000gp/T/.tmpNHQ2H0/resources/model.py" [2021-08-27T11:20:40Z INFO unifmu] copying resource "auto_generated/unifmu_fmi2_pb2.py" to "/var/folders/g6/kltshxrn3198s863_j7l4b_m0000gp/T/.tmpNHQ2H0/resources/schemas/unifmu_fmi2_pb2.py" [2021-08-27T11:20:40Z INFO unifmu] copying resource "python/launch.toml" to "/var/folders/g6/kltshxrn3198s863_j7l4b_m0000gp/T/.tmpNHQ2H0/resources/launch.toml" [2021-08-27T11:20:40Z INFO unifmu] copying resource "python/README.md" to "/var/folders/g6/kltshxrn3198s863_j7l4b_m0000gp/T/.tmpNHQ2H0/resources/README.md" thread 'main' panicked at 'not yet implemented', cli/src/lib.rs:163:17 note: run with RUST_BACKTRACE=1environment variable to display a backtrace bash-3.2$
I am on an Apple machine.

@clegaard
Copy link
Contributor

Thanks for the report. I will add the functionality soonish.
In the mean time you can manually zip the FMU using 7zip or similar, and manually change the extension from .zip to .fmu :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants