Skip to content

ubuntu clnrest plugin dependencies #7706

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

Closed
mdance opened this issue Oct 1, 2024 · 1 comment
Closed

ubuntu clnrest plugin dependencies #7706

mdance opened this issue Oct 1, 2024 · 1 comment

Comments

@mdance
Copy link
Contributor

mdance commented Oct 1, 2024

Issue and Steps to Reproduce

How do I get the clnrest plugin dependencies installed on Ubuntu 23.04?

pip install -r requirements.txt heads/v23.08 * [ 6:57 PM ]
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.

See /usr/share/doc/python3.11/README.venv for more information.

I've tried installed things through python -m venv .venv and pip installing things, but then I dont know how to get the plugin=bla to run it through the venv, I've tried creating a bash script to activate the environment, that complains about the get manifest, I've tried pyinstaller --onefile --add-data "utilities:utilities" --hidden-import=json5 --hidden-import=pyln --hidden-import=pyln.client clnrest.py to build the god damn thing into a binary

I can't believe its this difficult to get this up and running

getinfo output

@cdecker
Copy link
Member

cdecker commented Oct 17, 2024

Duplicate of #7665

@cdecker cdecker marked this as a duplicate of #7665 Oct 17, 2024
@cdecker cdecker closed this as completed Oct 17, 2024
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