smol-ai / developer

the first library to let you embed a developer agent in your own app!
https://twitter.com/SmolModels
MIT License
11.81k stars 1.03k forks source link

AttributeError: 'str' object has no attribute 'local_uuid' #102

Open MattLCE opened 1 year ago

MattLCE commented 1 year ago

I was trying to setup on Replit and I got this error. Here is the traceback. It looks like it's coming from modal, right? Traceback (most recent call last) ─────────────────────────╮ │ /home/runner/AttachedElectronicSorting/venv/bin/modal:8 in │ │ │ │ 7 │ sys.argv[0] = re.sub(r'(-script.pyw|.exe)?$', '', sys.argv[0]) │ │ ❱ 8 │ sys.exit(main()) │ │ 9 │ │ │ │ /home/runner/AttachedElectronicSorting/venv/lib/python3.10/site-packages/modal/ma │ │ in.py:6 in main │ │ │ │ 5 def main(): │ │ ❱ 6 │ entrypoint_cli() │ │ 7 │ │ │ │ /home/runner/AttachedElectronicSorting/venv/lib/python3.10/site-packages/click/core │ │ .py:1130 in call │ │ │ │ 1129 │ │ """Alias for :meth:main.""" │ │ ❱ 1130 │ │ return self.main(*args, kwargs) │ │ 1131 │ │ │ │ /home/runner/AttachedElectronicSorting/venv/lib/python3.10/site-packages/typer/core │ │ .py:778 in main │ │ │ │ 777 │ ) -> Any: │ │ ❱ 778 │ │ return _main( │ │ 779 │ │ │ self, │ │ │ │ /home/runner/AttachedElectronicSorting/venv/lib/python3.10/site-packages/typer/core │ │ .py:216 in _main │ │ │ │ 215 │ │ │ with self.make_context(prog_name, args, extra) as ctx: │ │ ❱ 216 │ │ │ │ rv = self.invoke(ctx) │ │ 217 │ │ │ │ if not standalone_mode: │ │ │ │ /home/runner/AttachedElectronicSorting/venv/lib/python3.10/site-packages/click/core │ │ .py:1657 in invoke │ │ │ │ 1656 │ │ │ │ with sub_ctx: │ │ ❱ 1657 │ │ │ │ │ return _process_result(sub_ctx.command.invoke(sub_ctx)) │ │ 1658 │ │ │ │ /home/runner/AttachedElectronicSorting/venv/lib/python3.10/site-packages/click/core │ │ .py:1657 in invoke │ │ │ │ 1656 │ │ │ │ with sub_ctx: │ │ ❱ 1657 │ │ │ │ │ return _process_result(sub_ctx.command.invoke(sub_ctx)) │ │ 1658 │ │ │ │ /home/runner/AttachedElectronicSorting/venv/lib/python3.10/site-packages/click/core │ │ .py:1404 in invoke │ │ │ │ 1403 │ │ if self.callback is not None: │ │ ❱ 1404 │ │ │ return ctx.invoke(self.callback, ctx.params) │ │ 1405 │ │ │ │ /home/runner/AttachedElectronicSorting/venv/lib/python3.10/site-packages/click/core │ │ .py:760 in invoke │ │ │ │ 759 │ │ │ with ctx: │ │ ❱ 760 │ │ │ │ return __callback(*args, *kwargs) │ │ 761 │ │ │ │ /home/runner/AttachedElectronicSorting/venv/lib/python3.10/site-packages/click/deco │ │ rators.py:26 in new_func │ │ │ │ 25 │ def new_func(args, kwargs): # type: ignore │ │ ❱ 26 │ │ return f(get_current_context(), *args, **kwargs) │ │ 27 │ │ │ │ /home/runner/AttachedElectronicSorting/venv/lib/python3.10/site-packages/modal/cli/ │ │ run.py:112 in f │ │ │ │ 111 │ │ │ │ ❱ 112 │ │ with run_stub(blocking_stub, detach=ctx.obj["detach"], show_progress= │ │ 113 │ │ │ if isasync: │ │ │ │ /home/runner/AttachedElectronicSorting/venv/lib/python3.10/site-packages/synchronic │ │ ity/synchronizer.py:497 in proxy_method │ │ │ │ /home/runner/AttachedElectronicSorting/venv/lib/python3.10/site-packages/synchronic │ │ ity/combined_types.py:26 in call │ │ │ │ /nix/store/hd4cc9rh83j291r5539hkf6qd8lgiikb-python3-3.10.8/lib/python3.10/contextli │ │ b.py:199 in aenter │ │ │ │ 198 │ │ try: │ │ ❱ 199 │ │ │ return await anext(self.gen) │ │ 200 │ │ except StopAsyncIteration: │ │ │ │ /home/runner/AttachedElectronicSorting/venv/lib/python3.10/site-packages/modal/runn │ │ er.py:66 in _run_stub │ │ │ │ 65 │ │ │ # Create all members │ │ ❱ 66 │ │ │ await app._create_all_objects(stub._blueprint, output_mgr, post_i │ │ 67 │ │ │ │ /home/runner/AttachedElectronicSorting/venv/lib/python3.10/site-packages/modal/app. │ │ py:100 in _create_all_objects │ │ │ │ 99 │ │ │ │ existing_object_id = self._tag_to_existing_id.get(tag) │ │ ❱ 100 │ │ │ │ created_obj = await resolver.load(provider, existing_object_i │ │ 101 │ │ │ │ self._tag_to_object[tag] = created_obj │ │ │ │ /home/runner/AttachedElectronicSorting/venv/lib/python3.10/site-packages/modal/_res │ │ olver.py:81 in load │ │ │ │ 80 │ │ │ │ ❱ 81 │ │ created_obj = await obj._load(self, existing_object_id) │ │ 82 │ │ │ │ /home/runner/AttachedElectronicSorting/venv/lib/python3.10/site-packages/modal/func │ │ tions.py:976 in _load │ │ │ │ 975 │ │ │ for secret in secrets: │ │ ❱ 976 │ │ │ │ secret_id = (await resolver.load(secret)).object_id │ │ 977 │ │ │ │ secret_ids.append(secret_id) │ │ │ │ /home/runner/AttachedElectronicSorting/venv/lib/python3.10/site-packages/modal/_res │ │ olver.py:76 in load │ │ │ │ 75 │ async def load(self, obj, existing_object_id: Optional[str] = None): │ │ ❱ 76 │ │ cached_obj = self._local_uuid_to_object.get(obj.local_uuid) │ │ 77 │ │ if cached_obj is not None: │ ╰─────────────────────────────────────────────────────────────────────────────────────╯ AttributeError: 'str' object has no attribute 'local_uuid'