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

Nwbview silently crashing when running from rust env in conda #39

Open
Stefeg opened this issue Apr 4, 2024 · 1 comment
Open

Nwbview silently crashing when running from rust env in conda #39

Stefeg opened this issue Apr 4, 2024 · 1 comment

Comments

@Stefeg
Copy link

Stefeg commented Apr 4, 2024

I've installed nwbview in a rust environment in conda with hdf5 version 1.12 using Python version 3.9.18

But when I try to run it as below:
(rustenv) C:\Users\MsS>conda run nwbview
I get the following error:
ERROR conda.cli.main_run:execute(124): conda run nwbview failed. (See above for error)

I am not able to get more information on this error so I do not know why it failed. Are you able to help?

packages in environment at C:\Users\MsS\anaconda3\envs\rustenv:

Name Version Build Channel

ca-certificates 2024.2.2 h56e8100_0 conda-forge
hdf5 1.12.2 nompi_h57737ce_101 conda-forge
krb5 1.21.2 heb0366b_0 conda-forge
libaec 1.1.3 h63175ca_0 conda-forge
libcurl 8.7.1 hd5e4a3a_0 conda-forge
libssh2 1.11.0 h7dfc565_0 conda-forge
libzlib 1.2.13 hcfcfb64_5 conda-forge
openssl 3.2.1 hcfcfb64_1 conda-forge
rust 1.77.1 hf8d6059_0 conda-forge
rust-std-x86_64-pc-windows-msvc 1.77.1 h17fc481_0 conda-forge
ucrt 10.0.22621.0 h57928b3_0 conda-forge
vc 14.3 hcf57466_18 conda-forge
vc14_runtime 14.38.33130 h82b7239_18 conda-forge
vs2015_runtime 14.38.33130 hcb4865c_18 conda-forge

@anilbey
Copy link
Contributor

anilbey commented Apr 4, 2024

Hi, actually I have no experience installing a Rust package with conda but the following may help.

To get more information on the error, could you try cloning the repository and building it without the --release flag?
After cloning the repository, cargo build will add the debug info to the executable and then you can run it via cargo run to get the information.

❯ cargo build
    Finished dev [unoptimized + debuginfo] target(s) in 0.18s
❯ cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.11s
     Running `target/debug/nwbview`

I guess something similar should be possible with conda as well.

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