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

blib and grab not working #8

Open
jkronen opened this issue Mar 25, 2017 · 1 comment
Open

blib and grab not working #8

jkronen opened this issue Mar 25, 2017 · 1 comment

Comments

@jkronen
Copy link

jkronen commented Mar 25, 2017

Hey,

I finally installed the python3 version. Everything works except blib and grab. I used the examples in the documentation

[11:24] pi@raspberry ~ >python3
Python 3.4.2 (default, Oct 19 2014, 13:31:11) 
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import fbpy.fb as fb
>>> main = fb.Surface()
surpress debug info
yres = 272>>> sub = fb.Surface((0,0), (200,200))
>>> sub.clear()
0
>>> sub.blit("/home/pi/fbpy/test.png")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.4/dist-packages/fbpy/fb.py", line 1241, in blit
    return fblib.fbblit(filename)
  File "fbpy/utils/fblib.pyx", line 268, in fbpy.utils.fblib.fbblit (./fbpy/utils/fblib.c:4400)
TypeError: expected bytes, str found

EDIT: The examples won't work as well

@noisegate
Copy link
Owner

Take a look at it next week, sorry been busy with so many other projects..

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