24 lines
No EOL
624 B
Bash
Executable file
24 lines
No EOL
624 B
Bash
Executable file
#!/bin/bash
|
|
# Script to fix the jose module conflict
|
|
|
|
# Activate virtual environment (adjust if needed)
|
|
source ../venv/bin/activate
|
|
|
|
# Show current package information
|
|
echo "Current jose packages:"
|
|
pip list | grep jose
|
|
|
|
# Uninstall the problematic jose package (if it exists)
|
|
echo "Uninstalling old jose package..."
|
|
pip uninstall -y jose
|
|
|
|
# Install only python-jose
|
|
echo "Installing python-jose properly..."
|
|
pip uninstall -y python-jose
|
|
pip install python-jose==3.3.0
|
|
|
|
# Update requirements.txt
|
|
echo "Updating requirements.txt..."
|
|
pip freeze > requirements.txt
|
|
|
|
echo "Fix complete. Please try running the application again." |