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

Fix installation error #1897

Open
l0n3m4n opened this issue Nov 2, 2024 · 1 comment
Open

Fix installation error #1897

l0n3m4n opened this issue Nov 2, 2024 · 1 comment

Comments

@l0n3m4n
Copy link

l0n3m4n commented Nov 2, 2024

#!/bin/bash
if ! command -v pip &> /dev/null
then
    echo "pip not found, installing pip..."
    if command -v apt &> /dev/null; then
        sudo apt update && sudo apt install -y python3-pip
    elif command -v yum &> /dev/null; then
        sudo yum install -y python3-pip
    else
        echo "Please install pip manually."
        exit 1
    fi
fi

echo "pip is installed."
cat <<EOL > requirements.txt
adblockparser==0.7
dnspython==2.1.0
ExifRead==2.3.2
CherryPy==18.6.1
cherrypy-cors==1.6
Mako==1.1.5
beautifulsoup4==4.10.0
lxml==4.6.3
netaddr==0.8.0
pysocks==1.7.1
requests==2.26.0
ipwhois==1.1.0
ipaddr==2.2.0
phonenumbers==8.12.34
pygexf==0.2.2
PyPDF2==1.26.0
python-whois==0.7.3
secure==0.3.0
pyOpenSSL==21.0.0
python-docx==0.8.11
python-pptx==0.6.21
networkx==2.6.3
cryptography==3.4.8
publicsuffixlist==0.7.9
openpyxl==3.0.9
pyyaml==5.4.1
EOL

echo "requirements.txt file created."
echo "Installing packages..."
pip install -r requirements.txt 
if [ $? -eq 0 ]; then
    echo "All packages installed successfully."
else
    echo "Some packages failed to install. Please check the output for errors."
fi
@l0n3m4n
Copy link
Author

l0n3m4n commented Nov 2, 2024

I tried to install the packages on a fresh Ubuntu latest, but I encountered errors during installation when running pip install -r requirements.txt. here's the updated versions lxml==5.3.0 and CherryPy==18.10.0

nctsiridis pushed a commit that referenced this issue Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant