cyb3rdog / vector-python-sdk Goto Github PK
View Code? Open in Web Editor NEWThis project forked from anki/vector-python-sdk
Anki/DDL Vector Python SDK - with support for Production, EscapePod and OSKR robots
License: Other
This project forked from anki/vector-python-sdk
Anki/DDL Vector Python SDK - with support for Production, EscapePod and OSKR robots
License: Other
I want to use the SDK but I need to input Anki Account credentials, and I believe I don't have an account. so what am i meant to do, get someone else's account?
Got this error:
pi@escapepod:~ $ python3 -c "import anki_vector as _; print(_.__path__)"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'anki_vector'
pi@escapepod:~ $ python3 -m anki_vector.configure_pod
/usr/bin/python3: Error while finding module specification for 'anki_vector.configure_pod' (ModuleNotFoundError: No module named 'anki_vector')
Could someone help?
Feb 11 06:42:13 escapepod start.sh[8336]: (Bot 1, Vosk) Processing...
Feb 11 06:42:17 escapepod start.sh[8336]: (Bot 1) End of speech detected.
Feb 11 06:42:18 escapepod start.sh[8336]: Bot 1 Transcribed text: best
Feb 11 06:42:18 escapepod start.sh[8336]: Custom Intent Matched: test - test - intent_greeting_hello
Feb 11 06:42:18 escapepod start.sh[8336]: Executing: /bin/python3 /home/pi/vector-python-sdk/examples/tutorials/01_hello_world.py
Feb 11 06:42:18 escapepod start.sh[8336]: exit status 1: Traceback (most recent call last):
Feb 11 06:42:18 escapepod start.sh[8336]: File "/home/pi/vector-python-sdk/examples/tutorials/01_hello_world.py", line 22, in
Feb 11 06:42:18 escapepod start.sh[8336]: import anki_vector
Feb 11 06:42:18 escapepod start.sh[8336]: File "/usr/local/lib/python3.9/dist-packages/anki_vector/init.py", line 22, in
Feb 11 06:42:18 escapepod start.sh[8336]: from . import messaging
Feb 11 06:42:18 escapepod start.sh[8336]: File "/usr/local/lib/python3.9/dist-packages/anki_vector/messaging/init.py", line 42, in
Feb 11 06:42:18 escapepod start.sh[8336]: from . import protocol
Feb 11 06:42:18 escapepod start.sh[8336]: File "/usr/local/lib/python3.9/dist-packages/anki_vector/messaging/protocol.py", line 24, in
Feb 11 06:42:18 escapepod start.sh[8336]: from .behavior_pb2 import *
Feb 11 06:42:18 escapepod start.sh[8336]: File "/usr/local/lib/python3.9/dist-packages/anki_vector/messaging/behavior_pb2.py", line 16, in
Feb 11 06:42:18 escapepod start.sh[8336]: from anki_vector.messaging import messages_pb2 as anki__vector_dot_messaging_dot_messages__pb2
Feb 11 06:42:18 escapepod start.sh[8336]: File "/usr/local/lib/python3.9/dist-packages/anki_vector/messaging/messages_pb2.py", line 17, in
Feb 11 06:42:18 escapepod start.sh[8336]: from anki_vector.messaging import response_status_pb2 as anki__vector_dot_messaging_dot_response__status__pb2
Feb 11 06:42:18 escapepod start.sh[8336]: File "/usr/local/lib/python3.9/dist-packages/anki_vector/messaging/response_status_pb2.py", line 33, in
Feb 11 06:42:18 escapepod start.sh[8336]: _descriptor.EnumValueDescriptor(
Feb 11 06:42:18 escapepod start.sh[8336]: File "/usr/local/lib/python3.9/dist-packages/google/protobuf/descriptor.py", line 755, in new
Feb 11 06:42:18 escapepod start.sh[8336]: _message.Message._CheckCalledFromGeneratedFile()
Feb 11 06:42:18 escapepod start.sh[8336]: TypeError: Descriptors cannot not be created directly.
Feb 11 06:42:18 escapepod start.sh[8336]: If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
Feb 11 06:42:18 escapepod start.sh[8336]: If you cannot immediately regenerate your protos, some other possible workarounds are:
Feb 11 06:42:18 escapepod start.sh[8336]: 1. Downgrade the protobuf package to 3.20.x or lower.
Feb 11 06:42:18 escapepod start.sh[8336]: 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
Feb 11 06:42:18 escapepod start.sh[8336]: More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
Feb 11 06:42:18 escapepod start.sh[8336]: Custom Intent Exec Output:
Feb 11 06:42:18 escapepod start.sh[8336]: Bot 1 Intent Sent: intent_greeting_hello
Feb 11 06:42:18 escapepod start.sh[8336]: No Parameters Sent
Feb 11 06:42:18 escapepod start.sh[8336]: This is a custom intent or plugin!
Feb 11 06:42:18 escapepod start.sh[8336]: Bot 1 request served.
error given on the step to check path:
pi@escapepod:~ $ python3 -c "import anki_vector as _; print(_.__path__)"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/lib/python3.9/dist-packages/anki_vector/__init__.py", line 22, in <module>
from . import messaging
File "/usr/local/lib/python3.9/dist-packages/anki_vector/messaging/__init__.py", line 42, in <module>
from . import protocol
File "/usr/local/lib/python3.9/dist-packages/anki_vector/messaging/protocol.py", line 24, in <module>
from .behavior_pb2 import *
File "/usr/local/lib/python3.9/dist-packages/anki_vector/messaging/behavior_pb2.py", line 16, in <module>
from anki_vector.messaging import messages_pb2 as anki__vector_dot_messaging_dot_messages__pb2
File "/usr/local/lib/python3.9/dist-packages/anki_vector/messaging/messages_pb2.py", line 17, in <module>
from anki_vector.messaging import response_status_pb2 as anki__vector_dot_messaging_dot_response__status__pb2
File "/usr/local/lib/python3.9/dist-packages/anki_vector/messaging/response_status_pb2.py", line 33, in <module>
_descriptor.EnumValueDescriptor(
File "/usr/local/lib/python3.9/dist-packages/google/protobuf/descriptor.py", line 755, in __new__
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
1. Downgrade the protobuf package to 3.20.x or lower.
2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
Hi i am doing vector project based on your library and code!
Now I am done with the whole escape pod process and i am running python code which you provide.
But problem is that i keep receiving error code.
Can you tell me what i did wrong?
Honestly it was working well yesterday but since after i reboot my computer, it stops working
Hello,
I have been using the cyb3r_vector_sdk successfully with Raspberry Pi (Wire-Pod) for some time now.
Since Raspberry Pi OS Bookworm external Python packages run in a virtual environment.
When I install the cyb3r_vector_sdk with pip there and run 01_hello_world.py I get the following error message:
Traceback (most recent call last): File "/home/pi/VectorApps/helloWorld.py", line 35, in <module> main() File "/home/pi/VectorApps/helloWorld.py", line 29, in main with anki_vector.Robot(args.serial, cache_animation_lists=False) as robot: File "/home/pi/VectorApps/env/lib/python3.11/site-packages/anki_vector/robot.py", line 758, in __enter__ self.connect(self.behavior_activation_timeout) File "/home/pi/VectorApps/env/lib/python3.11/site-packages/anki_vector/robot.py", line 646, in connect self.conn.connect(timeout=timeout) File "/home/pi/VectorApps/env/lib/python3.11/site-packages/anki_vector/connection.py", line 483, in connect raise e File "/home/pi/VectorApps/env/lib/python3.11/site-packages/anki_vector/connection.py", line 498, in _connect self._control_events = _ControlEventManager(self._loop, priority=self._behavior_control_level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pi/VectorApps/env/lib/python3.11/site-packages/anki_vector/connection.py", line 86, in __init__ self._granted_event = asyncio.Event(loop=loop) ^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: Event.__init__() got an unexpected keyword argument 'loop'
I'm also not sure if I want to switch to the virtual python environment every time I want to run a script.
Is it possible to run the installation with apt install python-cyb3r_vector_sdk instead of pip?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.