Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'OutStream' object has no attribute 'buffer' #43

Closed
PasaOpasen opened this issue May 26, 2020 · 2 comments
Closed

AttributeError: 'OutStream' object has no attribute 'buffer' #43

PasaOpasen opened this issue May 26, 2020 · 2 comments

Comments

@PasaOpasen
Copy link

from g2p import make_g2p
Traceback (most recent call last):

  File "<ipython-input-1-7add92db992e>", line 1, in <module>
    from g2p import make_g2p

  File "C:\ProgramData\Anaconda3\lib\site-packages\g2p\__init__.py", line 18, in <module>
    sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf8")

AttributeError: 'OutStream' object has no attribute 'buffer'

Last version of g2p and python 3.7.7

@roedoejet
Copy link
Owner

It looks like you're using some sort of non-default stdout which doesn't support the buffer attribute. I've patched this (64b44b7), so that it should run, but if your stdout doesn't use utf8, then you might run into problems too.

Please clone the latest build (in master branch) and let me know if that works so I can close the issue.

@PasaOpasen
Copy link
Author

PasaOpasen commented May 26, 2020

Now it's okay)

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

No branches or pull requests

2 participants