Sep-16-2022, 07:19 PM
(This post was last modified: Sep-16-2022, 10:09 PM by Yoriz.
Edit Reason: Added code tags
)
Using Linux Mint Cinnamon 21.0, I want to parse my bookmarks.html file with a script from https://pypi.org/project/bookmarks-parser/.
#! /usr/bin/python3 import pprint import bookmarks_parser bookmarks = bookmarks_parser.parse("bookmarks.html") pprint.pprint(bookmarks)Pasted the script into the Python terminal, line by line, with the following results.
ineuw@lmc210dt:~/Desktop$ python3 Python 3.10.4 (main, Jun 29 2022, 12:14:53) [GCC 11.2.0] on linux >>> import pprint >>> import bookmarks_parser Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/ineuw/Desktop/bookmarks_parser.py", line 6, in <module> bookmarks = bookmarks_parser.parse("bookmarks.html") AttributeError: partially initialized module 'bookmarks_parser' has no attribute 'parse' (most likely due to a circular import) >>>
Linux Mint Cinnamon 22 - Python 3.12.3 - Autokey-gtk 0.96.0 as of 2024-01-13.