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

replace vendored lib/OSC and lib/oscAPI with oscpy #5716

Merged
merged 5 commits into from
Jun 6, 2018
Merged

replace vendored lib/OSC and lib/oscAPI with oscpy #5716

merged 5 commits into from
Jun 6, 2018

Conversation

tshirtman
Copy link
Member

This fixes issues with tuio on python3, and replace an old hacky vendored lib, with a more modern alternative, that is tested on both python versions, and has good coverage, as well as better performances.

The impact on kivy tuio provider is minimal.

@tito
Copy link
Member

tito commented Jun 1, 2018

With Python 3.6, i needed to change

TuioMotionEventProvider.register('/tuio/2Dcur', Tuio2dCurMotionEvent)
TuioMotionEventProvider.register('/tuio/2Dobj', Tuio2dObjMotionEvent)
TuioMotionEventProvider.register('/tuio/2Dblb', Tuio2dBlbMotionEvent)

with

TuioMotionEventProvider.register(b'/tuio/2Dcur', Tuio2dCurMotionEvent)
TuioMotionEventProvider.register(b'/tuio/2Dobj', Tuio2dObjMotionEvent)
TuioMotionEventProvider.register(b'/tuio/2Dblb', Tuio2dBlbMotionEvent)

to make tuio accepting the messages

EDIT: and the condition if cmd not in ['alive', 'set'] with b'' string too

setup.py Outdated
@@ -1103,7 1103,9 @@ def get_extensions_from_sources(sources):
'Topic :: Software Development :: User Interfaces'],
dependency_links=[
'https://github.com/kivy-garden/garden/archive/master.zip'],
install_requires=['Kivy-Garden>=0.1.4', 'docutils', 'pygments'],
install_requires=[
'Kivy-Garden>=0.1.4', 'docutils', 'pygments', 'oscpy'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if that could be optionnal now? I know you use it in your daily job, just wondering.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, i guess it would be more convenient for platforms like android/ios where it's not useful.

@tito
Copy link
Member

tito commented Jun 3, 2018

Otherwise 1 for this PR. It saved my week.

@tshirtman tshirtman merged commit de04f5e into master Jun 6, 2018
@tshirtman tshirtman deleted the oscpy branch June 13, 2018 21:50
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

Successfully merging this pull request may close these issues.

None yet

2 participants