Skip to content
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

[Bug]: The Linux installation script under Ubuntu reports an error cloudscraper? #190

Open
1 task done
suyi1117 opened this issue Mar 2, 2023 · 3 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@suyi1117
Copy link

suyi1117 commented Mar 2, 2023

What happened?

Traceback (most recent call last):
File "/root/CapsuleFarmerEvolved/./src/main.py", line 1, in
from DataProviderThread import DataProviderThread
File "/root/CapsuleFarmerEvolved/src/DataProviderThread.py", line 4, in
import cloudscraper
ModuleNotFoundError: No module named 'cloudscraper'

What should happen?

Request an answer to resolve

Capsule Farmer Version

v1.4

Operating System

Other (Non Windows are not natively supported)

Operating System Version

Linux version 5.15.0-1029-oracle (buildd@bos01-arm64-023) (gcc (Ubuntu 9.4.0-1ubuntu120.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #3520.04.1-Ubuntu SMP Wed Jan 25 10:16:03 UTC 2023
Python 3.10

Relevant log output

Traceback (most recent call last):
  File "/root/CapsuleFarmerEvolved/./src/main.py", line 1, in <module>
    from DataProviderThread import DataProviderThread
  File "/root/CapsuleFarmerEvolved/src/DataProviderThread.py", line 4, in <module>
    import cloudscraper
ModuleNotFoundError: No module named 'cloudscraper'

Notes

No response

My issue is not a question

  • I acknowledge that this issue is not a question or feature request.
@suyi1117 suyi1117 added the bug Something isn't working label Mar 2, 2023
@XOYZ69
Copy link

XOYZ69 commented Mar 2, 2023

As the error message says you need to install the missing modules. There are 2 ways of running the script.

  • The first is via pyenv so that all dependencies will be automatically installed
  • And the second one is to install the modules one by one (that's wat I do)

So if the Error ModuleNotFoundError: No module named 'cloudscraper' happens u just need to install the missing module:

  • pip3 install cloudscraper

It is either pip or pip3 depending on your installation and configuration.

@realshiyu
Copy link

I also ran into this problem with centos7.
What I got wrong is python‘s version.My server has installed python2.7 and python3.6.
I installed python3.11 by source code and configured the python_path.And then the problem was resolved.
Hope it helps.

@suyi1117
Copy link
Author

suyi1117 commented Mar 4, 2023

tks! QAQ

@suyi1117 suyi1117 changed the title [Bug]: The Linux installation script under Ubuntu reports an error [Bug]: The Linux installation script under Ubuntu reports an error cloudscraper? Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants