andrewsomething / typecatcher

Download Google webfonts on the Linux desktop
GNU General Public License v3.0
88 stars 13 forks source link

typecatcher for fedora? #1

Open shivarajnaidu opened 8 years ago

shivarajnaidu commented 8 years ago

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.?

mmstick commented 8 years ago

Arch Linux has support. Packaging would be pretty stupid simple if someone that uses Fedora or any other OS would want to package it:

python3 setup.py build
python3 setup.py install --root=$pkgdir --optimize=1
install -dm755 ${pkgdir}/usr/share/licenses/${pkgname}/
install -Dpm644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/
install -dm755 ${pkgdir}/usr/share/doc/${pkgname}/
install -Dpm644 AUTHORS ${pkgdir}/usr/share/doc/${pkgname}/

Just ensure that you have these dependencies installed:

python3 python-distutils-extra python-gobject yelp

shivarajnaidu commented 8 years ago

Sorry .. I am Newbie .. Don't know much about packaging stuff .. However Thanks for your kind reply @mmstick and I want suggest something for now .. If possible ... for now , providing shell or python installation script will we helpful ..

ghost commented 7 years ago

same.

johjeff commented 7 years ago

Hello,

I am on Fedora 26 and am attempting to build and install typecatcher. Here is my Python version:

python3 --version Python 3.6.1 :: Anaconda custom (64-bit)

Anaconda Python distribution is located in /opt/anaconda3. I installed yelp and python3-gobject with 'pip', and installed python-distutils-extra via GIT.

I succeeded in the build/install, but when I try to run typecatcher, I get the following error:

Traceback (most recent call last): File "/opt/anaconda3/bin/typecatcher.py", line 46, in import typecatcher File "/opt/anaconda3/lib/python3.6/site-packages/typecatcher/init.py", line 21, in from typecatcher_lib import Application File "/opt/anaconda3/lib/python3.6/site-packages/typecatcher_lib/init.py", line 22, in from . helpers import set_up_logging File "/opt/anaconda3/lib/python3.6/site-packages/typecatcher_lib/helpers.py", line 23, in import gi File "/opt/anaconda3/lib/python3.6/site-packages/gi/init.py", line 39 print url ^ SyntaxError: Missing parentheses in call to 'print'

Any chance someone can point me in the right direction? It would be nice to have this application in a snap, flatpak, or appimage package.

Thanks.

mmstick commented 7 years ago

May be best if we just rewrite this in an actual systems language. Rust rewrite candidate, perhaps? I could probably look into it.

andrewsomething commented 7 years ago

@johjeff How did you install gi?

I'll look into providing a snap or flatpack. I do not regularly use a Fedora system nor am I versed in the art of RPM packaging, so I have no intentions to package it as an RPM myself. Thought, I'm happy to help anyone who is interested in doing so.

mmstick commented 7 years ago

@andrewsomething Python software comes with a whole sleuth of issues. Runtime bugs, compatibility issues, over-reliance on pip, performance issues, etc. So, lets save the planet and rewrite this in a proper compiled lang that won't require snaps or flatpaks for distribution.

johjeff commented 7 years ago

gi comes with python3-gobjects I believe. I installed in Anaconda using PIP, but I installed in the OS with DNF(rpm). So, rather than go through the build steps above, I deleted my previous clone, and recloned the project. Then, I simply ran the executable in 'bin' and it worked. That is assuming all your dependencies are in place. So, the question is what are all the dependencies, both Python and system. To be honest I haven't created a distribution independent package yet, but I believe they package up all the dependencies in the package. That makes it much bigger, but should allow it to run on any platform.

johjeff commented 7 years ago

I just checked from Anaconda and it runs there too after manually installing those deps with PIP.

probonopd commented 7 years ago

It would be nice to have this application in a snap, flatpak, or appimage package.

Providing an AppImage would have, among others, these advantages:

Here is an overview of projects that are already distributing upstream-provided, official AppImages.

If you have questions, AppImage developers are on #AppImage on irc.freenode.net.

millerthegorilla commented 6 years ago

Python 3 is causing the problem @johjeff The program is written using python2.7. You may need to use update-alternatives or run from the command line using /usr/bin/python2.7 typecatcher.

millerthegorilla commented 6 years ago

Actually, it doesn't seem like typecatcher will build for fedora as fedora doesn't have an equivalent to distutils-extra.

q2dg commented 3 years ago

In fact, this project seems pretty abandoned...