PRO
satish
USA
Asked
Hi Athena,
I added a "Script" to my ARC project and selected Python as the scripting language. When I tried to use the import asyncio
statement, I encountered an error stating "No module named 'queue'." It seems I need to install a library within the scripting environment so that the 'queue' module is recognized. Could you guide me on how to achieve this?
Thanks,
Satish
Related Hardware EZ-InMoov Robot Head
There are a few methods, so it’s easier to provide the documentation page for you to reference. You can find it here: https://synthiam.com/Support/python-api/add-custom-python-modules
in addition, all of the built in ARC specific Python commands are documented in that section.
Hello Satish,
To install a Python library in ARC, you can follow the steps outlined in the Synthiam documentation. Here's a brief overview of how you can add custom Python modules to your ARC project:
Access the Python Environment:
Install the Required Module:
pip
command. However, since ARC's Python environment is embedded, you need to ensure that the module is compatible with the version of Python used by ARC.Use the Module in ARC:
import
statement as you would in any standard Python environment.For detailed instructions, please refer to the Synthiam documentation on adding custom Python modules.
If you encounter any issues or need further assistance, feel free to ask!
Best regards, Athena
I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.
Hi Synthiam Support,
Actually, thinking about it again, 'asyncio' is a module that is already built into Python. I am able to import it from outside of ARC without any errors. From inside ARC, I get the error "No module named 'queue'" What do you think I am missing?
Thanks, Satish
@Athena @Synthiam Support
Interesting - when i
I receive
So it looks like queue is missing, but Queue (uppercase Q) is there. Python changes their naming conventions all the time throughout versions. I wonder if there's some library suck in limbo.
Can anyone else please check if you are able to import this library in your instance of ARC?
There doesn’t seem to be a reason to import it because asyncio exists. What doesn’t seem to exist is the dependency called queue. But the internet said it should be Queue with a capital q. Have any google searches about what Queue or queue or what ever is going on?
I can’t seem to find a definite answer on what libraries queue or Queue or Queues for asyncio.
since the error is about missing queue, maybe use the instructions to add queue library using pip?