You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have set up prefect 2.6.7 in Windows (Python 3.10.5). I try to run the example flow from the tutorial inside a custom docker-container which I set up based on the official prefecthq/prefect:2.6.7-python3.10 image.
But when I run the deyploment I get an error from cloudpickle:
09:23:05.272 | INFO | prefect.agent - Submitting flow run
'eb8649b6-be2b-41b3-95f7-40635b855e80'
09:23:06.381 | INFO | prefect.infrastructure.docker-container - Creating Docker
container 'faithful-dodo'...
09:23:06.570 | INFO | prefect.infrastructure.docker-container - Docker container
'faithful-dodo' has status 'created'
09:23:07.191 | INFO | prefect.agent - Completed submission of flow run
'eb8649b6-be2b-41b3-95f7-40635b855e80'
09:23:07.604 | INFO | prefect.infrastructure.docker-container - Docker container
'faithful-dodo' has status 'running'
Traceback (most recent call last):
File "/usr/local/lib/python3.10/runpy.py", line 187, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/local/lib/python3.10/runpy.py", line 110, in _get_module_details
__import__(pkg_name)
File "/usr/local/lib/python3.10/site-packages/prefect/__init__.py", line 24, in <module>
from prefect.states import State
File "/usr/local/lib/python3.10/site-packages/prefect/states.py", line 14, in <module>
from prefect.deprecated.data_documents import (
File "/usr/local/lib/python3.10/site-packages/prefect/deprecated/data_documents.py", line 17, in <module>
import cloudpickle
File "/usr/local/lib/python3.10/site-packages/cloudpickle/__init__.py", line 3, in <module>
from cloudpickle.cloudpickle import *
File "/usr/local/lib/python3.10/site-packages/cloudpickle/cloudpickle.py", line 145, in <module>
_cell_set_template_code = _make_cell_set_template_code()
File "/usr/local/lib/python3.10/site-packages/cloudpickle/cloudpickle.py", line 126, in _make_cell_set_template_code
return types.CodeType(
TypeError: 'bytes' object cannot be interpreted as an integer
09:23:08.191 | INFO | prefect.infrastructure.docker-container - Docker container
'faithful-dodo' has status 'exited'
09:23:08.246 | INFO | prefect.infrastructure.docker-container - Docker container
'faithful-dodo' has status 'exited'
I suspect the problem to be with the transfer of the flow-code from the agent (running on windows) to the python-runtime inside the docker container. Can anyone help me to debug this issue?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I have set up prefect 2.6.7 in Windows (Python 3.10.5). I try to run the example flow from the tutorial inside a custom docker-container which I set up based on the official
prefecthq/prefect:2.6.7-python3.10
image.But when I run the deyploment I get an error from cloudpickle:
I suspect the problem to be with the transfer of the flow-code from the agent (running on windows) to the python-runtime inside the docker container. Can anyone help me to debug this issue?
Beta Was this translation helpful? Give feedback.
All reactions