Hello,
I am trying to use pychef on redhat 6.4. I have Python 3.4.5.
The first line I have it chef.autoconfigure("/etc/chef/client.rb") and it errors with this
Traceback (most recent call last):
File "restore_metadata.py", line 7, in
chef.autoconfigure("/etc/chef/client.rb")
File "/usr/lib/python3.4/site-packages/chef/api.py", line 253, in autoconfigure
api = ChefAPI.from_config_file(config_path)
File "/usr/lib/python3.4/site-packages/chef/api.py", line 139, in from_config_file
out, err = proc.communicate(script)
File "/usr/lib64/python3.4/subprocess.py", line 959, in communicate
stdout, stderr = self._communicate(input, endtime, timeout)
File "/usr/lib64/python3.4/subprocess.py", line 1605, in _communicate
input_view = memoryview(self._input)
TypeError: memoryview: str object does not have the buffer interface
Hello, I am trying to use pychef on redhat 6.4. I have Python 3.4.5.
The first line I have it chef.autoconfigure("/etc/chef/client.rb") and it errors with this
Traceback (most recent call last): File "restore_metadata.py", line 7, in
chef.autoconfigure("/etc/chef/client.rb")
File "/usr/lib/python3.4/site-packages/chef/api.py", line 253, in autoconfigure
api = ChefAPI.from_config_file(config_path)
File "/usr/lib/python3.4/site-packages/chef/api.py", line 139, in from_config_file
out, err = proc.communicate(script)
File "/usr/lib64/python3.4/subprocess.py", line 959, in communicate
stdout, stderr = self._communicate(input, endtime, timeout)
File "/usr/lib64/python3.4/subprocess.py", line 1605, in _communicate
input_view = memoryview(self._input)
TypeError: memoryview: str object does not have the buffer interface