multiversx / mx-sdk-py-cli

Python Command Line Tools and SDK for interacting with the MultiversX blockchain and dApps.
Other
35 stars 36 forks source link

mxpy PermissionDenied on build #223

Open alexisdavidson opened 1 year ago

alexisdavidson commented 1 year ago

Finished release [optimized] target(s) in 0.38s thread 'main' panicked at 'failed to copy compiled contract to output directory: Os { code: 1, kind: PermissionDenied, message: "Operation not permitted" }', /home/alexis/multiversx-sdk/vendor-rust/registry/src/github.com-1ecc6299db9ec823/elrond-wasm-debug-0.34.1/src/meta/meta_wasm_build.rs:47:10 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace CRITICAL:cli:Build error: error code = 101, see output.

I get this error when trying to "mxpy contract build" from WSL but in a Windows path (like on the desktop). It works fine when I build in the root directory from WSL though.

I would like this to work so I can improve my workflow.

Any idea how to bypass this PermissionDenied error on building a contract?

In the output directory, the .abi file gets created successfully but the .wasm file is empty

schimih commented 1 year ago

Hey @alexisdavidson

Is this still a problem after mxpy v6.0.0 release?

Thanks! :raised_hands: