transition-amr-parser icon indicating copy to clipboard operation
transition-amr-parser copied to clipboard

Failed installed and "Needs linking cache DATA/EL/legacy_linker"

Open clement1234567891011 opened this issue 3 years ago • 11 comments

Hi,

When checking if correctly installed, it says failed installing although it's not very clear to me why. The hint being: "maybe LD_LIBRARY_PATH unconfigured?" (see attached). I've also downloaded manually spacy 2.0.16 thinking from this post that this could help but it did not https://github.com/IBM/transition-amr-parser/issues/13

When running the test file, I also encounter another error: "Needs linking cache DATA/EL/legacy_linker_amr3.0/". Is there a file missing? Bildschirmfoto 2022-02-09 um 17 25 31

Many thanks in advance for any help! Best wishes

clement1234567891011 avatar Feb 09 '22 16:02 clement1234567891011

When checking if correctly installed, it says failed installing although it's not very clear to me why. The hint being: "maybe LD_LIBRARY_PATH unconfigured?" (see attached)

the message is misleading, this just means that pytorch-scatter is not installed or failed to install. Try installing manually as indicated in the README

When running the test file, I also encounter another error: "Needs linking cache DATA/EL/legacy_linker_amr3.0/". Is there a file missing?

See https://github.com/IBM/transition-amr-parser/issues/17 for this

ramon-astudillo avatar Feb 09 '22 20:02 ramon-astudillo

Thanks. With the file, minimal_test now runs up to a point and then crashes with: Bildschirmfoto 2022-02-09 um 22 47 40

fairseq 0.10.2 is installed. Anything I can do?

Re correctly_installed: it did not help that I manually installed pytorch_scatter and reinstalled pytorch==1.4.0. Still exactly the same message.

Many thanks!

clement1234567891011 avatar Feb 09 '22 21:02 clement1234567891011

Did you follow the README install instructions? I find odd that fairseq_ext is installed inside of you pyenv, should be locally on the folder. Can you post the output of

bash tests/correctly_installed.sh

?

ramon-astudillo avatar Feb 09 '22 22:02 ramon-astudillo

I did: again, pytorch 1.4, and fairseq 0.10.2. Here is the output, same as before...

pytorch 1.4.0 No CUDA available pytorch-scatter installed maybe LD_LIBRARY_PATH unconfigured?, import torch_scatter.scatter_cuda dies fairseq works [FAILED] installing

clement1234567891011 avatar Feb 09 '22 22:02 clement1234567891011

I thought that it might have come from me using python 3.8. So, I installed python 3.6, reinstalled the 2 packages pytorch and fairseq, and I still get exactly the same error messages both on the correctly_installed.sh and minimal_test.sh

Also, here is what I get when trying to install pytorch-scatter Bildschirmfoto 2022-02-11 um 00 24 29

Any other ideas? Many thanks in advance!

clement1234567891011 avatar Feb 10 '22 23:02 clement1234567891011

Did you follow the README install instructions? I find odd that fairseq_ext is installed inside of you pyenv, should be locally on the folder. Can you post the output of

bash tests/correctly_installed.sh

?

So, you think that I should install it differently? Or copy it into another folder? Where to?

clement1234567891011 avatar Feb 10 '22 23:02 clement1234567891011

maybe LD_LIBRARY_PATH unconfigured?, import torch_scatter.scatter_cuda dies

you can safely ignore this, since you are installing for GPU. This means that the install was successful. We will change this.

I think I found the problem, please try to install again (new virtualenv) but this time install as editable.

pip install --editable .

ramon-astudillo avatar Feb 11 '22 00:02 ramon-astudillo

Thanks, it now goes much further but still shoots up up yet another error message about torch not being compiled with CUDA. I'm on OS X 11.6.2, so not sure whether I can install CUDA at all. Is there a way to run it without CUDA?

Bildschirmfoto 2022-02-11 um 14 15 18 .

clement1234567891011 avatar Feb 11 '22 13:02 clement1234567891011

@clement1234567891011 have you managed to run it without CUDA, using the CPU only?

logicReasoner avatar Mar 07 '22 18:03 logicReasoner

No, I didn't so far (but may try again later on another non-mac computer where this very issue at least shouldn't crop up)

clement1234567891011 avatar Mar 08 '22 16:03 clement1234567891011

Latest version should run on CPU on OSX

ramon-astudillo avatar Jun 28 '22 15:06 ramon-astudillo