You are not logged in.

#1 2016-05-20 19:52:47

dakota
Member
Registered: 2016-05-20
Posts: 273

[SOLVED] Uzbl-browser requires missing python module?

Greetings, I'm a very green Arch user...

I am running:

4.5.4-1-ARCH

python-3.5.1-2
python2-2.7.11-3
uzbl-core-1:0.9.0-1
uzbl-browser-1:0.9.0-1
uzbl-tabbed-1:0.9.0-1

I have previously used the uzbl web browser.

Today when I started it from the command line, I received the following error:

$uzbl-browser
Traceback (most recent call last):
  File "/usr/bin/uzbl-event-manager", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named 'pkg_resources'
Error: Could not start uzbl-event-manager

When I look in the file '/usr/bin/uzbl-event-manager' I see the following:

#!/usr/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'uzbl==201100808','console_scripts','uzbl-event-manager'
__requires__ = 'uzbl==201100808'
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
    sys.exit(
        load_entry_point('uzbl==201100808', 'console_scripts', 'uzbl-event-manager')()
    )

To me this looks like a python 3 script which is trying to load the module 'pkg_resources'.

So my question is, how do I install this python module? I don't see anything in the package repository or the AUR which matches this name.

Do I need to build a custom version of python with the additional module as detailed Python package guidelines and distutils — Building and installing Python modules? Or am I missing something very simple?

A nudge in the right direction would be greatly appreciated.

Cheers,

Last edited by dakota (2016-05-31 19:53:03)


"Before Enlightenment chop wood, carry water. After Enlightenment chop wood, carry water." -- Zen proverb

Offline

#2 2016-05-31 19:52:41

dakota
Member
Registered: 2016-05-20
Posts: 273

Re: [SOLVED] Uzbl-browser requires missing python module?

Apparently, the module pkg_resources can be managed with python setuptools.

Python setuptools is a tool to: "Easily download, build, install, upgrade, and uninstall Python packages."

Sources:
Python documentation for setuptools.
Guide to using pkg_resources.

Installing setuptools fixed the problem with pkg_resources not loading. I still can't use uzbl, but that is being caused by a completely different problem. This problem is solved.

Cheers,


"Before Enlightenment chop wood, carry water. After Enlightenment chop wood, carry water." -- Zen proverb

Offline

#3 2016-06-01 22:12:01

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [SOLVED] Uzbl-browser requires missing python module?

Dakota,

I think this warrants creating a bug report.

uzbl-browser has python-setuptools as a makedepend , but if that package is also needed at runtime then having it as makedepend is  not enough.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#4 2016-06-02 00:12:36

dakota
Member
Registered: 2016-05-20
Posts: 273

Re: [SOLVED] Uzbl-browser requires missing python module?

Lone_Wolf wrote:

Dakota,

I think this warrants creating a bug report.

uzbl-browser has python-setuptools as a makedepend , but if that package is also needed at runtime then having it as makedepend is  not enough.

Hmm. I think it's highly likely that this is a problem I created myself.

Uzbl was working 6 months ago... maybe even 3 months ago... but in the past month I've been installing, testing, and removing packages from my system. It's possible that I removed a package... or a configuration file... that I shouldn't have.

I have a spare laptop. This weekend I'll do a clean Arch install on it and then try to install/run uzbl. If I still have a problem, then I'll figure out how to file a bug report.

But I suspect everything will work beautifully. smile


"Before Enlightenment chop wood, carry water. After Enlightenment chop wood, carry water." -- Zen proverb

Offline

#5 2016-06-05 06:20:10

dakota
Member
Registered: 2016-05-20
Posts: 273

Re: [SOLVED] Uzbl-browser requires missing python module?

dakota wrote:

This weekend I'll do a clean Arch install on it and then try to install/run uzbl. If I still have a problem, then I'll figure out how to file a bug report.

But I suspect everything will work beautifully. smile

I did a clean install on my old laptop and the problem persisted. By the time I figured out how to post a bug report, Leonid had already reported the problem as FS#49566.

However, I also noticed that python3 is a dependency. So I filed a bug report for that as FS#49568.


"Before Enlightenment chop wood, carry water. After Enlightenment chop wood, carry water." -- Zen proverb

Offline

Board footer

Powered by FluxBB