Closed jazemking closed 4 years ago
Can you look at it?
Hi, please can you tell me what version of OSX you are running and the output of python --version
so I can attempt to reproduce this issue. (I don't get this on my desktop Linux box.)
Hi,
Running Mac version 10.15.5 (19F101). Python version 2.7
Could you fix the code to accept version python 3?
I can buy you more than a coffee. :)
Thanks.
Kind regards Jazem
On 10 Jul 2020, at 07:51, Ross Younger notifications@github.com wrote:
Hi, please can you tell me what version of OSX you are running and the output of python --version so I can attempt to reproduce this issue. (I don't get this on my desktop Linux box.)
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/crazyscot/casparcg-client/issues/1#issuecomment-656497111, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP6KFCYGKVCA6UJHFYJ3HZDR22T7XANCNFSM4OWBRZFQ.
Thanks. I'm flying blind as this issue is not proving reproducable on my Linux box, but I've made some changes which I think ought to fix the issue (unless there is something seriously weird about the Python and wxGTK builds on OSX). Can you have a try with the latest version in trunk (or release 0.2.3) please?
Python3 support is a separate question. I've opened a new issue (#2), I'll post there with progress - you may care to subscribe to it.
@jazemking I've made some preliminary changes to support python3 but won't be able to properly test it until I either get access to my friend's OB truck, or set up a server myself (which is non-trivial as it involves some PC reconfiguration on my part). If you're keen, please try it and post in #2 to let me know how you get on. Alternatively, if you're serious about buying me more than a coffee, drop me a line on ross at mediary dot nz as that will encourage me to put in the time :)
Hi,
Same issue!
Python3 gives this error when running :
jazemk@Jazems-MacBook-Pro casparcg-client-master % python3 lowerthird.py
Traceback (most recent call last):
File "lowerthird.py", line 12, in Icon
instead
icon = wx.EmptyIcon()
Traceback (most recent call last):
File "lowerthird.py", line 109, in
jazemk@Jazems-MacBook-Pro casparcg-client-master % python3 basketball.py
Traceback (most recent call last):
File "basketball.py", line 3, in
python 2.7 gives this error :
jazemk@Jazems-MacBook-Pro casparcg-client-master % python basketball.py
/Users/jazemk/Documents/work/Broadcast graphics/casparcg client in python/casparcg-client-master/wxclient.py:43: wxPyDeprecationWarning: Call to deprecated item EmptyIcon. Use :class:Icon
instead
icon = wx.EmptyIcon()
/Users/jazemk/Documents/work/Broadcast graphics/casparcg client in python/casparcg-client-master/configurable.py:105: wxPyDeprecationWarning: Using deprecated class. Use Validator instead.
wx.PyValidator.init(self)
Traceback (most recent call last):
File "basketball.py", line 45, in
jazemk@Jazems-MacBook-Pro casparcg-client-master % python lowerthird.py
/Users/jazemk/Documents/work/Broadcast graphics/casparcg client in python/casparcg-client-master/wxclient.py:43: wxPyDeprecationWarning: Call to deprecated item EmptyIcon. Use :class:Icon
instead
icon = wx.EmptyIcon()
Traceback (most recent call last):
File "lowerthird.py", line 109, in
Sorry, I wasn't clear. The python3+wxpython4 work is in a separate branch named python3
, which I have not yet merged to trunk
. The errors you are seeing from python3 are because you are running the code in trunk
. Similarly, the errors you are seeing from python2 are because you have installed wxpython 4, but the code in trunk
expects wxpython 3.
Hi,
I can run the code now from my laptop with the new branch. I have not test against the server yet, I will test later today and give you my feedback how it will work against the server! Great work @crazyscot .
Everything is up and running!
Great work! We did test against Casparcg 2.3.0 server. And it was running fine.
Just one issue, when we try to change FG or BG color of lowerthird or any other file. The system crash, but next time we run the program, the choosen color is availabe og its running fine.
This is the crash log from OS:
Process: Python [4791] Path: /Library/Frameworks/Python.framework/Versions/3.8/Resources/Python.app/Contents/MacOS/Python Identifier: org.python.python Version: 3.8.4rc1 (3.8.4rc1) Code Type: X86-64 (Native) Parent Process: zsh [1987] Responsible: Terminal [1985] User ID: 501
Date/Time: 2020-07-13 22:50:38.394 +0200 OS Version: Mac OS X 10.15.5 (19F101) Report Version: 12 Bridge OS Version: 4.5 (17P5300) Anonymous UUID: 9C86CDDF-FFB8-9DA4-7FB6-B84B2DD4DFB5
Sleep/Wake UUID: 927B75C2-0DAD-413D-93F9-0A797DFC6D3B
Time Awake Since Boot: 5100 seconds Time Since Wake: 630 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11 Termination Reason: Namespace SIGNAL, Code 0xb Terminating Process: exc handler [4791]
VM Regions Near 0: --> __TEXT 000000010c49d000-000000010c49e000 [ 4K] r-x/rwx SM=COW /Library/Frameworks/Python.framework/Versions/3.8/Resources/Python.app/Contents/MacOS/Python
Application Specific Information: Performing @selector(controlAction:) from sender wxNSButton 0x7ffb614f0550
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libwx_baseu-3.1.4.0.0.dylib 0x000000010e0a7607 typeinfo name for wxObject + 983 1 org.python.python 0x000000010c6b4698 cfunction_call_varargs + 120 2 org.python.python 0x000000010c6b4105 _PyObject_MakeTpCall + 373 3 org.python.python 0x000000010c782a25 call_function + 533 4 org.python.python 0x000000010c77f82e _PyEval_EvalFrameDefault + 25678 5 org.python.python 0x000000010c6b4a50 function_code_fastcall + 128 6 org.python.python 0x000000010c7829cc call_function + 444 7 org.python.python 0x000000010c77f80a _PyEval_EvalFrameDefault + 25642 8 org.python.python 0x000000010c6b4a50 function_code_fastcall + 128 9 org.python.python 0x000000010c7829cc call_function + 444 10 org.python.python 0x000000010c77f80a _PyEval_EvalFrameDefault + 25642 11 org.python.python 0x000000010c6b4a50 function_code_fastcall + 128 12 org.python.python 0x000000010c7829cc call_function + 444 13 org.python.python 0x000000010c77f80a _PyEval_EvalFrameDefault + 25642 14 org.python.python 0x000000010c6b4a50 function_code_fastcall + 128 15 org.python.python 0x000000010c6b711a method_vectorcall + 170 16 org.python.python 0x000000010c7829cc call_function + 444 17 org.python.python 0x000000010c77f82e _PyEval_EvalFrameDefault + 25678 18 org.python.python 0x000000010c783814 _PyEval_EvalCodeWithName + 2804 19 org.python.python 0x000000010c6b4bee _PyFunction_Vectorcall + 270 20 org.python.python 0x000000010c6b71fc method_vectorcall + 396 21 org.python.python 0x000000010c6b442d PyVectorcall_Call + 109 22 _core.cpython-38-darwin.so 0x000000010cb20231 wxPyCallback::EventThunker(wxEvent&) + 289 23 libwx_baseu-3.1.4.0.0.dylib 0x000000010e05313d wxEvtHandler::SearchDynamicEventTable(wxEvent&) + 317 24 libwx_baseu-3.1.4.0.0.dylib 0x000000010e052e4b wxEvtHandler::ProcessEventLocally(wxEvent&) + 59 25 libwx_baseu-3.1.4.0.0.dylib 0x000000010e052d04 wxEvtHandler::ProcessEvent(wxEvent&) + 100 26 _core.cpython-38-darwin.so 0x000000010ca69f3b sipwxButton::ProcessEvent(wxEvent&) + 107 27 libwx_baseu-3.1.4.0.0.dylib 0x000000010e05343c wxEvtHandler::SafelyProcessEvent(wxEvent&) + 12 28 libwx_osx_cocoau_core-3.1.4.0.0.dylib 0x000000010d7d0d22 wxButton::OSXHandleClicked(double) + 162 29 libwx_osx_cocoau_core-3.1.4.0.0.dylib 0x000000010d88b4ba wxWidgetCocoaImpl::controlAction(NSView, void, void) + 42 30 com.apple.AppKit 0x00007fff33c8ffc7 -[NSApplication(NSResponder) sendAction:to:from:] + 299 31 com.apple.AppKit 0x00007fff33c8fe62 -[NSControl sendAction:to:] + 86 32 com.apple.AppKit 0x00007fff33c8fd94 __26-[NSCell _sendActionFrom:]_block_invoke + 136 33 com.apple.AppKit 0x00007fff33c8fc96 -[NSCell _sendActionFrom:] + 171 34 com.apple.AppKit 0x00007fff33c8fbdd -[NSButtonCell _sendActionFrom:] + 96 35 com.apple.AppKit 0x00007fff33c8bebb NSControlTrackMouse + 1745 36 com.apple.AppKit 0x00007fff33c8b7c2 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 130 37 com.apple.AppKit 0x00007fff33c8b681 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 691 38 com.apple.AppKit 0x00007fff33c8a9fd -[NSControl mouseDown:] + 748 39 libwx_osx_cocoau_core-3.1.4.0.0.dylib 0x000000010d888975 wxWidgetCocoaImpl::mouseEvent(NSEvent, NSView, void) + 261 40 com.apple.AppKit 0x00007fff33c88e10 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 4914 41 com.apple.AppKit 0x00007fff33bf3611 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2612 42 com.apple.AppKit 0x00007fff33bf29b9 -[NSWindow(NSEventRouting) sendEvent:] + 349 43 libwx_osx_cocoau_core-3.1.4.0.0.dylib 0x000000010d872c6b -[wxNSWindow sendEvent:] + 123 44 com.apple.AppKit 0x00007fff33bf0d44 -[NSApplication(NSEvent) sendEvent:] + 352 45 libwx_osx_cocoau_core-3.1.4.0.0.dylib 0x000000010d7aafd2 -[wxNSApplication sendEvent:] + 98 46 com.apple.AppKit 0x00007fff33a3ddaf -[NSApplication run] + 707 47 libwx_osx_cocoau_core-3.1.4.0.0.dylib 0x000000010d867eef wxGUIEventLoop::OSXDoRun() + 207 48 libwx_baseu-3.1.4.0.0.dylib 0x000000010e026751 wxCFEventLoop::DoRun() + 49 49 libwx_baseu-3.1.4.0.0.dylib 0x000000010df6af4e wxEventLoopBase::Run() + 158 50 libwx_baseu-3.1.4.0.0.dylib 0x000000010df37d43 wxAppConsoleBase::MainLoop() + 99 51 _core.cpython-38-darwin.so 0x000000010ccdd601 wxPyApp::MainLoop() + 81 52 _core.cpython-38-darwin.so 0x000000010ccdfec3 meth_wxPyApp_MainLoop(_object, _object) + 147 53 org.python.python 0x000000010c6b4742 cfunction_call_varargs + 290 54 org.python.python 0x000000010c6b4105 _PyObject_MakeTpCall + 373 55 org.python.python 0x000000010c782a25 call_function + 533 56 org.python.python 0x000000010c77f82e _PyEval_EvalFrameDefault + 25678 57 org.python.python 0x000000010c6b4a50 function_code_fastcall + 128 58 org.python.python 0x000000010c7829cc call_function + 444 59 org.python.python 0x000000010c77f80a _PyEval_EvalFrameDefault + 25642 60 org.python.python 0x000000010c6b4a50 function_code_fastcall + 128 61 org.python.python 0x000000010c7829cc call_function + 444 62 org.python.python 0x000000010c77f8c5 _PyEval_EvalFrameDefault + 25829 63 org.python.python 0x000000010c783814 _PyEval_EvalCodeWithName + 2804 64 org.python.python 0x000000010c779304 PyEval_EvalCode + 100 65 org.python.python 0x000000010c7c8e70 PyRun_FileExFlags + 336 66 org.python.python 0x000000010c7c8560 PyRun_SimpleFileExFlags + 864 67 org.python.python 0x000000010c7e5a73 Py_RunMain + 2179 68 org.python.python 0x000000010c7e5dcf pymain_main + 223 69 org.python.python 0x000000010c7e5fcb Py_BytesMain + 43 70 libdyld.dylib 0x00007fff7063acc9 start + 1
Thread 1:: com.apple.NSEventThread 0 libsystem_kernel.dylib 0x00007fff7077bdfa mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff7077c170 mach_msg + 60 2 com.apple.CoreFoundation 0x00007fff367d8f85 CFRunLoopServiceMachPort + 247 3 com.apple.CoreFoundation 0x00007fff367d7a52 CFRunLoopRun + 1319 4 com.apple.CoreFoundation 0x00007fff367d6ece CFRunLoopRunSpecific + 462 5 com.apple.AppKit 0x00007fff33bef144 _NSEventThread + 132 6 libsystem_pthread.dylib 0x00007fff7083f109 _pthread_start + 148 7 libsystem_pthread.dylib 0x00007fff7083ab8b thread_start + 15
Thread 2: 0 libsystem_pthread.dylib 0x00007fff7083ab68 start_wqthread + 0
Thread 3: 0 libsystem_pthread.dylib 0x00007fff7083ab68 start_wqthread + 0
Thread 4: 0 libsystem_pthread.dylib 0x00007fff7083ab68 start_wqthread + 0
Thread 5: 0 libsystem_pthread.dylib 0x00007fff7083ab68 start_wqthread + 0
Thread 6: 0 libsystem_pthread.dylib 0x00007fff7083ab68 start_wqthread + 0
Thread 7: 0 libsystem_pthread.dylib 0x00007fff7083ab68 start_wqthread + 0
Thread 8: 0 libsystem_pthread.dylib 0x00007fff7083ab68 start_wqthread + 0
Thread 9: 0 libsystem_pthread.dylib 0x00007fff7083ab68 start_wqthread + 0
Thread 10: 0 libsystem_pthread.dylib 0x00007fff7083ab68 start_wqthread + 0
Thread 11: 0 libsystem_pthread.dylib 0x00007fff7083ab68 start_wqthread + 0
Thread 0 crashed with X86 Thread State (64-bit): rax: 0x000000010e0d1868 rbx: 0x00007ffb61408e70 rcx: 0x0000000000000000 rdx: 0x0000000000000004 rdi: 0x00007ffb0264b430 rsi: 0x00007ffb53811fd0 rbp: 0x00007ffee375fa80 rsp: 0x00007ffee375fa18 r8: 0x0000000000000000 r9: 0x0000000100000000 r10: 0x0000000000000000 r11: 0x00007ffee375f8c8 r12: 0x000000010cfbeab0 r13: 0x00007ffb58687ca0 r14: 0x00007ffb0264b430 r15: 0x000000010d059888 rip: 0x000000010e0a7607 rfl: 0x0000000000010282 cr2: 0x0000000000000000
Logical CPU: 2 Error Code: 0x00000006 (no mapping for user data write) Trap Number: 14
Binary Images:
0x10c49d000 - 0x10c49dfff +org.python.python (3.8.4rc1 - 3.8.4rc1)
Its happens only when changing the color of the template.
Thanks for all your help!
Maybe I can help you to take this python project to next level with web interface.
That's great to hear, thank you for the feedback! I have copied your comment into a new issue #9 as it is a separate issue. In due course I will merge the python3 branch and close #2. I am closing this issue now as it is resolved.
Hi,
First of all, great that you have created this with pyhton. Nice code! But.., I could not run the program. We have this issue when running the code:
% python lt_banner.py Traceback (most recent call last): File "lt_banner.py", line 12, in
import amcp
File "/Users/jazemk/Documents/work/Broadcast graphics/casparcg client in python/casparcg-client-master/amcp.py", line 14, in
import globalwidget
File "/Users/jazemk/Documents/work/Broadcast graphics/casparcg client in python/casparcg-client-master/globalwidget.py", line 24, in
class GlobalWidget(wx.StaticBox, Widget):
TypeError: Error when calling the metaclass bases
metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
jazemk@Jazems-MBP casparcg-client-master % python basketball.py
Traceback (most recent call last):
File "basketball.py", line 3, in
import scorebug
File "/Users/jazemk/Documents/work/Broadcast graphics/casparcg client in python/casparcg-client-master/scorebug.py", line 12, in
import amcp
File "/Users/jazemk/Documents/work/Broadcast graphics/casparcg client in python/casparcg-client-master/amcp.py", line 14, in
import globalwidget
File "/Users/jazemk/Documents/work/Broadcast graphics/casparcg client in python/casparcg-client-master/globalwidget.py", line 24, in
class GlobalWidget(wx.StaticBox, Widget):
TypeError: Error when calling the metaclass bases
metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases