Cloudmare icon indicating copy to clipboard operation
Cloudmare copied to clipboard

I cant run the script

Open Bloom080 opened this issue 10 months ago • 3 comments

When i try and run the script because when going to the folder by typing "python Cloudmare.py -h or python Cloudmare.py -hh" it says that i need to install a module manually... And i don't know how to install it ;(

Bloom080 avatar Feb 16 '25 10:02 Bloom080

Hey @Bloom080 Even I faced the same issue.

Debugging and Fixing Process of Cloudmare

During the debugging and fixing process of Cloudmare, several issues were identified and resolved:

1. thirdparty.urllib3.packages.six.moves Not Found

Issue: Cloudmare was trying to import thirdparty.urllib3.packages.six.moves, which does not exist in modern Python libraries. urllib3 and six are standalone packages and do not require a thirdparty reference.

Fix Applied:

  • Replaced from thirdparty.urllib3.packages.six.moves import ... with from six.moves import ...
  • Ensured urllib3 and six were properly installed:
    pip3 install --force-reinstall urllib3 six requests
    

2. thirdparty.colorama Not Found

Issue: Cloudmare attempted to import thirdparty.colorama, which is incorrect. colorama is a standard package and should be imported directly.

Fix Applied:

  • Replaced from thirdparty.colorama import Fore, Style with from colorama import Fore, Style
  • Installed colorama manually:
    pip3 install colorama
    

3. Generic thirdparty Module Not Found

Issue: Cloudmare was still trying to load a non-existent thirdparty package. This caused repeated warnings and failures.

Fix Applied:

  • Removed all references to thirdparty across the Cloudmare directory.
  • Automated the fix using a script:
    python3 fix_thirdparty.py
    
  • Deleted the unused thirdparty directory:
    rm -rf ~/Documents/tools/Cloudmare/thirdparty/
    

4. IndentationError in sublist3r.py

Issue: After removing thirdparty, an empty try block remained, causing an IndentationError.

Fix Applied:

  • Opened sublist3r.py and ensured the try block was not empty:
    try:
        pass  # Placeholder to prevent empty block
    except Exception as e:
        print(f"Error: {e}")
    

Final Steps & Verification

After applying all fixes:

  • Cleared Python cache:
    find ~/Documents/tools/Cloudmare/ -name "__pycache__" -type d -exec rm -r {} +
    
  • Re-ran Cloudmare to confirm functionality:
    python3 Cloudmare.py -h
    

Cloudmare should now function correctly. Let me know if you encounter further issues.

DevVaibhav07 avatar Mar 05 '25 16:03 DevVaibhav07

Guys, if you could get this script to work, could you be so kind to find the real address for the following link? https://cdn1.waterfox.net/waterfox/releases/6.5.6/WINNT_x86_64/Waterfox%20Setup%206.5.6.exe

sergeevabc avatar Apr 16 '25 22:04 sergeevabc

Check my PR for the fix

4n4l1st-ch4rl3s avatar Jul 24 '25 12:07 4n4l1st-ch4rl3s