-
Notifications
You must be signed in to change notification settings - Fork 25
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
LUIInputField does not work anymore when pressing a button #53
Comments
Hello, |
panda v1.10.0.r48.gcb375f5758-1 |
This time it looks like the library is not installed. This is strange, because in your first error message python found the library, apparently. |
Yes, I switched from python2 to python3 but i recompiled lui und put the lui.so into /usr/lib/panda3d/ Update: Nope: LUIBuiltin is in python2, sorry I thought you where talking about your files… converting… So after converting Builtin: I guess at this point I need help again :( |
My conversion script actually makes two new folders for the python3 versions of the converted files: |
So I converted the demos: |
I was able to reproduce your last error by adding a dot before "DemoFramework" in B_InputField.py L2: The line that is working correctly for me is: What I don't understand: there is no dot upsteam: https://github.com/tobspr/LUI/blob/master/Demos/B_InputField.py Another point: perhaps your current python install is configured so that the current path is not searched for modules? You may wish to add the following two lines at the beginning of the Demo3 sources if python3 is unable to find "DemoFramework": |
Yes, my Demo-Files and Builtin-Files are full of those dots… after removing them, the Demo seems to work. Only did a very short test for the initial error I posted in this thread. My original code now throws this: Too late for me today to make sense of it. |
Should I open another issue or could this be my fault again? |
Hello Nils, |
So I inserted the Skins-Folder into my gamefolder where the relative path should find it… no change. It can't be the error that I used /usr/lib64/python3.7/site-packages/panda3d/Skins/Default and not /usr/share/LUI/Skins/Default/… or could it? PS: How to set if the Builtin from my gamefolder or from /usr/lib64/python3.7/site-packages/panda3d/Builtin is used? But because I changed both it should not matter… The error says it is using "/media/eigene Spiele/exitiers/luibuiltin/LUIFrame.py"… and there was no "/media/eigene Spiele/exitiers/Skins" so that was the first thing I tried… results see above |
As long as the path in the source files is consistent with the path where the files actually are, it doesn't really matter where you put them. I have a question: do you call LUIDefaultSkin() somewhere? |
This does not seem to be the same issue… But I am still trying to get the same game to run again…
Last thing written before the error comes up is "before radio0". So do you have any idea what could be wrong with the LUIRadiobox here? Thank you a lot this far! ATM I am recompiling LUI using clean git, your script, move all *3 to original folders 2to3 to build.py and I'll see if that changes anything… Update: The new one does not have any . at the beginning of the imports. But it makes no difference(I had cleaned the other version). Same error and I can not see any solution for it :( BUT! This does not seem to be my mistake, same error goes for Demos/B_Radiobox.py: |
I can see your last error on my system too. |
Apparently this is an issue with optional arguments. |
I've posted a bug report in panda3d: |
The Interrogate bug has been fixed upstream in panda, can you check if you still have errors? |
I recompiled panda from (newest)git(-version) but I still got the same error in both programs. |
After looking at your error again, I was able to reproduce the "free(): invalid pointer" error, but not the "munmap_chunk(): invalid pointer", so there were many problems, but it is difficult to debug it without the sources. |
This is the error I get on Keydown:
Traceback (most recent call last):
File "luibuiltin/LUIInputField.py", line 139, in on_keydown
self.trigger_event("changed", self._value)
TypeError: Arguments must match:
trigger_event(const LUIBaseElement self, str event_name, unicode message, const LPoint2f coords)
trigger_event(const LUIBaseElement self, LUIEventData data)
:util(error): Exception occurred in PythonCallbackObject
Traceback (most recent call last):
File "luibuiltin/LUIInputField.py", line 105, in on_tick
frame_time = globalClock.get_frame_time() - self._tickstart
File "luibuiltin/LUIInputField.py", line 139, in on_keydown
self.trigger_event("changed", self._value)
TypeError: Arguments must match:
trigger_event(const LUIBaseElement self, str event_name, unicode message, const LPoint2f coords)
trigger_event(const LUIBaseElement self, LUIEventData data)
:util(error): Exception occurred in PythonCallbackObject
Traceback (most recent call last):
File "/usr/share/panda3d/direct/showbase/ShowBase.py", line 1987, in __igLoop
self.graphicsEngine.renderFrame()
File "luibuiltin/LUIInputField.py", line 105, in on_tick
frame_time = globalClock.get_frame_time() - self._tickstart
File "luibuiltin/LUIInputField.py", line 139, in on_keydown
self.trigger_event("changed", self._value)
TypeError: Arguments must match:
trigger_event(const LUIBaseElement self, str event_name, unicode message, const LPoint2f coords)
trigger_event(const LUIBaseElement self, LUIEventData data)
:task(error): Exception occurred in PythonTask igLoop
Traceback (most recent call last):
File "main.py", line 338, in
spiel.run()
File "/usr/share/panda3d/direct/showbase/ShowBase.py", line 3109, in run
self.taskMgr.run()
File "/usr/share/panda3d/direct/task/Task.py", line 531, in run
self.step()
File "/usr/share/panda3d/direct/task/Task.py", line 485, in step
self.mgr.poll()
File "/usr/share/panda3d/direct/showbase/ShowBase.py", line 1987, in __igLoop
self.graphicsEngine.renderFrame()
File "luibuiltin/LUIInputField.py", line 105, in on_tick
frame_time = globalClock.get_frame_time() - self._tickstart
File "luibuiltin/LUIInputField.py", line 139, in on_keydown
self.trigger_event("changed", self._value)
TypeError: Arguments must match:
trigger_event(const LUIBaseElement self, str event_name, unicode message, const LPoint2f coords)
trigger_event(const LUIBaseElement self, LUIEventData data)
The text was updated successfully, but these errors were encountered: