elrond-sdk-erdpy icon indicating copy to clipboard operation
elrond-sdk-erdpy copied to clipboard

mxpy PermissionDenied on build

Open linkocrn opened this issue 3 years ago • 1 comments

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

linkocrn avatar Feb 12 '23 03:02 linkocrn

Hey @alexisdavidson

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

Thanks! :raised_hands:

schimih avatar Mar 13 '23 10:03 schimih