Skip to content

[BUG] Can't compile on OSX #473

@Scoubi

Description

@Scoubi

Describe the bug
Library conflict.

ERROR: Cannot install splunk-eventgen and splunk-eventgen==7.2.1 because these package versions have conflicting dependencies.

The conflict is caused by:
    splunk-eventgen 7.2.1 depends on urllib3==1.24.2
    requests 2.19.1 depends on urllib3<1.24 and >=1.21.1
    splunk-eventgen 7.2.1 depends on urllib3==1.24.2
    requests 2.19.0 depends on urllib3<1.24 and >=1.21.1
    splunk-eventgen 7.2.1 depends on urllib3==1.24.2
    requests 2.18.4 depends on urllib3<1.23 and >=1.21.1

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

To Reproduce
Steps to reproduce the behavior:

$ git clone https://www.github.com/splunk/eventgen.git
$ cd eventgen
$ poetry --version
Poetry (version 1.4.2)
$ poetry build
Building splunk_eventgen (7.2.1)
  - Building sdist
  - Built splunk_eventgen-7.2.1.tar.gz
  - Building wheel
  - Built splunk_eventgen-7.2.1-py3-none-any.whl
$ pip install dist/splunk_eventgen-7.2.1.tar.gz
ERROR: Cannot install splunk-eventgen and splunk-eventgen==7.2.1 because these package versions have conflicting dependencies.

The conflict is caused by:
    splunk-eventgen 7.2.1 depends on urllib3==1.24.2
    requests 2.19.1 depends on urllib3<1.24 and >=1.21.1
    splunk-eventgen 7.2.1 depends on urllib3==1.24.2
    requests 2.19.0 depends on urllib3<1.24 and >=1.21.1
    splunk-eventgen 7.2.1 depends on urllib3==1.24.2
    requests 2.18.4 depends on urllib3<1.23 and >=1.21.1

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts


**Expected behavior**
I expect the package to compile

**Actual behavior**
Package do not compile because of urllib version requirement conflicts

**Screenshots**
All terminal out put

**Sample files and eventgen.conf file**
Did not modify


**Additional context**
Running on OSX.
Install poetry via `brew`

I tried to change urllib3 version pin to 1.14 in both `splunk_eventgen/lib/requirements.txt` and `./poetry.lock` with no success

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugMalfunctioning Eventgen due to potential bug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions