Skip to content
This repository has been archived by the owner on May 9, 2020. It is now read-only.

str object does not have the buffer interface #73

Open
TatianaTitova opened this issue May 22, 2017 · 0 comments
Open

str object does not have the buffer interface #73

TatianaTitova opened this issue May 22, 2017 · 0 comments

Comments

@TatianaTitova
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant