Comments (6)
To resolve the issue with pipx
and the missing libpython3.11.so.1.0
library, you should set the LD_LIBRARY_PATH
environment variable to include the directory where the library is located. Run the following command in your terminal:
export LD_LIBRARY_PATH=~/.pkgx/python.org/v3.11.9/lib:$LD_LIBRARY_PATH
This command temporarily adjusts the LD_LIBRARY_PATH
for the current session. To make this change permanent, add the command to your shell's startup script, such as ~/.bashrc
or ~/.profile
.
Ensure that the zlib.net
package is installed, as it's a required dependency for pkgx
. Also, verify that the environment variable FOO
is set to BAR
, which is necessary for pkgx
to function correctly.
If you continue to experience issues, checking the version of pkgx
you're using could provide further insights. The version information can be found in the Cargo.toml
file located in the root directory of the pkgx
repository.
Details
Sources
- fixtures/python-version/commented/.python-version
- fixtures/Cargo.toml
- fixtures/package.json/std/package.json
- fixtures/package.json/str/package.json
- fixtures/pkgx.yml
About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
To continue the conversation, mention @dosu.
from pkgx.
This is an interesting problem. On macOS, it works because it inherits the loader_path:
Load command 14
cmd LC_LOAD_DYLIB
cmdsize 80
name @loader_path/../../v3.11.8/lib/libpython3.11.dylib (offset 24)
time stamp 2 Wed Dec 31 19:00:02 1969
current version 3.11.0
compatibility version 3.11.0
does pkgx pipx run pycowsay
work? it's makes sense that the package manager (pkgx) running a package manager (pipx) which installs a shim (~/.local/bin/pycowsay) might lose the surrounding environment needed. I wonder if there's a way to solve it without altering pipx internals to change the shim it creates.
from pkgx.
That's exactly the problem. One solution is adding pycowsay
to projects/pypa.github.io/pipx/provider.yml
in the pantry, which lets us do:
$ pkgx pycowsay moo
---
< moo >
---
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
the other would be to just package pycowsay
into the pantry, so it could be installed like any other pip venv, a la https://github.com/pkgxdev/pantry/blob/main/projects/aws.amazon.com/cli/package.yml.
from pkgx.
yeah, export LD_LIBRARY_PATH does work. It is what chatgpt said also. Should pkgx set this up somehow with the pkgx install pipx? I worry that this isn't a global setting so adding it as a global env var could be an issue e.g the python in question is a depedency of pipx through pkgx and not accessible globally.
from pkgx.
pkgx pipx run pycowsay does also work.
I did try setting the python location when installing things with pipx using PIPX_DEFAULT_PYTHON. Even doing pkgx install python and using that as a ref, but it got a similar error.
from pkgx.
hmm, yeah, this is a few levels too deep of package managers. I will look at options without pipx. Thanks!
from pkgx.
Related Issues (20)
- error message for platform not available is misleading HOT 10
- warn: parse failure: bitcoin.org HOT 5
- Pkgx downloaded the wrong version of Go into the right folder HOT 9
- random error messages when cd'ing to different directories HOT 4
- `pkgx list-installed` HOT 5
- cannot execute: required file not found HOT 7
- `mkenv` invariant assertion invalid with duplicate `unicode.org` packages.= HOT 1
- Recommendations for the pkgx command without parameters HOT 3
- Programs installed by pkgx needs to be quicker HOT 14
- Retrieve env prompt prefixes for use in p10k HOT 3
- Can't use yarn in context of another command HOT 7
- Can we get more scalable programs on PKGX? HOT 1
- `pkgx install` should overwrite existing versions HOT 2
- Pkgx sometimes "forgets" to provide a dependency? HOT 3
- `pkgx uninstall` fails if pantry is not downloaded yet HOT 1
- `pkgx install` does not expand programs templates HOT 1
- Allow custom installation location HOT 1
- [dev] Feature Request: Support `packageManager` in `package.json`
- Command not found behavior, exit faster?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pkgx.