fetchai/uAgents

Issue in agents communication via wallet guide

FelixNicolaeBucsa opened this issue · 3 comments

Prerequisites

  • I checked the documentation and found no answer to my problem
  • I checked the existing issues and made sure there are no similar bug reports

Category

Bug (unexpected behavior)

Expected Behavior

No response

Observed Behavior

6. Communicating with other agents wallet

Getting error:

Screenshot 2024-06-27 at 8 38 32 PM

Debugging:

As it showing babble module not found, as the error inside the uagent package library but still I try to install the babble by using “pip install babble”

But still getting error: \

Screenshot 2024-06-27 at 8 38 48 PM

ISSUE OPENED IN DOCS REPO: fetchai/docs#734

To Reproduce

No response

Version

v0.14.0

Environment Details (Optional)

No response

Failure Logs (Optional)

No response

Additional Information (Optional)

No response

This should be fixed by installing the fetch-babble extension when installing uagents via poetry or directly installing the package through pip.

Install via uagents extras:

pip install 'uagents[fetchai-babble]'

or simply the package itself:

pip install fetchai-babble'

Installing babble will install the wrong package: pypi babble which apparently is a Python library for parsing PDFs.

Hi @jrriehl/ @Archento ,

I have installed the correct package using pip install fetchai-babble in terminal.
I have been using example from repo: https://github.com/fetchai/uAgents/blob/main/python/examples/15-wallet-messaging/main.py

Still it throws the same error related to babble.

abhimanyugangani@Abhimanyus-MacBook-Pro New Integrations % python3 wallet.py                     
Traceback (most recent call last):
  File "/Users/abhimanyugangani/Desktop/Fetch.AI/integrations/New Integrations/wallet.py", line 2, in <module>
    from uagents.wallet_messaging import WalletMessage
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/uagents/wallet_messaging.py", line 7, in <module>
    from babble import Client
ImportError: cannot import name 'Client' from 'babble' (unknown location)
abhimanyugangani@Abhimanyus-MacBook-Pro New Integrations % 

Note: I have unsintalled the babble from my machine and installed the one provided by you.

I just checked out the most recent version and installed in a virtual environment and everything works as intended.

Please make sure that the Python interpreter points to the correct packages and that no conflicting packages are installed. Also try using a freshly set up poetry environment which ensures that no modules interfere.

As this seems to be a local error I'll go ahead and close this issue again. Feel free to reach out if you have any uAgents related issues and check the docs for tips on setting up your system.