airbytehq / PyAirbyte

PyAirbyte brings the power of Airbyte to every Python developer.
https://docs.airbyte.com/pyairbyte
Other
234 stars 41 forks source link

docker_image=True fails on Windows (for Slack connector) #431

Open EgorKraevTransferwise opened 1 month ago

EgorKraevTransferwise commented 1 month ago

When I try to run the PyAirbyte Slack connector on Windows with docker_image=True to avoid creating local venv with potential Windows gotchas there, I get the following error messsage, suggesting Unix-specific path handling (invalid mode: \Users\EGORKR~1\AppData\Local\Temp). The log file referred to below is empty.

...
2e228109a974: Download complete
Digest: sha256:a92d8ce61660a1617152769e354f11f4b2c13b61ad28ffcd86a221e8e66ae3f2
Status: Downloaded newer image for airbyte/source-slack:latest
docker: Error response from daemon: invalid mode: \Users\EGORKR~1\AppData\Local\Temp.
See 'docker run --help'.
Traceback (most recent call last):
  File "C:\Users\EgorKraev\miniconda3\envs\motleycrew3.10\lib\contextlib.py", line 153, in __exit__
    self.gen.throw(typ, value, traceback)
  File "C:\Users\EgorKraev\miniconda3\envs\motleycrew3.10\lib\site-packages\airbyte\_util\temp_files.py", line 42, in as_temp_files
    yield [file.name for file in temp_files]
  File "C:\Users\EgorKraev\miniconda3\envs\motleycrew3.10\lib\site-packages\airbyte\_connector_base.py", line 336, in check
    raise exc.AirbyteConnectorCheckFailedError(
airbyte.exceptions.AirbyteConnectorCheckFailedError: Connector check failed. (AirbyteConnectorCheckFailedError)
------------------------------------------------------------
AirbyteConnectorCheckFailedError: Connector check failed.
    Please review the log file for more information.
    Connector Name: 'source-slack'
    Log file: C:\Users\EGORKR~1\AppData\Local\Temp\airbyte\logs\source-slack\source-slack-log-JB1G0YNNV.log
------------------------------------------------------------
Caused by: Connector failed. (AirbyteConnectorFailedError)
------------------------------------------------------------
AirbyteConnectorFailedError: Connector failed.
    Please review the log file for more information.
    Connector Name: 'source-slack'
    Exit Code: 125
    Log file: C:\Users\EGORKR~1\AppData\Local\Temp\airbyte\logs\source-slack\source-slack-log-JB1G0YNNV.log

Process finished with exit code 1