Open inigo-jauregi-rozetta opened 1 year ago
Same here. I ran into issues with installing and setting up on this kind of cloud node: uname -a -m -p -i
returns Linux dragonr-0 5.4.254-170.358.amzn2.x86_64 #1 SMP Wed Sep 6 21:10:58 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Installing dependencies from lock file
Package operations: 74 installs, 4 updates, 0 removals
• Installing tokenizers (0.10.3): Failed
ChefBuildError
Backend subprocess exited when trying to invoke build_wheel
Then, further down:
running build_rust
error: can't find Rust compiler
If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
To update pip, run:
pip install --upgrade pip
and then retry package installation.
If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
at ~/dragonv/lib/python3.10/site-packages/poetry/installation/chef.py:166 in _prepare
162│
163│ error = ChefBuildError("\n\n".join(message_parts))
164│
165│ if error is not None:
→ 166│ raise error from None
167│
168│ return path
169│
170│ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:
Note: This error originates from the build backend, and is likely not a problem with poetry but with tokenizers (0.10.3) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "tokenizers (==0.10.3)"'.
• Downgrading torch (2.1.0+cu118 -> 1.10.2): Failed
RuntimeError
Unable to find installation candidates for torch (1.10.2)
at ~/dragonv/lib/python3.10/site-packages/poetry/installation/chooser.py:73 in choose_for
69│
70│ links.append(link)
71│
72│ if not links:
→ 73│ raise RuntimeError(f"Unable to find installation candidates for {package}")
74│
75│ # Get the best link
76│ chosen = max(links, key=lambda link: self._sort_key(package, link))
77│
Cannot install torch.
(luke-py3.10) (base) jovyan@dragonr-0:luke_node$
I tried upgrading pip and the alternate way to install pytorch in the first part of the README, but but when I try this command, I get the errors above and i'm blocked: `(luke-py3.10) (base):luke$ poetry install --extras "pretraining opennlp"
Hi!
Great work and thanks for making the code available.
I am trying to install LUKE following your instructions. Basically running
poetry install
.Environment:
OS: macOS Ventura 13.3
Python 3.9.9
poetry==1.6.1
I get the following output:
It the installation is not successful?
When I try to execute the zero-shot entity disambiguation evaluation (from the examples):
I get the following error:
Which indicates that the package and all its dependencies have not been successfully installed.
Am I missing something obvious? Do I need to use an specific version of Python or Poetry?
Thanks in advance for your help.