andrewsomething / typecatcher Goto Github PK
View Code? Open in Web Editor NEWDownload Google webfonts on the Linux desktop
License: GNU General Public License v3.0
Download Google webfonts on the Linux desktop
License: GNU General Public License v3.0
Terminal output:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/typecatcher_lib/Application.py", line 30, in on_activate
self.window = TypeCatcherWindow.TypeCatcherWindow()
File "/usr/lib/python3/dist-packages/typecatcher_lib/Window.py", line 47, in __new__
builder = get_builder('TypeCatcherWindow')
File "/usr/lib/python3/dist-packages/typecatcher_lib/helpers.py", line 44, in get_builder
builder.add_from_file(ui_filename)
File "/usr/lib/python3/dist-packages/typecatcher_lib/Builder.py", line 86, in add_from_file
ele_widgets = tree.getiterator("object")
AttributeError: 'ElementTree' object has no attribute 'getiterator'
json.loads
should be called with named parameter for the second argument (encoding). Without this the load script fails with the error:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/typecatcher_lib/Application.py", line 30, in on_activate
self.window = TypeCatcherWindow.TypeCatcherWindow()
File "/usr/lib/python3.6/site-packages/typecatcher_lib/Window.py", line 49, in __new__
new_object.finish_initializing(builder)
File "/usr/lib/python3.6/site-packages/typecatcher/TypeCatcherWindow.py", line 43, in finish_initializing
self.fonts = FindFonts()
File "/usr/lib/python3.6/site-packages/typecatcher/FindFonts.py", line 27, in FindFonts
fonts = process_json(data)
File "/usr/lib/python3.6/site-packages/typecatcher/FindFonts.py", line 50, in process_json
json_data = json.loads(data, "utf-8")
TypeError: loads() takes 1 positional argument but 2 were given
there is a comment here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890754
From: Adrian Bunk [email protected]
To: Debian Bug Tracking System [email protected]
Subject: python3.6 3.6.4-4 makes typecatcher FTBFS
Date: Sun, 18 Feb 2018 14:27:57 +0200
Package: python3.6
Version: 3.6.4-4
Severity: serious
Control: affects -1 src:typecatcher
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/typecatcher.html
...
I: pybuild base:184: python3.6 setup.py config
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Traceback (most recent call last):
File "setup.py", line 144, in
cmdclass={'install': InstallAndUpdateDataDirectory}
File "/usr/lib/python3/dist-packages/DistUtilsExtra/auto.py", line 98, in setup
__requires(attrs, src_all)
File "/usr/lib/python3/dist-packages/DistUtilsExtra/auto.py", line 471, in __requires
__add_imports(imports, s, attrs)
File "/usr/lib/python3/dist-packages/DistUtilsExtra/auto.py", line 405, in __add_imports
if alias.name and __external_mod(cur_module, alias.name, attrs):
File "/usr/lib/python3/dist-packages/DistUtilsExtra/auto.py", line 377, in __external_mod
return 'dist-packages' in mod.file or 'site-packages' in mod.file or
TypeError: argument of type 'NoneType' is not iterable
E: pybuild pybuild:283: configure: plugin distutils failed with: exit code=1: python3.6 setup.py config
dh_auto_configure: pybuild --configure -i python{version} -p 3.6 returned exit code 13
make: *** [debian/rules:6: build] Error 25
Downgrading the python3.6 packages to 3.6.4-3 fixes the FTBFS.
same happens on arch linux AUR, https://aur.archlinux.org/packages/typecatcher/
Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/typecatcher_lib/Application.py", line 30, in on_activate self.window = TypeCatcherWindow.TypeCatcherWindow() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/typecatcher_lib/Window.py", line 47, in __new__ builder = get_builder('TypeCatcherWindow') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/typecatcher_lib/helpers.py", line 38, in get_builder ui_filename = get_data_file('ui', '%s.ui' % (builder_file_name,)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/typecatcher_lib/typecatcherconfig.py", line 44, in get_data_file return os.path.join(get_data_path(), *path_segments) ^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/typecatcher_lib/typecatcherconfig.py", line 61, in get_data_path raise project_path_not_found typecatcher_lib.typecatcherconfig.project_path_not_found
In Spanish-speaking countries we use two family names. To address Gabriel García Márquez you would normally say “Mr. García”, not “Mr. Márquez”. He was and is mostly known by his two family names.
This practice sometimes causes us problems internationally: when we have a scientific paper published, we have to hyphenate our family names so people don’t think we have a middle name or mis-sort us in a database.
typecatcher is amazing app for linux.. but how to install it on fedora and other Linux os s?
is there any way to install typecatcher other than Ubuntu and deb based systems.?
Is it possible to sort fonts by category? The Google Fonts website supports categories (serif, sans-serif, display, handwriting, monospace), thickness, slant, width, script...
To me, the category is most important. It's really difficult to look for monospace fonts using title search, when half of them don't have the word "mono" in the title.
Repo, you're directing people to use is broken for Debian buster
sudo add-apt-repository ppa:andrewsomething/typecatcher
TypeCatcher allows you to search, browse, and download Google webfonts for off-line use. You can preview fonts with adjustable size and text.
https://launchpad.net/typecatcher
More info: https://launchpad.net/~andrewsomething/+archive/ubuntu/typecatcher
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keybox '/tmp/tmp6x2xxmb7/pubring.gpg' created
gpg: /tmp/tmp6x2xxmb7/trustdb.gpg: trustdb created
gpg: key CA1F91146F087E5A: public key "Launchpad PPA for Andrew Starr-Bochicchio" imported
gpg: Total number processed: 1
gpg: imported: 1
gpg: no valid OpenPGP data found.
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 688, in addkey_func
func(**kwargs)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 386, in add_key
return apsk.add_ppa_signing_key()
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 273, in add_ppa_signing_key
cleanup(tmp_keyring_dir)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 234, in cleanup
shutil.rmtree(tmp_keyring_dir)
File "/usr/lib/python3.7/shutil.py", line 491, in rmtree
_rmtree_safe_fd(fd, path, onerror)
File "/usr/lib/python3.7/shutil.py", line 449, in _rmtree_safe_fd
onerror(os.unlink, fullname, sys.exc_info())
File "/usr/lib/python3.7/shutil.py", line 447, in _rmtree_safe_fd
os.unlink(entry.name, dir_fd=topfd)
FileNotFoundError: [Errno 2] No such file or directory: 'S.gpg-agent.ssh'
It could relate to #12 but the error message is different and is at a different stage.
Build error:
Traceback (most recent call last):
File "/home/makepkg/typecatcher/src/typecatcher-0.3/setup.py", line 135, in <module>
DistUtilsExtra.auto.setup(
File "/usr/lib/python3.9/site-packages/DistUtilsExtra/auto.py", line 98, in setup
__requires(attrs, src_all)
File "/usr/lib/python3.9/site-packages/DistUtilsExtra/auto.py", line 471, in __requires
__add_imports(imports, s, attrs)
File "/usr/lib/python3.9/site-packages/DistUtilsExtra/auto.py", line 405, in __add_imports
if alias.name and __external_mod(cur_module, alias.name, attrs):
File "/usr/lib/python3.9/site-packages/DistUtilsExtra/auto.py", line 377, in __external_mod
return 'dist-packages' in mod.__file__ or 'site-packages' in mod.__file__ or \
TypeError: argument of type 'NoneType' is not iterable
==> ERROR: A failure occurred in build().
Aborting...
Please use the loading animation provided by GTK.
Please add support of sorting by supported languages like on google website https://fonts.google.com
This is a great program!
I would love it if typecatcher could install a specific Google font via the command line and then exit without launching the GUI, like this:
$ typecatcher --install "abel,aguafina script,lobster"
This would be a wonderful automation help.
When I installed this with Ubuntu 21.10 it crashes on launch. However, if I clone this repo and run the bin/typecatcher file it works fine. A diff on the two versions showed that they were exactly the same. It does not seem to like being run from /usr/bin. Strace did not seem to tell me much.
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.