poe-platform / server-bot-quick-start

Tutorial for Poe server bots
1.31k stars 192 forks source link

Broken code to package modal #61

Closed Dyl777 closed 8 months ago

Dyl777 commented 9 months ago

################################################################################

Something with the Modal installation seems broken.

Please email support@modal.com and we will try to help!

################################################################################

on trying to output main.py

Traceback (most recent call last): File "/workspace/server-bot-quick-start/main.py", line 8, in from modal import Image, Stub, asgi_app File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/modal/init.py", line 6, in from .app import container_app, is_local File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/modal/app.py", line 17, in from .object import _Object File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/modal/object.py", line 23, in _BLOCKING_O = synchronize_api(O) ^^^^^^^^^^^^^^^^^^ File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/modal_utils/async_utils.py", line 31, in synchronize_api return synchronizer.create_blocking(obj, blocking_name, target_module=target_module) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/synchronicity/synchronizer.py", line 687, in create_blocking wrapped = self._wrap(obj, Interface.BLOCKING, name, target_module=target_module) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/synchronicity/synchronizer.py", line 623, in _wrap if self._wrapped_attr not in obj.dict: ^^^^^^^^^^^^ AttributeError: 'typing.TypeVar' object has no attribute 'dict'. Did you mean: 'dir'? gitpod /workspace/server-bot-quick-start (main) $

anmolsingh95 commented 9 months ago

I just tried setting up the echobot by cloning this repo alongwith a fresh installation of the modal-client. Could you please share the exact steps you used to reproduce this issue?