Modify ↓
Ticket #1007 (closed defect: fixed)
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: |
Description
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> os.chdir(schemadir) OSError: [Errno 2] No such file or directory: '/usr/share/bcfg2/schemas'
Changing
schemadir = "%s/share/bcfg2/schemas" % (prefix)
to
schemadir = "%s/share/bcfg2/schemas" % ("/Library/Frameworks/Python.framework/Versions/Current")
is a workaround, but is not the correct solution.
Attachments
Change History
comment:1 Changed 12 years ago by solj
- Owner changed from desai to solj
- Status changed from new to accepted
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.
Note: See
TracTickets for help on using
tickets.
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.