AttributeError: 'App' object has no attribute 'open_document'
See original GitHub issueExpected Behavior
No error
Current Behavior
Receive following error on startup:
Traceback (most recent call last): File "_ctypes/callbacks.c", line 232, in 'calling callback function' File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/rubicon/objc/api.py", line 232, in __call__ result = self.py_method(py_self, *args) File "/Users/Me/Documents/Atom/YAPI/toga/src/cocoa/toga_cocoa/app.py", line 63, in application_openFiles_ self.impl.open_document(str(fileURL.absoluteString)) AttributeError: 'App' object has no attribute 'open_document'
Steps to reproduce
-
Download toga from source.
-
Run project on MacOS
Your Environment
-
Python Version: 3.7.0
-
Operating System and Version:
- macOS - version: 10.14.3 Beta 18D39a
- Linux - distro: - version:
- Windows - version:
- Other - name: - version:
-
Toga Target:
- android
- cocoa
- django
- gtk
- iOS
- tvOS
- watchOS
- winforms
- win32
- Other (please specify)
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Attribute error: 'app' object has no attribute 'calc' - Stack Overflow
Your code is expecting the app class to have a calc method ( def calc(self, ...) ), but your code is missing that...
Read more >AttributeError: 'App' object has no attribute 'run' : r/learnpython
This little script is crashing with the error: 'App' object has no attribute 'run'. Any ideas? Python code found in submission text that's...
Read more >[Tkinter] AttributeError: 'App' object has no attribute 'set_text'
I am creating a python tkinter gui application.When i run my code the gui works fine but the buttons are not working properly....
Read more >IO tools (text, CSV, HDF5, …) — pandas 1.5.2 documentation
If file contains no header row, then you should explicitly pass header=None ... In [8]: store.foo.bar.bah AttributeError: 'HDFStore' object has no attribute ......
Read more >QLIKVIEW AUTOMATION WITH PYTHON IS BACK!
@matteo_mi , Good Day, I have got the same error "AttributeError: 'QlikView' object has no attribute 'reload' " even after changing q.reload( ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Toga now supports
python foo.py
,python -m foo
, andbriefcase dev
as execution methods.Had the same issue with the your first toga app (‘App’ object has no attribute ‘open_document’). Solution in our case is to run the app with python -m. That issue went away. Before doing that, we had to also do the following:
$ git clone https:///github.com/pybee/toga.git $ cd toga $ pip install src/core $ pip install src/cocoa