foss-np / anubad Goto Github PK
View Code? Open in Web Editor NEWgloss browser for https://github.com/foss-np/np-l10n-glossary
License: Other
gloss browser for https://github.com/foss-np/np-l10n-glossary
License: Other
I am unable to run any of the scripts from experimental branch.
I get these errors:
Traceback (most recent call last):
File "./src/main.py", line 59, in makeGUI
self.root = main(app=self)
File "/share/git/foss-np/anubad/src/ui/home.py", line 598, in main
rc = config.main(PWD)
File "/share/git/foss-np/anubad/src/config.py", line 113, in main
rc.load()
File "/share/git/foss-np/anubad/src/config.py", line 32, in load
self.preferences = self.extract_preferences()
File "/share/git/foss-np/anubad/src/config.py", line 55, in extract_preferences
'use-system-defaults' : pref.getboolean('use-system-defaults', True),
AttributeError: 'dict' object has no attribute 'getboolean'
Traceback (most recent call last):
File "./src/main.py", line 72, in on_activate
self.root.show_all()
AttributeError: 'App' object has no attribute 'root'
I get error on dev
and experimental
branch during make. I didn't bother to test the master branch as it seemed to be outdated.
./configure
- pulls the latest translation filesmake
fails with following error messageTraceback (most recent call last):
File "./main.py", line 23, in <module>
import ui.home
File "/home/developer/personal/anubad/src/ui/home.py", line 507
^
SyntaxError: only named arguments may follow *expression
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/developer/personal/anubad/src'
make: *** [app] Error 2
The reported error is in line number 507, https://github.com/foss-np/anubad/blob/dev/src/ui/home.py#L507
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty
Started with a fresh clone,
Context:
os: archlinux
a rough hunch... I might be missing some system package that anubad is expecting behind the scene.
@rhoit
./demo.pyw
./gtk3.py
commands do not work
I cloned the git repo and then used ./configure
which threw the following error
samundra@samshrestha:~/Projects/anubad$ ./configure
Downloading glossary
--2016-02-16 00:42:03-- https://github.com/foss-np/np-l10n-glossary/archive/current.tar.gz
Resolving github.com (github.com)... 192.30.252.130
Connecting to github.com (github.com)|192.30.252.130|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/foss-np/np-l10n-glossary/tar.gz/current [following]
--2016-02-16 00:42:04-- https://codeload.github.com/foss-np/np-l10n-glossary/tar.gz/current
Resolving codeload.github.com (codeload.github.com)... 192.30.252.162
Connecting to codeload.github.com (codeload.github.com)|192.30.252.162|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-02-16 00:42:06 ERROR 404: Not Found.
tar (child): current.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
mv: cannot stat ‘np-l10n-glossary-current’: No such file or directory
You can see the 404 Not Found error which basically means the pages were not found in the designated places. configure
script tries to download https://github.com/foss-np/np-l10n-glossary/archive/current.tar.gz
. This path is missing from the np-l10n-glossary repo and is causing the above issue.
While trying to make
project, I get the following errors:
./app.py
Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 2158, in _find_spec
AttributeError: 'DynamicImporter' object has no attribute 'find_spec'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./app.py", line 5, in <module>
from gi.repository import Keybinder
File "/usr/lib/python3/dist-packages/gi/importer.py", line 53, in find_module
'introspection typelib not found' % namespace)
ImportError: cannot import name Keybinder, introspection typelib not found
Current display is in the format:
hello [हेलो]
source:foss/en2np/main.tra
How about we also add respective sounds e.g. 1. noun >> नमस्कार (Namaskar)
This way this will also be beneficial to foreigner seeking to learn Nepalease.
This is how the UI looks, some of the icons are broken as expected :)
I already have the "foss" created from latest glossary repo.
When Load New Glossary button is clicked, it displays the following error in console:
Traceback (most recent call last):
File "main.py", line 167, in <lambda>
bar.b_Open.connect("clicked", lambda w: self._open_dir())
File "main.py", line 112, in wrapper
return func(self, *args, **kwargs)
File "main.py", line 485, in _open_dir
print("pid:", Popen(["nemo", path]).pid, file=fp5)
File "/usr/lib/python3.4/subprocess.py", line 848, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.4/subprocess.py", line 1446, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'nemo'
Trying to run app from master branch gives following output.
samundra@samshrestha:~/Projects/anubad/src$ python3 app.py
error: invalid glossary path
glossary: foss/en2np/ 0
error: invalid glossary path
glossary: foss/np2en/ 0
(app.py:25343): IBUS-WARNING **: The owner of /home/samundra/.config/ibus/bus is not samundra!
plugin: espeak.py
(google-chrome-stable:25451): IBUS-WARNING **: The owner of /home/samundra/.config/ibus/bus is not samundra!
[25451:25451:0216/010716:ERROR:logging.h(808)] Failed to call method: org.freedesktop.DBus.ObjectManager.GetManagedObjects: object_path= /: org.freedesktop.DBus.Error.UnknownMethod: Method "GetManagedObjects" with signature "" on interface "org.freedesktop.DBus.ObjectManager" doesn't exist
[25451:25451:0216/010716:ERROR:logging.h(808)] Failed to call method: org.freedesktop.DBus.ObjectManager.GetManagedObjects: object_path= /: org.freedesktop.DBus.Error.UnknownMethod: Method "GetManagedObjects" with signature "" on interface "org.freedesktop.DBus.ObjectManager" doesn't exist
espeak:
Traceback (most recent call last):
File "/home/samundra/Projects/anubad/src/../plug_ins/espeak.py", line 17, in <lambda>
bar.b_espeak.connect("clicked", lambda w: espeak(root.copy_BUFFER))
File "/home/samundra/Projects/anubad/src/../plug_ins/espeak.py", line 9, in espeak
Popen(["espeak", "-v", tone, word])
File "/usr/lib/python3.4/subprocess.py", line 848, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.4/subprocess.py", line 1446, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'espeak'
Switched to dev branch and then ran python3 app.py
gave following errors:
samundra@samshrestha:~/Projects/sam_anubad/src$ python3 app.py
error: invalid glossary path
glossary: foss/en2np/ 0
error: invalid glossary path
glossary: foss/np2en/ 0
Traceback (most recent call last):
File "app.py", line 110, in <module>
root = main()
File "/home/samundra/Projects/sam_anubad/src/main.py", line 593, in main
root = GUI()
File "/home/samundra/Projects/sam_anubad/src/main.py", line 98, in __init__
self.makeWidgets()
File "/home/samundra/Projects/sam_anubad/src/main.py", line 132, in makeWidgets
hpaned.add2(self.makeWidgets_viewer())
File "/home/samundra/Projects/sam_anubad/src/main.py", line 310, in makeWidgets_viewer
self.viewer = Vi.Viewer(self)
File "/home/samundra/Projects/sam_anubad/src/viewer.py", line 27, in __init__
self.makeWidgets()
File "/home/samundra/Projects/sam_anubad/src/viewer.py", line 53, in makeWidgets
self.textview.set_top_margin(-15) # hack for next search separation '\n'
AttributeError: 'TextView' object has no attribute 'set_top_margin'
samundra@samshrestha:~/Projects/sam_anubad/src$
I tried to test the latest changes in the experimental branch with "sudo make link" as per instruction on the document but it failed with "anubad" not found error. Perhaps the link is not created as expected.
I also tried to run application from python3 main.py
I then ended up with another issue #13
I checked out experimental
branch and tried running it. I ended up with following errors.
developer@PC-256:~/personal/anubad (experimental)ॐ $ make
cd src; make
make[1]: Entering directory `/home/developer/personal/anubad/src'
./main.py
glossary: ~/.cache/anubad/gloss/foss/en2np/ 3675
glossary: ~/.cache/anubad/gloss/foss/np2en/ 81
Traceback (most recent call last):
File "./main.py", line 69, in on_startup
self.root = ui.home.main(core, rc, app=self)
File "/home/developer/personal/anubad/src/ui/home.py", line 636, in main
return Home(core, rc, app)
File "/home/developer/personal/anubad/src/ui/home.py", line 129, in __init__
self.makeWidgets()
File "/home/developer/personal/anubad/src/ui/home.py", line 166, in makeWidgets
hpaned.add2(self.makeWidgets_viewer())
File "/home/developer/personal/anubad/src/ui/home.py", line 341, in makeWidgets_viewer
self.viewer = ui.view.Display(self, PWD)
File "/home/developer/personal/anubad/src/ui/view.py", line 30, in __init__
self.makeWidgets()
File "/home/developer/personal/anubad/src/ui/view.py", line 60, in makeWidgets
self.textview.set_top_margin(-15) # hack for next search separation '\n'
AttributeError: 'TextView' object has no attribute 'set_top_margin'
Traceback (most recent call last):
File "./main.py", line 116, in on_activate
self.root.show_all()
AttributeError: 'App' object has no attribute 'root'
Basically, AttributeError: 'TextView' object has no attribute 'set_top_margin'
seems to be the problem. Maybe I am using the older Gtk.
output of python3 main.py
Traceback (most recent call last):
File "main.py", line 32, in <module>
import ui.home
File "/home/developer/personal/anubad/src/ui/home.py", line 18, in <module>
import _searchbar
File "/home/developer/personal/anubad/src/ui/_searchbar.py", line 108, in <module>
class INavHistory(Gtk.Popover):
File "/usr/lib/python3/dist-packages/gi/module.py", line 320, in __getattr__
return getattr(self._introspection_module, name)
File "/usr/lib/python3/dist-packages/gi/module.py", line 139, in __getattr__
self.__name__, name))
AttributeError: 'gi.repository.Gtk' object has no attribute 'Popover'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.