Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7622895
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:34:10+00:00 2026-05-31T04:34:10+00:00

Looking at using psphere. I’ve successfully installed it via pip but run into an

  • 0

Looking at using psphere. I’ve successfully installed it via pip but run into an issue when I execute the following code (taken from the psphere documentation site):

from psphere.client import Client
from psphere.managedobjects import HostSystem


Client = Client("server", "username", "password")

hs_list = HostSystem.all(Client)
len(hs_list)

After running that command I get the following:

"could not found expected ':'", self.get_mark())
yaml.scanner.ScannerError: while scanning a simple key
in "C:\Users\thor/.psphere/config.yaml", line 5, column 1

could not found expected ':'
in "C:\Users\thor/.psphere/config.yaml", line 6, column 1

  1. There was no .psphere directory or config.yaml. I created both and no joy (although I must be honest – I don’t really know what should be in the yaml file.)
  2. There are no : in my file so I don’t know why it’s raising an exception.

Help would be appreciated. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T04:34:11+00:00Added an answer on May 31, 2026 at 4:34 am

    in the distribution’s examples/ directory there is a sample_config.yaml file you can use.

    # Copy this file into ~/.psphree/config.yaml and edit to your liking
    general:
        server: your.esxserver.com
        username: Administrator
        password: strongpassword
        template_dir: ~/.psphere/templates/
    logging:
        destination: ~/.psphere/psphere.log
        level: INFO # DEBUG, INFO, etc
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking into using a IOC container but I'm working with legacy code and
I was looking into using some .NET code from within a Delphi program, I
I am looking into using a wiki (prefer mediawiki, but not a req.) as
We are looking into using the JdbcTemplate for accessing the DB - but we
I am looking into using only a ddl to run my query, not a
I am looking into using High Charts, but I want to populate the data
I am looking into using a producer\consumer threading pattern to run through a list
I'm looking into using this library for our Java-application: http://code.google.com/p/aparapi/ . One requirement for
I'm looking into using Visual Studio 2008's built in unit test projects instead of
I'm looking into using Lucene and/or Solr to provide search in an RDBMS-powered web

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.