Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

Descobrir a razão de python setup.py test estar falhando #17

Closed
cuducos opened this issue Jan 13, 2020 · 1 comment
Closed

Descobrir a razão de python setup.py test estar falhando #17

cuducos opened this issue Jan 13, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@cuducos
Copy link
Owner

cuducos commented Jan 13, 2020

Ao executar python setup.py test o Black falha com:

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.8.0/x64/lib/python3.8/runpy.py", line 192, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/opt/hostedtoolcache/Python/3.8.0/x64/lib/python3.8/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/runner/work/calculadora-do-cidadao/calculadora-do-cidadao/.eggs/black-19.3b0-py3.8.egg/black.py", line 79, in <module>
    pygram.initialize(CACHE_DIR)
  File "/home/runner/work/calculadora-do-cidadao/calculadora-do-cidadao/.eggs/black-19.3b0-py3.8.egg/blib2to3/pygram.py", line 41, in initialize
    python_grammar = driver.load_packaged_grammar("blib2to3", _GRAMMAR_FILE,
  File "/home/runner/work/calculadora-do-cidadao/calculadora-do-cidadao/.eggs/black-19.3b0-py3.8.egg/blib2to3/pgen2/driver.py", line 198, in load_packaged_grammar
    gp = _generate_pickle_name(grammar_source, cache_dir) if cache_dir else None
  File "/home/runner/work/calculadora-do-cidadao/calculadora-do-cidadao/.eggs/black-19.3b0-py3.8.egg/blib2to3/pgen2/driver.py", line 151, in _generate_pickle_name
    return os.path.join(cache_dir, os.path.basename(name))
  File "/opt/hostedtoolcache/Python/3.8.0/x64/lib/python3.8/posixpath.py", line 76, in join
    a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not PosixPath

Esse erro não ocorre se instalamos as dependências e rodamos pytest.

@cuducos cuducos added the bug Something isn't working label Jan 13, 2020
@cuducos
Copy link
Owner Author

cuducos commented Jan 13, 2020

Não vale a pena explorar esse bug, já que python setup.py test vai ser descontinuado. Foco na alternativa proposta na issue #19 (deixando essa issue aberta só para registro, enquanto o comando documentado, da master e da CI ainda está falhando).

cuducos added a commit that referenced this issue Jan 20, 2020
cuducos added a commit that referenced this issue Jan 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant