talaat mohamed
02/08/2025, 3:19 PM2025-02-08 17:17:54 - INFO - FileNotFoundError: [Errno 2] No such file or directory: ''
Traceback (most recent call last):
File "C:\Users\Talaat\Documents\Github\test-key-vault\.venv\lib\site-packages\proxytypes.py", line 252, in __subject__
return self.cache
File "C:\Users\Talaat\Documents\Github\test-key-vault\.venv\lib\site-packages\proxytypes.py", line 176, in __getattribute__
return _oga(self, attr)
AttributeError: 'JsonRef' object has no attribute 'cache'
I get this error when running the following code:
import airbyte as ab
github = ab.get_source(
"source-github",
install_if_missing=True,
config={
"credentials": {
"personal_access_token": "ghp_********",
"option_title": "PAT Credentials"
},
"repositories": ["TalaatHasanin/mage-ai"]
}
)
github.check()
print(github.select_all_streams())
kapa.ai
02/08/2025, 3:19 PM"repositories": ["TalaatHasanin/mage-ai"]
) appears to be correct. It should be in the format organization/repository
. 3. Error handling: The error you're seeing (FileNotFoundError: [Errno 2] No such file or directory: ''
) suggests that the connector is trying to access a file that doesn't exist. This could be related to how the connector is installed or configured in your local environment. 4. Installation: You're using install_if_missing=True
, which should automatically install the connector if it's not present. However, there might be an issue with the installation process. To troubleshoot this issue, you could try the following: 1. Ensure that you have the latest version of the Airbyte Python SDK installed. 2. Try manually installing the GitHub source connector before running your code: pip install airbyte-source-github
3. Check if there are any specific environment variables or configuration files that need to be set up for your local environment. If the issue persists, it might be helpful to check the [Airbyte GitHub repository](https://github.com/airbytehq/airbyte/issues) for similar issues or to raise a new issue with the detailed error message and your configuration (make sure to remove any sensitive information like your PAT before posting). Unfortunately, the provided knowledge sources don't contain enough information to pinpoint the exact cause of your specific error. If you continue to face issues, you might want to reach out to the Airbyte community through their [Slack channel or GitHub discussions](https://docs.airbyte.com/deploying-airbyte/troubleshoot-deploy#additional-resources) for more personalized assistance.