bauh icon indicating copy to clipboard operation
bauh copied to clipboard

Unable to activate Web application type even if bs4 and lxml are installed

Open matbgn opened this issue 1 year ago • 5 comments

Describe the bug I'm not able to activate the checkbox for web application type even if dependencies are satisfied. Still getting the "python3-beautifulsoup4 is not installed" message.

Unlike AppImage and Flatpak which worked like a charm after sqlite3 and flatpak package installation. ;-)

Software Environment bauh version: 0.10.3 O.S: Ubuntu Jammy Jellyfish 22.04 LTS Python version: 3.10.4 Installation method: pipx

matbgn avatar Aug 08 '22 11:08 matbgn

Hi @matbgn , have you restarted bauh after installing these dependencies ? Since they are Python dependencies and bauh is a Python application, you would need to restart it.

vinifmor avatar Aug 08 '22 13:08 vinifmor

Hi,

Course I had and the machine also with no better results.

Any other idea or log retrieve way?

matbgn avatar Aug 08 '22 18:08 matbgn

Try opening a Python shell through a CLI (python 3) and execute the following command: from bs4 import BeautifulSoup, SoupStrainer. If an exception is raised, it means something is wrong with the installed beautifulsoup4. If that is the case, you could check if the package is named differently for your Linux distribution.

vinifmor avatar Aug 08 '22 18:08 vinifmor

There is no problem with bs4:

image

image

matbgn avatar Aug 09 '22 05:08 matbgn

I believe it might be something related to the pipx environment. Try installing beautifulsoup4 and lxml with it as well.

vinifmor avatar Aug 09 '22 10:08 vinifmor

Tried it but I really think that the packaging/linking has to be done at bauh level:

$ pipx install beautifulsoup4

No apps associated with package beautifulsoup4 or its dependencies. If you are attempting to install a library, pipx should not be used. Consider using pip or a similar tool instead.

As it is already installed on shared environment:

$ pip3 install beautifulsoup4
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: bs4 in /home/matbgn/.local/lib/python3.10/site-packages (0.0.1)
Requirement already satisfied: beautifulsoup4 in /usr/lib/python3/dist-packages (from bs4) (4.10.0)

matbgn avatar Sep 25 '22 05:09 matbgn

You could try using the raw virtualenv library (as described on the README.md)

vinifmor avatar Sep 29 '22 10:09 vinifmor

I typically want to install bauh as a "standalone" app so makes less sense to stick on venv and therefore multiple operations.

matbgn avatar Sep 29 '22 11:09 matbgn

Have you tried the AppImage release ? It has a self-install option to enable self-management (also it generates the desktop entry)

vinifmor avatar Sep 30 '22 18:09 vinifmor

I will thanks

matbgn avatar Oct 03 '22 10:10 matbgn

It installs perfectly with the corresponding option, but I'm surely missing something, as the image is not configured right away. Any advice?

matbgn avatar Oct 04 '22 07:10 matbgn

Sorry, when you say is not configured, you mean not displayed for managing on bauh itself ?

vinifmor avatar Oct 05 '22 10:10 vinifmor

Yep - sorry for my english BTW - I mean that the icon is not set up so the application manager on my Ubuntu 22.04 machine could not display it.

matbgn avatar Oct 05 '22 11:10 matbgn

I'll try to reproduce the issue here...

vinifmor avatar Oct 06 '22 10:10 vinifmor

I finally achieved to install bauh within pipx and therefore augment my mastery of pipx. It's simple as running the following commands:

pipx inject bauh bs4
pipx inject bauh lxml

Therefore, the overall process that would have place in the docs could simply be:

python3 -m pip install --user pipx
python3 -m pipx ensurepath
pipx install bauh
pipx inject bauh bs4
pipx inject bauh lxml

Many thanks for your support along the path!

matbgn avatar Nov 10 '22 09:11 matbgn