ape: Docker Startup Error: `AttributeError: module 'rlp' has no attribute 'Serializable'`

Literally followed the instructions for docker installation verbatim, and recieved the error: AttributeError: module 'rlp' has no attribute 'Serializable'. Attached to the tty, and ran the command pip3 install eth-ape[recommended-plugins] AND pip3 install -U eth-ape[recommended-plugins] everything came up installed both times. Looked for more documentation on performing a docker installation, and found the same information contained in the README.md. Kinda lost as to what to do now.

I will try to remember to return later and provide the full output.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 18 (10 by maintainers)

Most upvoted comments

Yep, it works…now the fun begins…

If encounter this issue RLP has not attribute 'Serializble' at any other point when using the Ape, the fix is:

pip uninstall rlp --yes && pip install rlp==3.0.0

I have encountered this issue outside of docker, like when installing other libs and such, and then I have to do this again. It is odd. The init.py file for rlp changes for some reason. Maybe a bug related to having multiple installed packages named rlp.

May be a little premature, but seeing there is a new docker image release, I am going to go ahead and pull @latest, and see if the issue has been taken care of. Fingers crossed.

Pulling is slower than frozen molasses.

After doing some research it seems the error is coming from this file: https://github.com/ethereum/eth-rlp/blob/master/eth_rlp/main.py

that file imports this library also: https://github.com/ethereum/pyrlp however I still haven’t found where this breaking change occurs

I was able to try an older version of the ape docker image and it works to compile but the latest version does not.

I’m able to recreate the error on the latest docker image on ubuntu WSL2

This seems like some sort of dependency issue w/ py-rlp

Will look into it!