Augustin YAICH
02/10/2023, 10:47 AMdagster-cloud serverless deploy-python-executable --location-name dagster-media --package-name dagster_media
Unfortunatly I encounter this error:
Building Python executable for directory C:\Users\ayaich\Documents\Code\media-orchestration\dagster_media for Python 3.8.
ERROR:root:Failed to build deps.pex
ERROR:root:
ERROR:root:Traceback (most recent call last):
File "C:\Users\ayaich\Anaconda3\envs\dagster_serverless\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\ayaich\Anaconda3\envs\dagster_serverless\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\ayaich\Anaconda3\envs\dagster_serverless\lib\site-packages\pex\__main__.py", line 6, in <module>
from pex.bin import pex
File "C:\Users\ayaich\Anaconda3\envs\dagster_serverless\lib\site-packages\pex\bin\pex.py", line 29, in <module>
from pex.interpreter_constraints import InterpreterConstraints
File "C:\Users\ayaich\Anaconda3\envs\dagster_serverless\lib\site-packages\pex\interpreter_constraints.py", line 13, in <module>
from pex.interpreter import PythonInterpreter
File "C:\Users\ayaich\Anaconda3\envs\dagster_serverless\lib\site-packages\pex\interpreter.py", line 26, in <module>
from pex.pep_508 import MarkerEnvironment
File "C:\Users\ayaich\Anaconda3\envs\dagster_serverless\lib\site-packages\pex\pep_508.py", line 6, in <module>
from pex.platforms import Platform
File "C:\Users\ayaich\Anaconda3\envs\dagster_serverless\lib\site-packages\pex\platforms.py", line 12, in <module>
from pex.atomic_directory import atomic_directory
File "C:\Users\ayaich\Anaconda3\envs\dagster_serverless\lib\site-packages\pex\atomic_directory.py", line 7, in <module>
import fcntl
ModuleNotFoundError: No module named 'fcntl'
After a quick search, I found that fcntl module is not available on Windows...
Any idea on how to to get around this error?ben
02/10/2023, 5:20 PM--build-in-linux-container
flag which will build the PEX in a linux container, that may fix your issue. Alternatively, you can use the deploy
(rather than deploy-python-executable
) command to build a Docker image instead of a PEX.Augustin YAICH
02/10/2023, 6:33 PM