uAgents icon indicating copy to clipboard operation
uAgents copied to clipboard

Issue in agents communication via wallet guide

Open FelixNicolaeBucsa opened this issue 1 year ago • 2 comments
trafficstars

Prerequisites

  • [X] I checked the documentation and found no answer to my problem
  • [X] 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: https://github.com/fetchai/docs/issues/734

To Reproduce

No response

Version

v0.14.0

Environment Details (Optional)

No response

Failure Logs (Optional)

No response

Additional Information (Optional)

No response

FelixNicolaeBucsa avatar Aug 06 '24 10:08 FelixNicolaeBucsa

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.

Archento avatar Aug 09 '24 09:08 Archento

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.

abhifetch avatar Aug 19 '24 13:08 abhifetch

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.

Archento avatar Aug 20 '24 09:08 Archento