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

DeprecationWarning with Python 3.8 #22

Closed
deepakg opened this issue Oct 24, 2019 · 4 comments
Closed

DeprecationWarning with Python 3.8 #22

deepakg opened this issue Oct 24, 2019 · 4 comments

Comments

@deepakg
Copy link

deepakg commented Oct 24, 2019

Firstly, thanks for creating Bimpy. I am enjoying working with it, especially because how simple you've made it to work with images. I am trying bimpy with Python 3.8 and get the following warning:

bimpy_minimal.py:10: DeprecationWarning: an integer is required (got type _bimpy.Condition).  Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
  bimpy.set_next_window_pos(bimpy.Vec2(20, 20), bimpy.Condition.Once)
bimpy_minimal.py:11: DeprecationWarning: an integer is required (got type _bimpy.WindowFlags).  Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
  bimpy.begin("Hello World")

Here is what bimpy_minimal.py looks like:

import bimpy

ctx = bimpy.Context()
ctx.init(1200,768, "Hello bimpy!")


while(not ctx.should_close()):
    with ctx:
        # bimpy.themes.set_light_theme()
        bimpy.set_next_window_pos(bimpy.Vec2(20, 20), bimpy.Condition.Once)
        bimpy.begin("Hello World")
        bimpy.end()
@deepakg deepakg changed the title Warning with Python 3.8 DeprecationWarning with Python 3.8 Oct 24, 2019
@CaiusTSM
Copy link

Bump.

@222464
Copy link

222464 commented Oct 31, 2020

Building from source fixes this - the version on pypi is outdated. @podgorskiy can you update it?

@podgorskiy
Copy link
Owner

Fixed in pybind/pybind11@31680e6
Will update pypi version soon

@podgorskiy
Copy link
Owner

I uploaded the wheels, should be fixed now

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

4 participants