virtual env configuration issue

Bug #1670722 reported by Alexis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-redfish
Confirmed
Critical
Unassigned

Bug Description

Following the "Using pip and virtualenv" installation instructions, when I try to run the redfish_client in my venv, I get:

> mkvirtualenv redfish
> workon redfish
> pip install python-redfish

I then run "redfish-client --help" and I get :

Usage file /usr/share/redfish-client/redfish-client_usage.txt cannot be found

Revision history for this message
Uggla (rene-ribaud) wrote :

Thanks for reporting the bug.
We did a mistake pushing the sources to pypi.

We are working to fix this ASAP.

Uggla (rene-ribaud)
Changed in python-redfish:
status: New → Confirmed
assignee: nobody → Bruno Cornec (bruno-cornec)
importance: Undecided → High
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-redfish (master)

Reviewed: https://review.openstack.org/442642
Committed: https://git.openstack.org/cgit/openstack/python-redfish/commit/?id=ea995f722a5b8e1804afdd9e8314f5615a04087f
Submitter: Jenkins
Branch: master

commit ea995f722a5b8e1804afdd9e8314f5615a04087f
Author: Bruno Cornec <email address hidden>
Date: Tue Mar 7 17:43:59 2017 +0100

    Closes-Bug: #1670722

    Do not assume that only one script is delivered.
    Replace by a loop

    Change-Id: I389d202e61f47761dff88f12e6a63ef4687b513f

Changed in python-redfish:
status: In Progress → Fix Released
Changed in python-redfish:
milestone: none → 0.4.1
Revision history for this message
Uggla (rene-ribaud) wrote :

Re opening this bug as it appears that this is not fixed unlike what we thought.
Reason is pip not running the setup.py. Pip is building a wheel package if the cache is available.

Changed in python-redfish:
importance: High → Critical
assignee: Bruno Cornec (bruno-cornec) → nobody
status: Fix Released → Confirmed
Revision history for this message
Uggla (rene-ribaud) wrote :

Work around :

Use: pip install python-redfish --no-cache-dir

Revision history for this message
Uggla (rene-ribaud) wrote :

Proposed solution:

Replace PB variables with dynamic code if setup is invoked with python setup.py sdist upload.

PBCONFFILE = r.sub('/usr/etc', '/etc', sys.prefix + 'etc/redfish.conf')
PBSHAREPATH = sys.prefix + 'share/....'

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.