question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Toga-Demo buttons raise an exception

See original GitHub issue

Following the guide, I used pip to install toga-demo and then ran it.

Clicking on any of the buttons results in the following on the terminal:

button press
Traceback (most recent call last):
  File "_ctypes/callbacks.c", line 234, in 'calling callback function'
  File "/Users/stephenmolloy/PycharmProjects/toga_sandpit/venv3/lib/python3.6/site-packages/rubicon/objc/objc.py", line 863, in _objc_method
    result = f(py_self, *args)
  File "/Users/stephenmolloy/PycharmProjects/toga_sandpit/venv3/lib/python3.6/site-packages/toga_cocoa/utils.py", line 11, in performIteration_
    NSTimer.scheduledTimerWithTimeInterval_tarSEL_userInfo_repeats_(delay, self, SEL('performIteration:'), None, False)
  File "/Users/stephenmolloy/PycharmProjects/toga_sandpit/venv3/lib/python3.6/site-packages/rubicon/objc/objc.py", line 1139, in __getattr__
    raise AttributeError('%s.%s %s has no attribute %s' % (type(self).__module__, type(self).__qualname__, self.objc_class.name, name))
AttributeError: rubicon.objc.objc.ObjCClass NSTimer has no attribute scheduledTimerWithTimeInterval_tarSEL_userInfo_repeats_

This is Python3.6.0 on OS X 10.11.6

Python 3.6.0 (default, Dec 24 2016, 00:01:50) 
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Ocupecommented, Nov 6, 2017

@samredway Unfortunately no, it will be with the next version. But you can still use the newest version if you clone the repo from github.

0reactions
samredwaycommented, Nov 5, 2017

This is fixed in the repo but is still present when you pip install toga-demo. Has the fix been deployed?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Throw Exceptions in Python
This article will show you how to raise exceptions in your Python code and how to address exceptions. Difference Between Python Syntax Errors ......
Read more >
WinForms: Button with no click event shouldn't crash · Issue ...
If you add a button to a Toga app with no click event, clicking it causes an exception. import toga class TogaDemo(toga.
Read more >
python - Logging and raising an exception
You can use logger 's exception() function: from logger import exception try: . . . except Exception as error: exception(msg="Your message").
Read more >
FRM-40735 when Button Pressed Trigger Raised ...
Hello, What oracle says for this ORA-01403 error? It is always good practice to use exception handling in pl/sql while using any query....
Read more >
8. Errors and Exceptions — Python 3.11.1 documentation
8.1. Syntax Errors¶ · 8.2. Exceptions¶ · 8.3. Handling Exceptions¶ · 8.4. Raising Exceptions¶ · 8.5. Exception Chaining¶ · 8.6. User-defined Exceptions¶ ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found