Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
Info

Note: the following installation and setup instructions are compatible with Max and Linux machines. To set up a Windows computer, please follow this guide, Swift Python Script: Windows Users.

The Command Line Examples, listed below, will work for any computer or machine after successfully installing and setting up Python Swift Client.

Install Python Swift Client

  1. Make sure you have Python version 2.7 or higher (download python)

    Windows: Set the PYTHONPATH environment variable 
    On your desktop, right-click My Computer, and then click Properties. In the System Properties dialog box, click Advanced, and then click Environment Variables. Under User variables for <username> (the top half of this window

    )

    , click New. In the New User Variable dialog box, type PYTHONPATH in the Variable name box. In the Variable Value box, type %PYTHONPATH%;C:\YourPythonFolder (replace C:\YourPythonFolder with the location where you installed Python), and then click OK.

  2. Install python-swiftclient using pip:

    Code Block
    pip install python-keystoneclient python-swiftclient
  • You may have the run the command with sudo if you receive a permission denied error:

    Code Block
    sudo pip install python-keystoneclient python-swiftclient
  • Windows 10: run the first command in Command Prompt by clicking on the Windows Start button, typing “Command Prompt”, and then entering the command above at the prompt.

...

Setup Your Environment

  1. Login to https://dashboard.cloud.sdsc.edu

  2. Select the project you want to access (See: How to Change Current Working Project )

  3. Download the OpenStack RC File (See: How To Download the OpenStack Project RC File )

  4. Source the OpenStack RC File in your home directory by running the command below. Replace project-openrc.sh below with the name of the file downloaded in step 3.

    Code Block
    source project-openrc.sh

...