Closed NicolasWladyslaw closed 2 years ago
There is no scrapyard-backend package. This means that it is not installed. The full installation output may say more. May be wrong user or Python version/environment?
This is the archive file I downloaded when clicking on "CLI-based installer (MacOS, Linux, Windows)" in the "Backend" section in Scrapyards settings and the extracted folder :
nicolas@T-Funkshun:~/Téléchargements$ ls
scrapyard-backend-2.1 scrapyard-backend-2.1.tgz
This is what I get when I execute install.sh
:
nicolas@T-Funkshun:~/Téléchargements/scrapyard-backend-2.1$ ./install.sh
Processing ./scrapyard_backend
Requirement already satisfied: Flask in /home/nicolas/.local/lib/python3.8/site-packages (from scrapyard-backend==2.1) (2.2.2)
Requirement already satisfied: bs4 in /home/nicolas/.local/lib/python3.8/site-packages (from scrapyard-backend==2.1) (0.0.1)
Requirement already satisfied: regex in /home/nicolas/.local/lib/python3.8/site-packages (from scrapyard-backend==2.1) (2022.9.13)
Requirement already satisfied: Jinja2>=3.0 in /home/nicolas/.local/lib/python3.8/site-packages (from Flask->scrapyard-backend==2.1) (3.1.2)
Requirement already satisfied: importlib-metadata>=3.6.0; python_version < "3.10" in /home/nicolas/.local/lib/python3.8/site-packages (from Flask->scrapyard-backend==2.1) (5.0.0)
Requirement already satisfied: itsdangerous>=2.0 in /home/nicolas/.local/lib/python3.8/site-packages (from Flask->scrapyard-backend==2.1) (2.1.2)
Requirement already satisfied: Werkzeug>=2.2.2 in /home/nicolas/.local/lib/python3.8/site-packages (from Flask->scrapyard-backend==2.1) (2.2.2)
Requirement already satisfied: click>=8.0 in /home/nicolas/.local/lib/python3.8/site-packages (from Flask->scrapyard-backend==2.1) (8.1.3)
Requirement already satisfied: beautifulsoup4 in /usr/local/lib/python3.8/dist-packages (from bs4->scrapyard-backend==2.1) (4.11.1)
Requirement already satisfied: MarkupSafe>=2.0 in /home/nicolas/.local/lib/python3.8/site-packages (from Jinja2>=3.0->Flask->scrapyard-backend==2.1) (2.1.1)
Requirement already satisfied: zipp>=0.5 in /home/nicolas/.local/lib/python3.8/site-packages (from importlib-metadata>=3.6.0; python_version < "3.10"->Flask->scrapyard-backend==2.1) (3.9.0)
Requirement already satisfied: soupsieve>1.2 in /usr/lib/python3/dist-packages (from beautifulsoup4->bs4->scrapyard-backend==2.1) (1.9.5)
Building wheels for collected packages: scrapyard-backend
Building wheel for scrapyard-backend (setup.py) ... done
Created wheel for scrapyard-backend: filename=scrapyard_backend-2.1-py3-none-any.whl size=122365 sha256=f750f07b163b8b1770c1002d5641486f84e394631f7135872c1b8f1de651c74a
Stored in directory: /tmp/pip-ephem-wheel-cache-batlozml/wheels/37/e7/b0/e98d85b8eaa661d12f9c5fe75fbf4a35e37033542d3fcbd947
Successfully built scrapyard-backend
Installing collected packages: scrapyard-backend
Attempting uninstall: scrapyard-backend
Found existing installation: scrapyard-backend 2.1
Uninstalling scrapyard-backend-2.1:
Successfully uninstalled scrapyard-backend-2.1
Successfully installed scrapyard-backend-2.1
It seems that there are no errors.
Somewhere in /home/nicolas/.local/bin should be a script named scrapyard-backend.sh or so.
If it presents, and pip3 list
lists the scrapyard-backend package, it is installed.
The next move is to check the path to the scrapyard-backend.sh in scrapyard_helper.json
If the script presents and paths are the right, this behavior is unexplainable without more context.
It seems, that the correct name of manifest is scrapyard_helper.json, scrapyard_backend.json is incorrect name. That may be the source of the error. It is necessary to rename scrapyard_backend.json obtained from the installation of 2.1 to scrapyard_helper.json since it is Brave, anyway. I'll fix the installer.
I can't find any script named scrapyard-backend.sh in /home/nicolas/.local/bin. There is however a Python 3 script named scrapyard_backend. There's also a Python 3 script named scrapyard_helper. pip3 list doesn't list the scrapyard-backend package. Am I supposed to just wait for the new installer now ?
pip3 list doesn't list the scrapyard-backend package.
That's strange. Although if scrapyard_backend
script produces no errors, all is fine (it should be interrupted with ctrl+c, though).
Am I supposed to just wait for the new installer now ?
If scrapyard_backend
script produces no errors, all what is necessary to rename scrapyard_backend.json obtained from the installation of 2.1 to scrapyard_helper.json and place it into Brave native messaging hosts folder. Please check if the host path in the json file points to scrapyard_backend
script.
It's working now. Thanks a lot for your help ! Great extension by the way.
I'm having a hard time trying to install scrapyard-backend v2.1 on Brave Browser Version 1.45.127 Chromium: 107.0.5304.110 (Build officiel) (64 bits) on Linux Mint 20.1 x86_64 Cinnamon.
I closed Brave Browser and followed your instructions in the readme.txt file. I didn't see any error messages, some dependencies were already installed but Scrapyard v2.1.3 complains that the backend is not installed.
I faced the same issue with scrapyard-helper a few weeks ago and managed to get it working by moving (or copying ?) scrapyard_helper.json from /home/nicolas/.config/google-chrome/NativeMessagingHosts/ to /home/nicolas/.config/BraveSoftware/Brave-Browser/NativeMessagingHosts. I also had to install pip and some python packages that were not in the distro repositories.
I therefore moved scrapyard_backend.json to /home/nicolas/.config/BraveSoftware/Brave-Browser/NativeMessagingHosts but it didn't do the trick. I used sudo pip check and installed the missing packages numpy and testresources ($ sudo pip install numpy testresources, not sure if those are actually needed by Scrapyard) and also updated beautifulsoup4, Clik and MarkupSafe ($ sudo pip install -U beautifulsoup4 Clik MarkupSafe). I've just realized it might have been Click that should have been updated so I did just that. There's quite a few oudated python packages on my system :
Scrapyard v2.1.3 still complains that the backend is not installed. Both scrapyard_backend.json and scrapyard_helper.json are in /home/nicolas/.config/BraveSoftware/Brave-Browser/NativeMessagingHosts, /home/nicolas/.config/google-chrome/NativeMessagingHosts/ and also in /home/nicolas/.config/chromium/NativeMessagingHosts/.
This means I can't use Scrapyard to save pages, what else should I do to finalize the installation of scrapyard-backend v2.1 ?