I'm running this command: airbyte-ci connectors --...
# ask-ai
a
I'm running this command: airbyte-ci connectors --name=source-azure-costs test And I got this error message: [6.18s] ERROR directory(path: "/") │ │ █ [0.81s] ERROR exec poetry run pytest integration_tests -c pyproject.toml -s │ │ ┃ Skipping virtualenv creation, as specified in config file.
k
The error message you’re seeing:
Copy code
ERROR exec poetry run pytest integration_tests -c pyproject.toml -s ┃ Skipping virtualenv creation, as specified in config file.
suggests that there is an issue when running tests with Poetry, specifically with the virtual environment setup. Based on the knowledge sources, here are some things to check: 1. Poetry Virtual Environment: Poetry may be configured to skip creating a virtual environment, which can cause issues if dependencies are not available globally. Make sure you are running the command inside an active Poetry-managed virtual environment, or adjust your Poetry configuration to allow virtualenv creation. 2. Dependencies: Ensure all dependencies are installed. From your connector directory, run:
Copy code
poetry install
This will install all dependencies specified in your
pyproject.toml
. 3. Python Version: Airbyte connectors often require a specific Python version (commonly 3.9 or 3.10). Using a different version can cause issues with dependencies or test execution. Check your Python version and align it with the connector requirements. For example, some issues have been resolved by switching to Python 3.9.11 or upgrading
pytest
to >=6.2.5 if using Python 3.10 [ERROR with Standard Tests / Unit Tests](https://discuss.airbyte.io/t/1023). 4. Running Tests Manually: If the
airbyte-ci
command fails, you can try running the tests manually to get more detailed error output:
Copy code
poetry run pytest integration_tests -c pyproject.toml -s
This may help you identify missing dependencies or misconfigurations. 5. airbyte-ci Deprecation: Note that the
airbyte-ci
tool is deprecated and being phased out. Most commands now have equivalents in Poe the Poet. Consider using
poe
for running tests if your project supports it [airbyte-ci (deprecated)](https://docs.airbyte.com/platform/connector-development/local-connector-development#airbyte-ci-deprecated). If after these steps the error persists, please provide the full error output from the pytest command for more targeted troubleshooting. The knowledge sources do not provide a specific solution for this exact error, but the above steps are the recommended troubleshooting path based on Airbyte’s documentation and common issues. Let me know if you need more detailed help with any of these steps!