Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flow Run fails when base_image="python:3.7" and prefect_version="0.7.0" are set #1700

Closed
nanseay opened this issue Nov 4, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@nanseay
Copy link

nanseay commented Nov 4, 2019

Description

'RemoteEnvironment' object has no attribute 'on_start'
Traceback (most recent call last):
File "/usr/local/bin/prefect", line 8, in
sys.exit(cli())
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/prefect/cli/execute.py", line 79, in cloud_flow
raise exc
File "/usr/local/lib/python3.7/site-packages/prefect/cli/execute.py", line 71, in cloud_flow
storage=storage, flow_location=storage.flows[flow_data.name]
File "/usr/local/lib/python3.7/site-packages/prefect/environments/execution/remote.py", line 68, in execute
if self.on_start:
AttributeError: 'RemoteEnvironment' object has no attribute 'on_start'

Expected Behavior

My flow to run and complete successfully
(Note: flow ran successfully when run locally)

Reproduction

base_image="python:3.7", prefect_version="0.7.0"

Environment

Core 0.7.0
Python 3.7.3

@nanseay nanseay added the bug Something isn't working label Nov 4, 2019
@joshmeek
Copy link

joshmeek commented Nov 4, 2019

Interesting error because 0.7.0 should have the proper environment callback options. cc @wagoodman wonder if this is somehow related to #1698. Will try to reproduce

@cicdw
Copy link
Member

cicdw commented Nov 8, 2019

Going to close this as it appears to have been a fluke.

@cicdw cicdw closed this as completed Nov 8, 2019
zanieb added a commit that referenced this issue May 12, 2022
Add blurb to virtual environment tutorial on isolating settings per env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants