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: chromedriver.exe Hardcoded in site-packages/lib_resume_builder_AIHawk/utils.py Causes Compatibility Issues on macOS #405

Open
udaylunawat opened this issue Sep 19, 2024 · 0 comments

Comments

@udaylunawat
Copy link

Bug: chromedriver.exe Hardcoded in lib_resume_builder_AIHawk/utils.py Causes Compatibility Issues on macOS

Description:

The current implementation of the create_driver_selenium() function in lib_resume_builder_AIHawk/utils.py contains the following line:

chromedriver_path = os.path.join(folder, "chromedriver.exe")

This hardcodes the ChromeDriver path to the .exe extension, which causes compatibility issues on macOS, as .exe files are specific to Windows.

Steps to Reproduce:

  1. Clone the repository on a macOS system.
  2. Run the application.
  3. Observe that the application fails to initialize ChromeDriver due to the .exe path being used.

Expected Behavior:

The application should work across different operating systems, including macOS, without requiring manual intervention to change the file extension.

Actual Behavior:

The application crashes on macOS because it cannot find or execute chromedriver.exe.

Proposed Fix:

The line:

chromedriver_path = os.path.join(folder, "chromedriver.exe")

was replaced with:

chromedriver_path = ChromeDriverManager().install()

This allows webdriver-manager to dynamically fetch the appropriate ChromeDriver for the user's operating system, ensuring compatibility across platforms.

Suggested Change:

Replace the hardcoded path with ChromeDriverManager().install() to make the application OS-agnostic.

Additional Context:

This change was made and tested on macOS, resolving the issue.

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