Comments (44)
By the way I was spelling separator wrong until now. Sorry for that, I've just realized.
from pylibui.
Hi, Can you elaborate ?
Separators as in ?
Pls provide a link to the code you're referring if possible
from pylibui.
I think he was talking about libui Separator struct
from pylibui.
There is a section (a few functions) about Seperator component in ui.h file. We need someone to create a ctype wrapper for these functions, add a high level wrapper around the ctype wrapper, write some tests and an example.
You can generate a ctype wrapper template by running the command below, in scripts directory:
$ python3 bindings.py seperator
This command will generate a file, seperator.py, in script directory. Then you should complete this file by using other wrappers in pylibui/libui
as a reference.
Feel free to ask more questions if you need.
from pylibui.
1
> from pylibui.controls import Separator
> Separator('Vertical')
2
> from pylibui.controls import VerticalSeparator
> VerticalSeparator()
Which is better?
from pylibui.
Please use second one if you're working on this. I think it's eaiser to read and understand. We've been using it commonly in libui.
@joaoventura What do you think about this?
from pylibui.
Sorry for the delay on answering, but I agree that the second one is more explicit and provides a better API.. In doubt, follow the Zen of Python: explicit is better than implicit. 👍
from pylibui.
Hi, sure I'd like to work on this.
Any tips on how to get started ?
Like how will we call C functions in the wrapper (I hope I got this right...) ?
from pylibui.
Start with forking then cloning the repo. Build the shared library as explained in README.md. Then generate your binding template, see my comment above. Spend some time examining the other wrapper files in pylibui/libui, you can easily find out how to complete your template.
Bonus tip: You can generate templates for completed wrappers and see what the author of the wrapper has done to complete the template.
Feel free to ask more question if you need.
from pylibui.
Ahh, it seems I missed that comment. I'll get to work on this right away...
from pylibui.
Hi, I'm having a lot of trouble with working with Cmake itself atm.
I'm running Ubuntu 14.01 and it seems that the cmake version provided by apt-get is 2.2.x and the installation of libui requires 3.2.x
I searched online and followed quite a lot of solutions, including compiling cmake from its source itself. Can't just get it to work.
Is there any other way out ?
from pylibui.
What about using a ppa?
from pylibui.
I did try it, it seems the PATH is not recognizable in that case. I'm trying to remove everything right now and reinstall everything cause it seems I have too many different version of cmake installled in different places.
Sorry for the unnecessary delay. I hope this issue is not an emergency. If it is, I wouldn't mind stepping down if someone else wants to immediately finish it. Else, I'll soon figure out the solution to the problem. Also, do you think once I find out a clear cut solution, we should add this information in the Contributing part of the readme ?
from pylibui.
Good idea, a fresh install can solve all problems.
Sorry for the unnecessary delay. I hope this issue is not an emergency. If it is, I wouldn't mind stepping down if someone else wants to immediately finish it.
No, there is no emergency and we have a lot of issues, I don't think that will be a problem.
Also, do you think once I find out a clear cut solution, we should add this information in the Contributing part of the readme ?
I don't think that will be necessary. Because just one google search brings a few pages about using a ppa to install cmake 3.x. If it will work for you, anybody can find the solution by googling. Also I can make reference to this issue if needed.
from pylibui.
Hi, I finally managed to install cmake and make it work. I have compiled the libui library, but the only issue I am facing at the moment is that after making the libui dir on ubuntu bash running on windows 10, I Can't access the libui.so file. (however I can access the libui.so.0 file)
The OS (windows 10) says the file doesn't exist even though I can see it. Due to this, I have some tests failing.
Any suggestions ?
from pylibui.
What is your error output?
from pylibui.
And post your tests' output please.
from pylibui.
Technically it's simply failing as it can't find the libui.so file, and I can't copy the same from libui/build/out as Windows reports it can't even find the file, even though it exists in the Windows Explorer.
Here are a few tree structures -
/mnt/e/Projects/Open-Source/libui/build/out$ tree
.
├── libui.so -> libui.so.0
└── libui.so.0
/mnt/e/Projects/Open-Source/pylibui/pylibui/libui/sharedlibs$ tree
.
└── libui.so.0
The error logs -
anshuman73@ANSHUMAN:/mnt/e/Projects/Open-Source/pylibui$ python3 -m unittest
EEEEEEEEEEEE
======================================================================
ERROR: tests.test_box (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/case.py", line 58, in testPartExecutor
yield
File "/usr/lib/python3.4/unittest/case.py", line 577, in run
testMethod()
File "/usr/lib/python3.4/unittest/loader.py", line 32, in testFailure
raise exception
ImportError: Failed to import test module: tests.test_box
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/loader.py", line 312, in _find_tests
module = self._get_module_from_name(name)
File "/usr/lib/python3.4/unittest/loader.py", line 290, in _get_module_from_name
__import__(name)
File "/mnt/e/Projects/Open-Source/pylibui/tests/test_box.py", line 6, in <module>
from pylibui.controls import HorizontalBox
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/controls/__init__.py", line 6, in <module>
from .box import Box, HorizontalBox, VerticalBox
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/controls/box.py", line 6, in <module>
from pylibui import libui
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/libui/__init__.py", line 24, in <module>
ctypes.cdll.LoadLibrary(SHARED_LIBS)
File "/usr/lib/python3.4/ctypes/__init__.py", line 429, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python3.4/ctypes/__init__.py", line 351, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /mnt/e/Projects/Open-Source/pylibui/pylibui/libui/sharedlibs/libui.so: cannot open shared object file: No such file or directory
======================================================================
ERROR: tests.test_button (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/case.py", line 58, in testPartExecutor
yield
File "/usr/lib/python3.4/unittest/case.py", line 577, in run
testMethod()
File "/usr/lib/python3.4/unittest/loader.py", line 32, in testFailure
raise exception
ImportError: Failed to import test module: tests.test_button
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/loader.py", line 312, in _find_tests
module = self._get_module_from_name(name)
File "/usr/lib/python3.4/unittest/loader.py", line 290, in _get_module_from_name
__import__(name)
File "/mnt/e/Projects/Open-Source/pylibui/tests/test_button.py", line 6, in <module>
from pylibui.controls import Button
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/controls/__init__.py", line 6, in <module>
from .box import Box, HorizontalBox, VerticalBox
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/controls/box.py", line 6, in <module>
from pylibui import libui
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/libui/__init__.py", line 24, in <module>
ctypes.cdll.LoadLibrary(SHARED_LIBS)
File "/usr/lib/python3.4/ctypes/__init__.py", line 429, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python3.4/ctypes/__init__.py", line 351, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /mnt/e/Projects/Open-Source/pylibui/pylibui/libui/sharedlibs/libui.so: cannot open shared object file: No such file or directory
======================================================================
ERROR: tests.test_checkbox (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/case.py", line 58, in testPartExecutor
yield
File "/usr/lib/python3.4/unittest/case.py", line 577, in run
testMethod()
File "/usr/lib/python3.4/unittest/loader.py", line 32, in testFailure
raise exception
ImportError: Failed to import test module: tests.test_checkbox
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/loader.py", line 312, in _find_tests
module = self._get_module_from_name(name)
File "/usr/lib/python3.4/unittest/loader.py", line 290, in _get_module_from_name
__import__(name)
File "/mnt/e/Projects/Open-Source/pylibui/tests/test_checkbox.py", line 6, in <module>
from pylibui.controls import Checkbox
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/controls/__init__.py", line 6, in <module>
from .box import Box, HorizontalBox, VerticalBox
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/controls/box.py", line 6, in <module>
from pylibui import libui
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/libui/__init__.py", line 24, in <module>
ctypes.cdll.LoadLibrary(SHARED_LIBS)
File "/usr/lib/python3.4/ctypes/__init__.py", line 429, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python3.4/ctypes/__init__.py", line 351, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /mnt/e/Projects/Open-Source/pylibui/pylibui/libui/sharedlibs/libui.so: cannot open shared object file: No such file or directory
======================================================================
ERROR: tests.test_combobox (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/case.py", line 58, in testPartExecutor
yield
File "/usr/lib/python3.4/unittest/case.py", line 577, in run
testMethod()
File "/usr/lib/python3.4/unittest/loader.py", line 32, in testFailure
raise exception
ImportError: Failed to import test module: tests.test_combobox
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/loader.py", line 312, in _find_tests
module = self._get_module_from_name(name)
File "/usr/lib/python3.4/unittest/loader.py", line 290, in _get_module_from_name
__import__(name)
File "/mnt/e/Projects/Open-Source/pylibui/tests/test_combobox.py", line 6, in <module>
from pylibui.controls import Combobox
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/controls/__init__.py", line 6, in <module>
from .box import Box, HorizontalBox, VerticalBox
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/controls/box.py", line 6, in <module>
from pylibui import libui
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/libui/__init__.py", line 24, in <module>
ctypes.cdll.LoadLibrary(SHARED_LIBS)
File "/usr/lib/python3.4/ctypes/__init__.py", line 429, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python3.4/ctypes/__init__.py", line 351, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /mnt/e/Projects/Open-Source/pylibui/pylibui/libui/sharedlibs/libui.so: cannot open shared object file: No such file or directory
======================================================================
ERROR: tests.test_control (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/case.py", line 58, in testPartExecutor
yield
File "/usr/lib/python3.4/unittest/case.py", line 577, in run
testMethod()
File "/usr/lib/python3.4/unittest/loader.py", line 32, in testFailure
raise exception
ImportError: Failed to import test module: tests.test_control
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/loader.py", line 312, in _find_tests
module = self._get_module_from_name(name)
File "/usr/lib/python3.4/unittest/loader.py", line 290, in _get_module_from_name
__import__(name)
File "/mnt/e/Projects/Open-Source/pylibui/tests/test_control.py", line 6, in <module>
from pylibui import libui
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/libui/__init__.py", line 24, in <module>
ctypes.cdll.LoadLibrary(SHARED_LIBS)
File "/usr/lib/python3.4/ctypes/__init__.py", line 429, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python3.4/ctypes/__init__.py", line 351, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /mnt/e/Projects/Open-Source/pylibui/pylibui/libui/sharedlibs/libui.so: cannot open shared object file: No such file or directory
======================================================================
ERROR: tests.test_entry (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/case.py", line 58, in testPartExecutor
yield
File "/usr/lib/python3.4/unittest/case.py", line 577, in run
testMethod()
File "/usr/lib/python3.4/unittest/loader.py", line 32, in testFailure
raise exception
ImportError: Failed to import test module: tests.test_entry
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/loader.py", line 312, in _find_tests
module = self._get_module_from_name(name)
File "/usr/lib/python3.4/unittest/loader.py", line 290, in _get_module_from_name
__import__(name)
File "/mnt/e/Projects/Open-Source/pylibui/tests/test_entry.py", line 6, in <module>
from pylibui.controls import Entry, PasswordEntry, SearchEntry
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/controls/__init__.py", line 6, in <module>
from .box import Box, HorizontalBox, VerticalBox
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/controls/box.py", line 6, in <module>
from pylibui import libui
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/libui/__init__.py", line 24, in <module>
ctypes.cdll.LoadLibrary(SHARED_LIBS)
File "/usr/lib/python3.4/ctypes/__init__.py", line 429, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python3.4/ctypes/__init__.py", line 351, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /mnt/e/Projects/Open-Source/pylibui/pylibui/libui/sharedlibs/libui.so: cannot open shared object file: No such file or directory
======================================================================
ERROR: tests.test_label (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/case.py", line 58, in testPartExecutor
yield
File "/usr/lib/python3.4/unittest/case.py", line 577, in run
testMethod()
File "/usr/lib/python3.4/unittest/loader.py", line 32, in testFailure
raise exception
ImportError: Failed to import test module: tests.test_label
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/loader.py", line 312, in _find_tests
module = self._get_module_from_name(name)
File "/usr/lib/python3.4/unittest/loader.py", line 290, in _get_module_from_name
__import__(name)
File "/mnt/e/Projects/Open-Source/pylibui/tests/test_label.py", line 6, in <module>
from pylibui.controls import Label
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/controls/__init__.py", line 6, in <module>
from .box import Box, HorizontalBox, VerticalBox
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/controls/box.py", line 6, in <module>
from pylibui import libui
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/libui/__init__.py", line 24, in <module>
ctypes.cdll.LoadLibrary(SHARED_LIBS)
File "/usr/lib/python3.4/ctypes/__init__.py", line 429, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python3.4/ctypes/__init__.py", line 351, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /mnt/e/Projects/Open-Source/pylibui/pylibui/libui/sharedlibs/libui.so: cannot open shared object file: No such file or directory
======================================================================
ERROR: tests.test_progressbar (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/case.py", line 58, in testPartExecutor
yield
File "/usr/lib/python3.4/unittest/case.py", line 577, in run
testMethod()
File "/usr/lib/python3.4/unittest/loader.py", line 32, in testFailure
raise exception
ImportError: Failed to import test module: tests.test_progressbar
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/loader.py", line 312, in _find_tests
module = self._get_module_from_name(name)
File "/usr/lib/python3.4/unittest/loader.py", line 290, in _get_module_from_name
__import__(name)
File "/mnt/e/Projects/Open-Source/pylibui/tests/test_progressbar.py", line 6, in <module>
from pylibui.controls import ProgressBar
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/controls/__init__.py", line 6, in <module>
from .box import Box, HorizontalBox, VerticalBox
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/controls/box.py", line 6, in <module>
from pylibui import libui
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/libui/__init__.py", line 24, in <module>
ctypes.cdll.LoadLibrary(SHARED_LIBS)
File "/usr/lib/python3.4/ctypes/__init__.py", line 429, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python3.4/ctypes/__init__.py", line 351, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /mnt/e/Projects/Open-Source/pylibui/pylibui/libui/sharedlibs/libui.so: cannot open shared object file: No such file or directory
======================================================================
ERROR: tests.test_slider (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/case.py", line 58, in testPartExecutor
yield
File "/usr/lib/python3.4/unittest/case.py", line 577, in run
testMethod()
File "/usr/lib/python3.4/unittest/loader.py", line 32, in testFailure
raise exception
ImportError: Failed to import test module: tests.test_slider
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/loader.py", line 312, in _find_tests
module = self._get_module_from_name(name)
File "/usr/lib/python3.4/unittest/loader.py", line 290, in _get_module_from_name
__import__(name)
File "/mnt/e/Projects/Open-Source/pylibui/tests/test_slider.py", line 6, in <module>
from pylibui.controls import Slider
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/controls/__init__.py", line 6, in <module>
from .box import Box, HorizontalBox, VerticalBox
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/controls/box.py", line 6, in <module>
from pylibui import libui
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/libui/__init__.py", line 24, in <module>
ctypes.cdll.LoadLibrary(SHARED_LIBS)
File "/usr/lib/python3.4/ctypes/__init__.py", line 429, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python3.4/ctypes/__init__.py", line 351, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /mnt/e/Projects/Open-Source/pylibui/pylibui/libui/sharedlibs/libui.so: cannot open shared object file: No such file or directory
======================================================================
ERROR: tests.test_spinbox (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/case.py", line 58, in testPartExecutor
yield
File "/usr/lib/python3.4/unittest/case.py", line 577, in run
testMethod()
File "/usr/lib/python3.4/unittest/loader.py", line 32, in testFailure
raise exception
ImportError: Failed to import test module: tests.test_spinbox
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/loader.py", line 312, in _find_tests
module = self._get_module_from_name(name)
File "/usr/lib/python3.4/unittest/loader.py", line 290, in _get_module_from_name
__import__(name)
File "/mnt/e/Projects/Open-Source/pylibui/tests/test_spinbox.py", line 6, in <module>
from pylibui.controls import Spinbox
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/controls/__init__.py", line 6, in <module>
from .box import Box, HorizontalBox, VerticalBox
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/controls/box.py", line 6, in <module>
from pylibui import libui
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/libui/__init__.py", line 24, in <module>
ctypes.cdll.LoadLibrary(SHARED_LIBS)
File "/usr/lib/python3.4/ctypes/__init__.py", line 429, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python3.4/ctypes/__init__.py", line 351, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /mnt/e/Projects/Open-Source/pylibui/pylibui/libui/sharedlibs/libui.so: cannot open shared object file: No such file or directory
======================================================================
ERROR: tests.test_tab (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/case.py", line 58, in testPartExecutor
yield
File "/usr/lib/python3.4/unittest/case.py", line 577, in run
testMethod()
File "/usr/lib/python3.4/unittest/loader.py", line 32, in testFailure
raise exception
ImportError: Failed to import test module: tests.test_tab
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/loader.py", line 312, in _find_tests
module = self._get_module_from_name(name)
File "/usr/lib/python3.4/unittest/loader.py", line 290, in _get_module_from_name
__import__(name)
File "/mnt/e/Projects/Open-Source/pylibui/tests/test_tab.py", line 6, in <module>
from pylibui.controls import Tab, Button
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/controls/__init__.py", line 6, in <module>
from .box import Box, HorizontalBox, VerticalBox
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/controls/box.py", line 6, in <module>
from pylibui import libui
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/libui/__init__.py", line 24, in <module>
ctypes.cdll.LoadLibrary(SHARED_LIBS)
File "/usr/lib/python3.4/ctypes/__init__.py", line 429, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python3.4/ctypes/__init__.py", line 351, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /mnt/e/Projects/Open-Source/pylibui/pylibui/libui/sharedlibs/libui.so: cannot open shared object file: No such file or directory
======================================================================
ERROR: tests.test_window (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/case.py", line 58, in testPartExecutor
yield
File "/usr/lib/python3.4/unittest/case.py", line 577, in run
testMethod()
File "/usr/lib/python3.4/unittest/loader.py", line 32, in testFailure
raise exception
ImportError: Failed to import test module: tests.test_window
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/loader.py", line 312, in _find_tests
module = self._get_module_from_name(name)
File "/usr/lib/python3.4/unittest/loader.py", line 290, in _get_module_from_name
__import__(name)
File "/mnt/e/Projects/Open-Source/pylibui/tests/test_window.py", line 6, in <module>
from tests.utils import WindowTestCase
File "/mnt/e/Projects/Open-Source/pylibui/tests/utils.py", line 8, in <module>
from pylibui.core import App
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/core.py", line 6, in <module>
from . import libui
File "/mnt/e/Projects/Open-Source/pylibui/pylibui/libui/__init__.py", line 24, in <module>
ctypes.cdll.LoadLibrary(SHARED_LIBS)
File "/usr/lib/python3.4/ctypes/__init__.py", line 429, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python3.4/ctypes/__init__.py", line 351, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /mnt/e/Projects/Open-Source/pylibui/pylibui/libui/sharedlibs/libui.so: cannot open shared object file: No such file or directory
----------------------------------------------------------------------
Ran 12 tests in 0.006s
FAILED (errors=12)
from pylibui.
I noticed an interesting part where the tree's output states libui.so -> libui.so.0
So I changed the name of the file libui.so.0 to libui.so and got the following errors -
/mnt/e/Projects/Open-Source/pylibui$ python3 -m unittest
error: XDG_RUNTIME_DIR not set in the environment.
(python3:305): GLib-CRITICAL **: g_ptr_array_add: assertion 'rarray' failed
(python3:305): Gtk-CRITICAL **: _gtk_style_cascade_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
(python3:305): Gtk-CRITICAL **: _gtk_style_provider_private_lookup: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_lookup_resolve: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_style_provider_private_lookup: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_lookup_resolve: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_style_provider_private_lookup: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_lookup_resolve: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_style_provider_private_lookup: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_lookup_resolve: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_style_provider_private_lookup: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_lookup_resolve: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_style_provider_private_lookup: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_lookup_resolve: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_style_provider_private_lookup: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_lookup_resolve: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_style_provider_private_lookup: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_lookup_resolve: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_style_provider_private_lookup: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_lookup_resolve: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_style_provider_private_lookup: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_lookup_resolve: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_style_provider_private_lookup: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_lookup_resolve: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_style_provider_private_lookup: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_lookup_resolve: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_style_provider_private_lookup: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_lookup_resolve: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_style_provider_private_lookup: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_lookup_resolve: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_style_provider_private_lookup: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_lookup_resolve: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_style_provider_private_lookup: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_lookup_resolve: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_style_provider_private_lookup: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_lookup_resolve: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_style_provider_private_lookup: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_lookup_resolve: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_style_provider_private_lookup: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_lookup_resolve: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_style_provider_private_lookup: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_lookup_resolve: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: _gtk_css_rgba_value_get_rgba: assertion 'rgba->class == >K_CSS_VALUE_RGBA' failed
(python3:305): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
(python3:305): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(python3:305): GLib-GObject-CRITICAL **: g_signal_connect_object: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
(python3:305): Gtk-CRITICAL **: _gtk_style_cascade_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
(python3:305): Gtk-CRITICAL **: _gtk_style_cascade_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
(python3:305): Gtk-CRITICAL **: _gtk_style_cascade_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
(python3:305): Gtk-CRITICAL **: _gtk_style_cascade_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
Eerror: XDG_RUNTIME_DIR not set in the environment.
Segmentation fault (core dumped)
from pylibui.
First, please restore name of the libui.so.0.
libui.so -> libui.so.0
means that libui.so is a link that points libui.so.0
So, try running this in libui/sharedlibs:
ln libui.so.0 libui.so
from pylibui.
I still get the error: XDG_RUNTIME_DIR not set in the environment
error
reference to the full error
from pylibui.
Could it be because of running everything in bash on Ubuntu on Windows ?
from pylibui.
Maybe. I'm using Ubuntu too. But I've never seen an error like this while working on pylibui.
from pylibui.
Can you please try this: http://superuser.com/a/1078889
from pylibui.
Same error. except with
** (python3:16): WARNING **: Could not open X display
in the beginning
from pylibui.
Can you open other GUI applications? Like xclock or gedit?
from pylibui.
Why don't you work on windows?
from pylibui.
No, gedit doesn't work, gives the same error, (could not open x display). even though I tried changing the display values.
from pylibui.
Well, Windows is a bit difficult to work with, especially with Cmake and the fact that my path recognizes python2.7 when I use python and it has no python3 path which I would need to configure, but yes it seems I'll have to pick that up
from pylibui.
GNOME create a vertical separator for gtk_separator_new(GTK_ORIENTATION_HORIZONTAL)
Same error with pygtk
from pylibui.
@TiagoDanin Sorry, I didn't understand you. Is there an error?
from pylibui.
Yes, you can see in my fork
from pylibui.
What is the problem? It seems it is working well.
from pylibui.
You were trying to create a horizontal seperator but got a vertical one, am I right?
from pylibui.
It's just a bit confusing. Your file name is vseperator.py but you imported and used HorizontalSeperator. And a vertical seperator appeared as a result 😄
from pylibui.
from pylibui.
Thanks. A lot much more clear 👍 I'm checking now.
from pylibui.
It works well for me.
Horizontal (however I had to add a VerticalBox to make it appear):
Vertical:
from pylibui.
But I think I'm not using gnome 😁
from pylibui.
It's working on Unity but not on Gnome. Maybe, it's about original libui. Please double check your code. And please try adding Vertical/Horizontal boxes and let me know if it changes.
from pylibui.
Your code has missing parts. Maybe it's better to wait separator to be implemented. Then you can check again and open an issue for this if it's necessary.
@anshuman73 is working on this, meanwhile you can check other issues. It seems you got the idea 👍 your fork looks good.
from pylibui.
Well, if @TiagoDanin is close to a solution, I wouldn't want to stop you.
I can't even get the tests right. Tried running on windows, ended up getting these -
EEEEEEEEEEEEEE
======================================================================
ERROR: pylibui.controls (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: pylibui.controls
Traceback (most recent call last):
File "C:\Program Files (x86)\Python 3.5\lib\unittest\loader.py", line 462, in _find_test_path
package = self._get_module_from_name(name)
File "C:\Program Files (x86)\Python 3.5\lib\unittest\loader.py", line 369, in _get_module_from_name
__import__(name)
File "E:\Projects\Open-Source\pylibui\pylibui\controls\__init__.py", line 6, in <module>
from .box import Box, HorizontalBox, VerticalBox
File "E:\Projects\Open-Source\pylibui\pylibui\controls\box.py", line 6, in <module>
from pylibui import libui
File "E:\Projects\Open-Source\pylibui\pylibui\libui\__init__.py", line 24, in <module>
ctypes.cdll.LoadLibrary(SHARED_LIBS)
File "C:\Program Files (x86)\Python 3.5\lib\ctypes\__init__.py", line 425, in LoadLibrary
return self._dlltype(name)
File "C:\Program Files (x86)\Python 3.5\lib\ctypes\__init__.py", line 347, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found
======================================================================
ERROR: pylibui.libui (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: pylibui.libui
Traceback (most recent call last):
File "C:\Program Files (x86)\Python 3.5\lib\unittest\loader.py", line 462, in _find_test_path
package = self._get_module_from_name(name)
File "C:\Program Files (x86)\Python 3.5\lib\unittest\loader.py", line 369, in _get_module_from_name
__import__(name)
File "E:\Projects\Open-Source\pylibui\pylibui\libui\__init__.py", line 24, in <module>
ctypes.cdll.LoadLibrary(SHARED_LIBS)
File "C:\Program Files (x86)\Python 3.5\lib\ctypes\__init__.py", line 425, in LoadLibrary
return self._dlltype(name)
File "C:\Program Files (x86)\Python 3.5\lib\ctypes\__init__.py", line 347, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found
And so on for all the tests.
Could be related to this - http://stackoverflow.com/a/6087086 or could be related to a localized problem.
Looks mostly a localized problem with dlls though
from pylibui.
So @TiagoDanin you can open a pull request for this if you want. But please make sure code is complete, for example you've commented this line, in uiNewHorizontalSeparator
it's completely missing. After implementation completed, you can open another issue for the horizontal/vertical problem
@anshuman73 thanks for your effort, I hope you keep trying and find a good solution soon. Other issues are waiting for you. Please let us know if anything changes or you need some help.
from pylibui.
@nsgonultas Firstly, sorry for being unresponsive for a while
Sure ! I think I'll go ahead and get a proper dual boot ubuntu that I've been planning for some time. Should help solve unnecessary issues and speed up things. Looking forward to solving some more issues !
from pylibui.
Related Issues (20)
- Implement editable combobox
- Implement radio buttons
- Implement date time picker HOT 2
- Removal of some window functions in clibui HOT 2
- Update ui.h
- Create a Control Gallery HOT 7
- Start writing documentation HOT 2
- Undefined symbol HOT 2
- Installation issues HOT 1
- Implement form HOT 1
- controls folder not getting copied when installing via setup.py HOT 2
- Run from iPython/Jupyter Notebook
- Is pylibui dead ? HOT 3
- Initial Update
- Could you please provide Python distribution on PyPi service HOT 1
- Issue building: AttributeError: /usr/lib/x86_64-linux-gnu/libui.so.1: undefined symbol: uiInit HOT 1
- `App.stop` does not exit app HOT 1
- setChild or addChild? HOT 3
- Build instructions outdated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pylibui.