-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue setting up a new developer machine #288
Comments
Hi, I seem to have a new trouble now when I run pip install -r requirements.txt the log shows The libzim library cannot be found.How to solve it, thanks
|
I have encountered this problem on both x86 windows and M1 mac. I tried 3.9 and 3.11 for the python version. It doesn’t seem to have much to do with the python version. |
System/architecture seem supported and download.kiwix.org is online... strange! |
If I follow the instructions in the Developers section of the readme and run
I then get an error
Then I tried to download all dependencies according to the requirements.txt file, and then encountered the above error. But when I directly use pip to download zimscraperlib, its version is zimscraperlib-3.1.1, which does not match the requirements.txt file, and then execute python src/sotoki/dependencies.py, the following log will appear, It seems to be working fine, but I'm not sure. . . . .
|
@natamox Thank you for all the details, we will come back to you in the next days |
This is unfortunately an issue linked to your local setup, and it will be very hard for us to help, I'm afraid we do not have enough resources to help all volunteers master Python / their machine. Sorry about that. I've nevertheless gathered some questions/recommendations below. Are you using a virtualenv to avoid dependencies issues (quite common without it)? FYI, this is what I've done to check everything is fine on my Mac (Intel) (you do not have to do this in the tmp folder, it is just for the test to ensure that you start from a fresh and clean situation):
Everything ran fine. I can for instance succesfully run (I did not let it finish, but it started to download deps):
Please follow exactly same instructions and report. FYI, to clean-up afterward you have to:
|
BTW, this scraper use for now Python 3.8, so please use this version to avoid any other strange behavior linked to Python version, we probably never tested the scraper with 3.9 and 3.11 for instance. |
Hello, the following is the log after I followed your instructions and downgraded the python version to 3.8.17
|
I should have figured out the problem, when I run it again on my x86 mac everything seems to be fine. So I think this may be because of the architecture, Intel x86 supports it, but the arm M1 of the Apple chip is not enough |
@natamox this makes much more sense, thank you for testing again on x86 |
@benoit74 Thank you for your help! But I have another question for you, is the entry file for this project main.py? I tried to run the following code
Then it throws an error,on a machine running on the x86 architecture.
|
Yes, this is the entry. |
I'm a bit surprised @kelson42 did not recognize the pattern. It's not the first ticket of this kind. Indeed sotoki doesn't support Apple M1 (because of its main dependency). Actually, we few scrapers does at the moment. I advise you take a look at our Dockerfile, it will instruct you on whatever is needed and it's also a good way to use sotoki on unsupported platforms. We provide images (ghcr.io/openzim/sotoki) but you can build and run from any plaform running Docker. |
#287
The text was updated successfully, but these errors were encountered: