[eventhub] Tests unable to run upon clean clone of the repo
See original GitHub issue- azure-eventhub:
- commit dac078ea22e5eee9caf6809083ff557cdf549e3c:
- MacOS 10.15.7
- 3.8.6:
Describe the bug Cloning the repo and running the tests does not work.
To Reproduce Steps to reproduce the behavior: $ git clone https://github.com/Azure/azure-sdk-for-python.git $ cd sdk/eventhub/azure-eventhub $ python -m pip install --upgrade pip $ python -m venv .venv $ . .venv/bin/activate (.venv) $ pip install tox-monorepo (.venv) $ cd sdk/eventhub/azure-eventhub (.venv) $ tox -c …/…/…/eng/tox/tox.ini
Returns errors, see below.
Expected behavior I would expect tox to run the tests in stead of complaining about conflicting dependencies.
Screenshots N/A
Additional context
(.venv) $ tox -c ../../../eng/tox/tox.ini
whl create: /Users/lricls/projects/azure-sdk-for-python/sdk/eventhub/azure-eventhub/.tox/whl
whl installdeps: -rdev_requirements.txt, -r../../../eng/test_tools.txt
ERROR: invocation failed (exit code 1), logfile: /Users/lricls/projects/azure-sdk-for-python/sdk/eventhub/azure-eventhub/.tox/whl/log/whl-1.log
======================================================================================================== log start =========================================================================================================
Ignoring pytest: markers 'python_version == "2.7"' don't match your environment
Ignoring pylint: markers 'python_version < "3.4"' don't match your environment
Obtaining file:///Users/lricls/projects/azure-sdk-for-python/tools/azure-sdk-tools (from -r dev_requirements.txt (line 1))
Processing /Users/lricls/projects/azure-sdk-for-python/sdk/core/azure-core
Obtaining file:///Users/lricls/projects/azure-sdk-for-python/sdk/identity/azure-identity (from -r dev_requirements.txt (line 3))
Obtaining file:///Users/lricls/projects/azure-sdk-for-python/sdk/eventhub/azure-mgmt-eventhub (from -r dev_requirements.txt (line 4))
Obtaining file:///Users/lricls/projects/azure-sdk-for-python/sdk/resources/azure-mgmt-resource (from -r dev_requirements.txt (line 5))
Processing /Users/lricls/projects/azure-sdk-for-python/tools/azure-devtools
Processing /Users/lricls/projects/azure-sdk-for-python/tools/azure-sdk-tools
ERROR: Cannot install azure-sdk-tools 0.0.0 (from /Users/lricls/projects/azure-sdk-for-python/tools/azure-sdk-tools) because these package versions have conflicting dependencies.
The conflict is caused by:
The user requested azure-sdk-tools 0.0.0 (from /Users/lricls/projects/azure-sdk-for-python/tools/azure-sdk-tools)
The user requested azure-sdk-tools 0.0.0 (from /Users/lricls/projects/azure-sdk-for-python/tools/azure-sdk-tools)
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/user_guide/#fixing-conflicting-dependencies
========================================================================================================= log end ==========================================================================================================
ERROR: could not install deps [-rdev_requirements.txt, -r../../../eng/test_tools.txt]; v = InvocationError('/Users/lricls/projects/azure-sdk-for-python/sdk/eventhub/azure-eventhub/.tox/whl/bin/python -m pip install -rdev_requirements.txt -r../../../eng/test_tools.txt --cache-dir /Users/lricls/projects/azure-sdk-for-python/eng/tox/../.tox_pip_cache_whl', 1)
sdist create: /Users/lricls/projects/azure-sdk-for-python/sdk/eventhub/azure-eventhub/.tox/sdist
sdist installdeps: -rdev_requirements.txt, -r../../../eng/test_tools.txt
ERROR: invocation failed (exit code 1), logfile: /Users/lricls/projects/azure-sdk-for-python/sdk/eventhub/azure-eventhub/.tox/sdist/log/sdist-1.log
======================================================================================================== log start =========================================================================================================
Ignoring pytest: markers 'python_version == "2.7"' don't match your environment
Ignoring pylint: markers 'python_version < "3.4"' don't match your environment
Obtaining file:///Users/lricls/projects/azure-sdk-for-python/tools/azure-sdk-tools (from -r dev_requirements.txt (line 1))
Processing /Users/lricls/projects/azure-sdk-for-python/sdk/core/azure-core
Obtaining file:///Users/lricls/projects/azure-sdk-for-python/sdk/identity/azure-identity (from -r dev_requirements.txt (line 3))
Obtaining file:///Users/lricls/projects/azure-sdk-for-python/sdk/eventhub/azure-mgmt-eventhub (from -r dev_requirements.txt (line 4))
Obtaining file:///Users/lricls/projects/azure-sdk-for-python/sdk/resources/azure-mgmt-resource (from -r dev_requirements.txt (line 5))
Processing /Users/lricls/projects/azure-sdk-for-python/tools/azure-devtools
Processing /Users/lricls/projects/azure-sdk-for-python/tools/azure-sdk-tools
ERROR: Cannot install azure-sdk-tools 0.0.0 (from /Users/lricls/projects/azure-sdk-for-python/tools/azure-sdk-tools) because these package versions have conflicting dependencies.
The conflict is caused by:
The user requested azure-sdk-tools 0.0.0 (from /Users/lricls/projects/azure-sdk-for-python/tools/azure-sdk-tools)
The user requested azure-sdk-tools 0.0.0 (from /Users/lricls/projects/azure-sdk-for-python/tools/azure-sdk-tools)
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/user_guide/#fixing-conflicting-dependencies
========================================================================================================= log end ==========================================================================================================
ERROR: could not install deps [-rdev_requirements.txt, -r../../../eng/test_tools.txt]; v = InvocationError('/Users/lricls/projects/azure-sdk-for-python/sdk/eventhub/azure-eventhub/.tox/sdist/bin/python -m pip install -rdev_requirements.txt -r../../../eng/test_tools.txt --cache-dir /Users/lricls/projects/azure-sdk-for-python/eng/tox/../.tox_pip_cache_sdist', 1)
_________________________________________________________________________________________________________ summary __________________________________________________________________________________________________________
ERROR: whl: could not install deps [-rdev_requirements.txt, -r../../../eng/test_tools.txt]; v = InvocationError('/Users/lricls/projects/azure-sdk-for-python/sdk/eventhub/azure-eventhub/.tox/whl/bin/python -m pip install -rdev_requirements.txt -r../../../eng/test_tools.txt --cache-dir /Users/lricls/projects/azure-sdk-for-python/eng/tox/../.tox_pip_cache_whl', 1)
ERROR: sdist: could not install deps [-rdev_requirements.txt, -r../../../eng/test_tools.txt]; v = InvocationError('/Users/lricls/projects/azure-sdk-for-python/sdk/eventhub/azure-eventhub/.tox/sdist/bin/python -m pip install -rdev_requirements.txt -r../../../eng/test_tools.txt --cache-dir /Users/lricls/projects/azure-sdk-for-python/eng/tox/../.tox_pip_cache_sdist', 1)
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Frequently asked questions - Azure Event Hubs
This article provides a list of frequently asked questions (FAQ) for Azure Event Hubs and their answers.
Read more >The listener for function was unable to start. Why?
On my cases it ssems to happened if you use a timer trigger and change many on them , make duplicates or switch...
Read more >Orchestrate Azure Event Hubs via Kubernetes - Abhishek's blog
Deploy apps to Kubernetes which use the Azure Event Hubs cluster. All the artefacts are available on this GitHub repo https://github.com/abhirockzz/eventhubs- ...
Read more >Azure.Messaging.EventHubs 5.7.5 - NuGet
Event Hubs namespace with an Event Hub: To interact with Azure Event Hubs, ... C# 8.0: The Azure Event Hubs client library makes...
Read more >Frontend testing standards and style guidelines - GitLab Docs
If you are looking for a guide on Vue component testing, you can jump right away to this section. Jest. We use Jest...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@seankane-msft - looks like
pip install tox-monorepoalso installstox, so I don’t believe that’s the root of the problem 🤔I’ve been out of office. I’m not sure if you need anything from me at this point? But it’s also been a few months since I reported the issue, so I think it is well in your hands.