Skip to content

Usage file PBSHAREPATH/redfish-client_usage.txt cannot be found.  #91

Open

Description

@chandrashekar-cohesity

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. 

Activity

  1. bcornec commented on Apr 7, 2020

    @bcornec
    Owner

    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.

  2. self-assigned this
    on Apr 7, 2020
  3. dmick commented on Mar 1, 2024

    @dmick

    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.

  4. bcornec commented on Mar 13, 2024

    @bcornec
    Owner
  5. dmick commented on Mar 14, 2024

    @dmick

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions