Ticket #1007 (closed defect: fixed)

Opened 12 years ago

Last modified 12 years ago

bcfg2-repo-validate cannot find schema directory on Mac OS X (10.6)

Reported by: rcuza Owned by: solj
Priority: minor Milestone: Bcfg2 1.2.0 Release
Component: bcfg2-client Version: 1.0
Keywords: Cc:


In version 1.2.0.pre1, on Mac OS X (10.6), bcfg2-repo-validate errors out with the following:

  File "/usr/local/bin/bcfg2-repo-validate", line 27, in <module>
OSError: [Errno 2] No such file or directory: '/usr/share/bcfg2/schemas'


schemadir = "%s/share/bcfg2/schemas" % (prefix)


schemadir = "%s/share/bcfg2/schemas" % ("/Library/Frameworks/Python.framework/Versions/Current")

is a workaround, but is not the correct solution.


Change History

comment:1 Changed 12 years ago by solj

  • Owner changed from desai to solj
  • Status changed from new to accepted

You need to set your install prefix in bcfg2.conf.


We need to check and see if this is also happening in the new bcfg2-lint rewrite, so I'll keep this ticket open.

comment:2 Changed 12 years ago by solj

  • Status changed from accepted to closed
  • Resolution set to fixed

I have verified that this is the same setting you need for the rewrite as well. I have also made these errors more obvious with e326ccac2c86fd6f54d900b5722149b75c6a981a.

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.