hongquan / CoBang

A QR code scanner desktop app for Linux
GNU General Public License v3.0
253 stars 26 forks source link

App doesn't start, missing dependencies #33

Closed maxgerhardt closed 3 years ago

maxgerhardt commented 3 years ago

Installing the software per this

gives

$ cobang 
Traceback (most recent call last):
  File "/usr/bin/cobang", line 11, in <module>
    load_entry_point('cobang==0.5.6', 'console_scripts', 'cobang')()
  File "/usr/local/lib/python3.8/dist-packages/pkg_resources/__init__.py", line 488, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python3.8/dist-packages/pkg_resources/__init__.py", line 2861, in load_entry_point
    return ep.load()
  File "/usr/local/lib/python3.8/dist-packages/pkg_resources/__init__.py", line 2461, in load
    return self.resolve()
  File "/usr/local/lib/python3.8/dist-packages/pkg_resources/__init__.py", line 2467, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3/dist-packages/cobang/__main__.py", line 17, in <module>
    from .app import CoBangApplication
  File "/usr/lib/python3/dist-packages/cobang/app.py", line 34, in <module>
    gi.require_version('Rsvg', '2.0')
  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Rsvg not available

thus making it unstartable.

Then after finding this and doing

sudo apt-get install gir1.2-rsvg-2.0 python3-cairo python-gi-cairo python3-gi

the app was startable.

It seems you're missing some dependencies in the PPA install?


Extra info

$ lsb_release -a
#No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.2 LTS
Release:    20.04
Codename:   focal
$ python3 -V
Python 3.8.5
hongquan commented 3 years ago

Thank you @maxgerhardt for reporting this. It is true that I listed not enough dependencies.

hongquan commented 3 years ago

Fixed in v0.8.1.