Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError 'Table' object has no attribute 'decode' with v1.1.2 #3145

Closed
3 tasks done
vlcinsky opened this issue Oct 8, 2020 · 3 comments
Closed
3 tasks done
Labels
status/duplicate Duplicate issues

Comments

@vlcinsky
Copy link
Contributor

vlcinsky commented Oct 8, 2020

Issue

Trying to create environment jinjatest for some testing poetry failed with attempt to add very first package pyyaml.

$ poetry new jinjatest
Created package jinjatest in jinjatest                      
$ cd jinjatest       
$ poetry add pyyaml
Creating virtualenv jinjatest in /home/javl/devel/tis/gitlab/tis/deploy/jinjatest/.venv
Using version ^5.3.1 for PyYAML                   
                                                                          
Updating dependencies                                                                                                                  
Resolving dependencies... (0.5s)                         
                                                              
Writing lock file                                                                
                                                            
Package operations: 12 installs, 0 updates, 0 removals
                                                                                
  • Installing zipp (3.3.0): Failed                                     
                                                                                   
  AttributeError                                                                             
                                                              
  'Table' object has no attribute 'decode'                      
                                                                                          
  at ~/.pyenv/versions/3.7.4/lib/python3.7/urllib/parse.py:107 in <genexpr>
       103│     return obj.encode(encoding, errors)         
       104│                                                                                                
       105│ def _decode_args(args, encoding=_implicit_encoding,    
       106│                        errors=_implicit_errors):
    →  107│     return tuple(x.decode(encoding, errors) if x else '' for x in args)                                                                     
       108│                              
       109│ def _coerce_args(*args):                  
       110│     # Invokes decode if necessary to create str args                       
       111│     # and returns the coerced inputs along with  
                        
                                                                                   
Failed to add packages, reverting the pyproject.toml file to its original content.

Trying the last step being more verbose:

$ poetry add -vvv pyyaml
Using virtualenv: /home/javl/devel/tis/gitlab/tis/deploy/jinjatest/.venv
PyPI: No release information found for pyyaml-3.01, skipping
PyPI: No release information found for pyyaml-3.02, skipping
PyPI: No release information found for pyyaml-3.03, skipping
PyPI: No release information found for pyyaml-3.04, skipping
PyPI: No release information found for pyyaml-3.05, skipping
PyPI: No release information found for pyyaml-3.06, skipping
PyPI: No release information found for pyyaml-3.07, skipping
PyPI: No release information found for pyyaml-3.08, skipping
PyPI: No release information found for pyyaml-3.09, skipping
PyPI: 10 packages found for pyyaml *
Using version ^5.3.1 for PyYAML

Updating dependencies
Resolving dependencies...
   1: fact: jinjatest is 0.1.0
   1: derived: jinjatest
   1: fact: jinjatest depends on PyYAML (^5.3.1)
   1: fact: jinjatest depends on pytest (^5.2)
   1: fact: jinjatest depends on pytest (^5.2)
   1: selecting jinjatest (0.1.0)
   1: derived: pytest (^5.2)
   1: derived: PyYAML (^5.3.1)
   1: fact: pytest (5.4.3) depends on py (>=1.5.0)
   1: fact: pytest (5.4.3) depends on packaging (*)
   1: fact: pytest (5.4.3) depends on attrs (>=17.4.0)
   1: fact: pytest (5.4.3) depends on more-itertools (>=4.0.0)
   1: fact: pytest (5.4.3) depends on pluggy (>=0.12,<1.0)
   1: fact: pytest (5.4.3) depends on wcwidth (*)
   1: fact: pytest (5.4.3) depends on importlib-metadata (>=0.12)
   1: fact: pytest (5.4.3) depends on atomicwrites (>=1.0)
   1: fact: pytest (5.4.3) depends on colorama (*)
   1: selecting pytest (5.4.3)
   1: derived: colorama (*)
   1: derived: atomicwrites (>=1.0)
   1: derived: importlib-metadata (>=0.12)
   1: derived: wcwidth (*)
   1: derived: pluggy (>=0.12,<1.0)
   1: derived: more-itertools (>=4.0.0)
   1: derived: attrs (>=17.4.0)
   1: derived: packaging (*)
   1: derived: py (>=1.5.0)
PyPI: No release information found for pyyaml-3.01, skipping
PyPI: No release information found for pyyaml-3.02, skipping
PyPI: No release information found for pyyaml-3.03, skipping
PyPI: No release information found for pyyaml-3.04, skipping
PyPI: No release information found for pyyaml-3.05, skipping
PyPI: No release information found for pyyaml-3.06, skipping
PyPI: No release information found for pyyaml-3.07, skipping
PyPI: No release information found for pyyaml-3.08, skipping
PyPI: No release information found for pyyaml-3.09, skipping
PyPI: 1 packages found for pyyaml >=5.3.1,<6.0.0
   1: selecting pyyaml (5.3.1)
   1: selecting colorama (0.4.3)
   1: selecting atomicwrites (1.4.0)
   1: fact: importlib-metadata (2.0.0) depends on zipp (>=0.5)
   1: selecting importlib-metadata (2.0.0)
   1: derived: zipp (>=0.5)
   1: selecting wcwidth (0.2.5)
   1: fact: pluggy (0.13.1) depends on importlib-metadata (>=0.12)
   1: selecting pluggy (0.13.1)
   1: selecting more-itertools (8.5.0)
   1: selecting attrs (20.2.0)
   1: fact: packaging (20.4) depends on pyparsing (>=2.0.2)
   1: fact: packaging (20.4) depends on six (*)
   1: selecting packaging (20.4)
   1: derived: six (*)
   1: derived: pyparsing (>=2.0.2)
   1: selecting py (1.9.0)
   1: selecting zipp (3.3.0)
   1: selecting six (1.15.0)
   1: selecting pyparsing (2.4.7)
   1: Version solving took 0.075 seconds.
   1: Tried 1 solutions.

Finding the necessary packages for the current system

Package operations: 12 installs, 0 updates, 0 removals, 2 skipped

  • Removing atomicwrites (1.4.0): Pending...
  • Removing atomicwrites (1.4.0): Skipped for the following reason: Not currently installed
  • Removing colorama (0.4.3): Pending...
  • Removing colorama (0.4.3): Skipped for the following reason: Not currently installed
  • Installing zipp (3.3.0): Pending...
  • Installing zipp (3.3.0): Failed

  AttributeError

  'Table' object has no attribute 'decode'

  at ~/.pyenv/versions/3.7.4/lib/python3.7/urllib/parse.py:107 in <genexpr>
       103│     return obj.encode(encoding, errors)
       104│
       105│ def _decode_args(args, encoding=_implicit_encoding,
       106│                        errors=_implicit_errors):
    →  107│     return tuple(x.decode(encoding, errors) if x else '' for x in args)
       108│
       109│ def _coerce_args(*args):
       110│     # Invokes decode if necessary to create str args
       111│     # and returns the coerced inputs along with


Failed to add packages, reverting the pyproject.toml file to its original content.
@vlcinsky vlcinsky added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Oct 8, 2020
@vlcinsky
Copy link
Contributor Author

vlcinsky commented Oct 8, 2020

Probably duplicate of #3104

@abn
Copy link
Member

abn commented Oct 8, 2020

@vlcinsky I would say it is a duplciate.

@abn abn closed this as completed Oct 8, 2020
@abn abn added status/duplicate Duplicate issues and removed kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Oct 8, 2020
Copy link

github-actions bot commented Mar 2, 2024

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 github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/duplicate Duplicate issues
Projects
None yet
Development

No branches or pull requests

2 participants