Aghababaei / PhD-Seeker

Finding latest fully funded PhD positions for international students through web scraping
GNU General Public License v3.0
84 stars 11 forks source link

Version Conflict between h11 and httpcore Packages #19

Open shure-dev opened 2 months ago

shure-dev commented 2 months ago

Issue: Version Conflict between h11 and httpcore Packages

Description

I encountered a version conflict between the h11 and httpcore packages while trying to run the phdseeker tool in my virtual environment. The error message indicates that the installed version of h11 (0.8.1) is incompatible with httpcore, which requires h11<0.15,>=0.13.

Steps to Reproduce

  1. Activate the virtual environment.
  2. Run the command:
    phdseeker -k 'Computer Science, Machine Learning'
  3. Observe the following error:

    Traceback (most recent call last):
     File "/path/to/myenv/lib/python3.7/site-packages/pkg_resources/__init__.py", line 584, in _build_master
       ws.require(__requires__)
     File "/path/to/myenv/lib/python3.7/site-packages/pkg_resources/__init__.py", line 901, in require
       needed = self.resolve(parse_requirements(requirements))
     File "/path/to/myenv/lib/python3.7/site-packages/pkg_resources/__init__.py", line 792, in resolve
       raise VersionConflict(dist, req).with_context(dependent_req)
    pkg_resources.ContextualVersionConflict: (h11 0.8.1 (/path/to/myenv/lib/python3.7/site-packages), Requirement.parse('h11<0.15,>=0.13'), {'httpcore'})

Expected Behavior

The command should run successfully without any version conflict between the h11 and httpcore packages.

Actual Behavior

The command fails with a pkg_resources.ContextualVersionConflict error, indicating a version conflict between the h11 and httpcore packages.

Environment

•   Python version: 3.7
•   Operating System: Mac OS
•   h11 version: 0.8.1
•   httpcore version: 0.17.3

Suggested Resolution

It seems that the issue arises due to an incompatible version of h11 installed in the environment. A potential solution could involve either:

  1. Updating the phdseeker tool or its dependencies to ensure compatibility with newer versions of h11 and httpcore.
  2. Pinning the h11 package to a compatible version that satisfies both phdseeker and httpcore requirements.

I hope this information helps in resolving the issue. Please let me know if additional details are required.