Skip to content

fix: migrate chatbot module from PyQt5 to PyQt6 and resolve merge con…#573

Open
apurvafx wants to merge 2 commits into
FOSSEE:eSim-Chat-Bot-Semester-Long-Internship_Autumn-2025from
apurvafx:eSim-Chat-Bot-Semester-Long-Internship_Autumn-2025
Open

fix: migrate chatbot module from PyQt5 to PyQt6 and resolve merge con…#573
apurvafx wants to merge 2 commits into
FOSSEE:eSim-Chat-Bot-Semester-Long-Internship_Autumn-2025from
apurvafx:eSim-Chat-Bot-Semester-Long-Internship_Autumn-2025

Conversation

@apurvafx

Copy link
Copy Markdown

Related Issues

Chatbot module was using PyQt5 which causes import errors on systems with only PyQt6 installed. Also resolved merge conflicts between local and remote branch.

Purpose

Migrate the eSim AI Chatbot module from PyQt5 to PyQt6 to ensure compatibility with modern PyQt6-based environments and resolve branch merge conflicts.

Approach

  • Replaced all from PyQt5 imports with from PyQt6 in chatbot module files
  • Fixed exec_()exec() (PyQt6 removed the underscore version)
  • Fixed QAction import path (moved from QtWidgets to QtGui in PyQt6)
  • Resolved merge conflict in chatbot_thread.py — retained PyQt6 import while preserving search_knowledge import
  • Verified successful import of chatbot module on Python 3.10 (Windows)

Files Changed

  • src/chatbot/chatbot_thread.py
  • src/chatbot/image_handler.py
  • src/frontEnd/Chatbot.py

Testing

Tested on Windows 10, Python 3.10 — chatbot module imports successfully with no PyQt6-related errors.

Screenshot 2026-06-12 154115

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

Successfully merging this pull request may close these issues.

1 participant