JustAnotherArchivist / snscrape

A social networking service scraper in Python
GNU General Public License v3.0
4.31k stars 698 forks source link

How to use it on VM ParrotOS #1043

Open adcoding opened 3 months ago

adcoding commented 3 months ago

Hello! I am new to this tool. I've been trying to use this library but there no way I can make it work.

I set up a virtual machine with ParrotOS. But all I can get is: Illegal instruction.

image

image

Thank you for your help.

JustAnotherArchivist commented 3 months ago

This is the first time I hear of Parrot OS, so I'm afraid I have no idea what might be wrong there. snscrape itself is pure Python code though, and 'Illegal instruction' is something that would be caused by machine code. So I think the issue lies elsewhere. Given that you're able to run pip, Python seems to likely be fine. So I would guess that one of the other packages wasn't compiled for the correct CPU architecture or similar. As a starting point, perhaps try to import the dependencies of snscrape individually to see which one breaks.

adcoding commented 3 months ago

Yeah I have tried to install the dependencies individually but I still get the same error. I also tried on Ubuntu and it is the same so most likely is something related to the way I set up my virtual machine. No clue tho.

TheTechRobo commented 3 months ago

Does it work outside the VMs?

Also try importing each dependency individually.

adcoding commented 3 months ago

now I'm trying on windows 11. (python 3.12.2) and I have installed the dependencies individually.

image

I also get this error: image

image

when I tried to run snscrape --help , I got this error: Screenshot 2024-04-04 105040