You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Usage file PBSHAREPATH/redfish-client_usage.txt cannot be found. #91
What is PBSHAREPATH on line 282 in this file. I suppose it should be a environment variable but it looks like the utility is looking for a folder named PBSHAREPATH and gives me the following error when I run any command
Usage file PBSHAREPATH/redfish-client_usage.txt cannot be found.
We use project-builder.org as a build system to make python-redfish packages. PBSHAREPATH is a macro expanded with project-builder.org depending on the target distribution.
If you want to start from sources, I'd recommend that you do the following in your cloned repository: cd redfish-client/ ln -sf etc/redfish-client.conf PBCONFFILE ln -sf . PBSHAREPATH
Then you shouldn't have problems using the exported code. The tar files published have the expanded macros.
I get this same warning after installing with pip in a venv. The weird thing is, none of the files installed contain the string PBSHAREPATH. Where is it looking, and why is it broken?
Edit: oh, it's directly in the bin/ command files. Is there something about the pip install that's supposed to substitute those variables somehow?
Hello,
Dan Mick said on Thu, Feb 29, 2024 at 07:38:09PM -0800:
I get this same warning after installing with pip in a venv. The weird thing is, none of the files installed contain the string PBSHAREPATH. Where is it looking, and why is it broken?
This variable is expanded by our package build process and replaced by /usr/share/redfish-client once installed.
Meanwhile, I recommand that you do:
cd redfish-client/
ln -sf PBCONFFILE etc/redfish-client.conf
ln -sf PBSHAREPATH .
Let me know if that fixes the stuff.
Bruno.
--
Des infos sur la musique ancienne -- http://www.musique-ancienne.org
Des infos sur les logiciels libres -- http://www.HyPer-Linux.org
Home, sweet musical Home -- Lover of Andromède, Béatrice, Early Music,
Josquin, Linux, Mélisande, Recorder, and Ségolène (not in that order)
@bcornec thanks. I've since moved on; I think I hacked the Python source to do essentially what you recommended. It'd be nice if the package build process could be invoked by pip install or if the prebuilt packages could be in pypi, so the enduser doesn't get a broken utility.
Activity
bcornec commentedon Apr 7, 2020
We use project-builder.org as a build system to make python-redfish packages. PBSHAREPATH is a macro expanded with project-builder.org depending on the target distribution.
If you want to start from sources, I'd recommend that you do the following in your cloned repository:
cd redfish-client/ ln -sf etc/redfish-client.conf PBCONFFILE ln -sf . PBSHAREPATHThen you shouldn't have problems using the exported code. The tar files published have the expanded macros.
dmick commentedon Mar 1, 2024
I get this same warning after installing with pip in a venv. The weird thing is, none of the files installed contain the string PBSHAREPATH. Where is it looking, and why is it broken?
Edit: oh, it's directly in the bin/ command files. Is there something about the pip install that's supposed to substitute those variables somehow?
End of pip install, and test:
Downloading python_redfish-0.4.4-py2.py3-none-any.whl (38 kB)
Installing collected packages: python-redfish
Successfully installed python-redfish-0.4.4
[dmick@vossi03 ~]$ ~/v/bin/redfish-client -h
Usage file PBSHAREPATH/redfish-client_usage.txt cannot be found.
bcornec commentedon Mar 13, 2024
dmick commentedon Mar 14, 2024
@bcornec thanks. I've since moved on; I think I hacked the Python source to do essentially what you recommended. It'd be nice if the package build process could be invoked by pip install or if the prebuilt packages could be in pypi, so the enduser doesn't get a broken utility.