poetry icon indicating copy to clipboard operation
poetry copied to clipboard

'Table' object has no attribute 'decode' error after upgrading

Open rich9474 opened this issue 2 years ago • 2 comments

  • Poetry version: 1.5.1
  • Python version: 3.9.13
  • OS version and name: Rocky Linux 8.7
  • pyproject.toml: NA
  • [x] I am on the latest stable Poetry version, installed using a recommended method.
  • [x] I have searched the issues of this repo and believe that this is not a duplicate.
  • [x] I have consulted the FAQ and blog for any relevant entries or release notes.
  • [ ] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.

Issue

After installing v1.5.1 using the official installer method: curl -sSL https://install.python-poetry.org | python3.9 - I could no longer run any poetry commands like poetry config --list. I would just get the error:

 master(+255/-192)* 14s ± poetry config --list

'Table' object has no attribute 'decode'

After purging all poetry related files from the system and re-installing it cleared the error. I suspect the culprit was incompatible settings in one of:

/data/home/rhall/.config/pypoetry
/data/home/rhall/.config/pypoetry/config.toml

Sorry, I don't have the contents of the files and I didn't run with -vvv as I only came to report the issue after fixing it.

I was upgrading from 1.2. It seems that there was no conversion or validation of the config files on upgrading.

rich9474 avatar Jul 07 '23 12:07 rich9474

unactionable, might as well close it

dimbleby avatar Jul 07 '23 13:07 dimbleby

In my case the file .config/pypoetry/config.toml was misformatted. Try to fix it or leave it empty.

Example of one:

[virtualenvs]
in-project = true

gouzmi avatar Sep 13 '24 13:09 gouzmi

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Nov 13 '24 00:11 github-actions[bot]