INTO-CPS-Association / unifmu

A universal mechanism for implementing Functional Mock-up Units (FMUs) in various languages
41 stars 4 forks source link

error using -z flag #39

Closed LGentilePL closed 3 years ago

LGentilePL commented 3 years ago

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 withRUST_BACKTRACE=1environment variable to display a backtrace bash-3.2$ I am on an Apple machine.

clegaard commented 3 years ago

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 :)