Qutebrowser - importer.py

Hi!

I made mistake and delete quickmarks in www/qutebrowser. I tried again imoprt from www/firefox but I have a problem now.
Code:
locate imoprter.py
/usr/home/fernandel/Downloads/importer.py
/usr/local/lib/python3.8/site-packages/gi/importer.py
/usr/local/lib/python3.8/site-packages/sphinx/ext/autodoc/importer.py
/usr/ports/security/pwman3/files/patch-pwman-exchange_importer.py
Code:
 python /usr/home/fernandel/Downloads/importer.py bookmarks.html >> ~/.config/qutebrowser/quickmarks
Traceback (most recent call last):
  File "/usr/home/fernandel/Downloads/importer.py", line 342, in <module>
    main()
  File "/usr/home/fernandel/Downloads/importer.py", line 69, in main
    import_function[input_format](args.bookmarks, bookmark_types,
  File "/usr/home/fernandel/Downloads/importer.py", line 189, in import_html_bookmarks
    import bs4
ModuleNotFoundError: No module named 'bs4'
Above is importer.py which I downloded long time ago from github. Than I tried:
Code:
python /usr/local/lib/python3.8/site-packages/gi/importer.py bookmarks.html >> ~/.config/qutebrowser/quickmarks

  python /usr/local/lib/python3.8/site-packages/gi/importer.py bookmarks.html >> ~/.config/qutebrowser/quickmark
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/gi/importer.py", line 30, in <module>
    from ._gi import Repository, RepositoryError
ImportError: attempted relative import with no known parent package

Thank you.
 
Mine downloaded importer.py is the same as in in the link which you are posted. I did everything what importer.py -h shows but nothing.
Thank you.
 
I got an aswer about importer.py:
pip install bs4

will fix you module error. Not sure if FreeBSD
has an alias for pip. On OpenBSD I use "pip3.8 install "
But I think we do not have "pip".
 
Back
Top