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

Error when deploying to replicate #323

Open
platform-kit opened this issue May 12, 2024 · 2 comments
Open

Error when deploying to replicate #323

platform-kit opened this issue May 12, 2024 · 2 comments
Labels
bug Something don't work as expected.

Comments

@platform-kit
Copy link

Hi there. I'm getting the following error when running cog build (before deploying to Replicaate)

Validating model schema...

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/root/.pyenv/versions/3.11.9/lib/python3.11/site-packages/cog/command/openapi_schema.py", line 21, in <module>
    raise CogError(app.state.setup_result.logs)
cog.errors.CogError: Error while loading predictor:

Traceback (most recent call last):
  File "/root/.pyenv/versions/3.11.9/lib/python3.11/site-packages/cog/server/http.py", line 131, in create_app
    predictor = load_predictor_from_ref(predictor_ref)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/3.11.9/lib/python3.11/site-packages/cog/predictor.py", line 184, in load_predictor_from_ref
    spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/src/predict.py", line 29, in <module>
    from fooocusapi.parameters import ImageGenerationParams
  File "/src/fooocusapi/parameters.py", line 5, in <module>
    from fooocusapi.models.common.requests import AdvancedParams
  File "/src/fooocusapi/models/common/requests.py", line 9, in <module>
    from modules.config import (
ModuleNotFoundError: No module named 'modules'

Any tips? Not sure why "modules" is not registering.

@mrhan1993 mrhan1993 added the bug Something don't work as expected. label May 13, 2024
@mrhan1993
Copy link
Owner

use tag v0.4.0.3 , it is work well

@mrhan1993
Copy link
Owner

try branch cog-main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something don't work as expected.
Projects
None yet
Development

No branches or pull requests

2 participants