Comments (5)
When installing the characterai package with pip inside the docker container:
Traceback (most recent call last):
File "/opt/maubot/maubot/loader/zip.py", line 216, in _load
importer.load_module(module)
File "/opt/maubot/maubot/lib/zipimport.py", line 280, in load_module
exec(code, mod.__dict__)
File "/data/plugins/com.github.Matthieu-LAURENT39.maubot-characterai-v0.2.1.mbp/cai/__init__.py", line 1, in <module>
from .cai import CAIBot
File "/data/plugins/com.github.Matthieu-LAURENT39.maubot-characterai-v0.2.1.mbp/cai/cai.py", line 13, in <module>
from characterai import PyAsyncCAI
File "/usr/lib/python3.11/site-packages/characterai/__init__.py", line 1, in <module>
from characterai.characterai import PyCAI, PyAsyncCAI
File "/usr/lib/python3.11/site-packages/characterai/characterai.py", line 2, in <module>
import tls_client
File "/usr/lib/python3.11/site-packages/tls_client/__init__.py", line 15, in <module>
from .sessions import Session
File "/usr/lib/python3.11/site-packages/tls_client/sessions.py", line 1, in <module>
from .cffi import request, freeMemory
File "/usr/lib/python3.11/site-packages/tls_client/cffi.py", line 20, in <module>
library = ctypes.cdll.LoadLibrary(f'{root_dir}/dependencies/tls-client{file_ext}')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/ctypes/__init__.py", line 454, in LoadLibrary
return self._dlltype(name)
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/ctypes/__init__.py", line 376, in __init__
self._handle = _dlopen(self._name, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: Error loading shared library libresolv.so.2: No such file or directory (needed by /usr/lib/python3.11/site-packages/tls_client/dependencies/tls-client-x86.so)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/maubot/maubot/management/api/middleware.py", line 49, in error
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/opt/maubot/maubot/management/api/instance.py", line 85, in update_instance
return await _update_instance(instance, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/maubot/maubot/management/api/instance.py", line 69, in _update_instance
await instance.update_started(data.get("started"))
File "/opt/maubot/maubot/instance.py", line 489, in update_started
await (self.start() if started else self.stop())
File "/opt/maubot/maubot/instance.py", line 362, in start
cls = await self.loader.load()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/maubot/maubot/loader/zip.py", line 201, in load
return self._load(reset_cache)
^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/maubot/maubot/loader/zip.py", line 220, in _load
raise MaubotZipLoadError(f"Failed to load module {module}")
maubot.loader.zip.MaubotZipLoadError: Failed to load module cai
from maubot-characterai.
Did you install the characterai
package? Maubot doesn't automatically install requirements yet
from maubot-characterai.
you cannot install pip packages inside a docker container
from maubot-characterai.
You can with the python docker image
from maubot-characterai.
I installed it locally but am getting the following error message instead:
Traceback (most recent call last):
File "/Users/user/matrix/maubot/lib/python3.12/site-packages/maubot/loader/zip.py", line 216, in _load
importer.load_module(module)
File "/Users/user/matrix/maubot/lib/python3.12/site-packages/maubot/lib/zipimport.py", line 280, in load_module
exec(code, mod.__dict__)
File "/Users/user/matrix/maubot/plugins/com.github.Matthieu-LAURENT39.maubot-characterai-v0.2.1.mbp/cai/__init__.py", line 1, in <module>
from .cai import CAIBot
File "/Users/user/matrix/maubot/plugins/com.github.Matthieu-LAURENT39.maubot-characterai-v0.2.1.mbp/cai/cai.py", line 13, in <module>
from characterai import PyAsyncCAI
ImportError: cannot import name 'PyAsyncCAI' from 'characterai' (/Users/user/matrix/maubot/lib/python3.12/site-packages/characterai/__init__.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/user/matrix/maubot/lib/python3.12/site-packages/maubot/management/api/middleware.py", line 49, in error
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/user/matrix/maubot/lib/python3.12/site-packages/maubot/management/api/instance.py", line 85, in update_instance
return await _update_instance(instance, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/user/matrix/maubot/lib/python3.12/site-packages/maubot/management/api/instance.py", line 69, in _update_instance
await instance.update_started(data.get("started"))
File "/Users/user/matrix/maubot/lib/python3.12/site-packages/maubot/instance.py", line 489, in update_started
await (self.start() if started else self.stop())
File "/Users/user/matrix/maubot/lib/python3.12/site-packages/maubot/instance.py", line 362, in start
cls = await self.loader.load()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/user/matrix/maubot/lib/python3.12/site-packages/maubot/loader/zip.py", line 201, in load
return self._load(reset_cache)
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/user/matrix/maubot/lib/python3.12/site-packages/maubot/loader/zip.py", line 220, in _load
raise MaubotZipLoadError(f"Failed to load module {module}")
maubot.loader.zip.MaubotZipLoadError: Failed to load module cai
from maubot-characterai.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maubot-characterai.