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

setup step 11 (paver) fails #45

Open
flip111 opened this issue Sep 14, 2017 · 3 comments
Open

setup step 11 (paver) fails #45

flip111 opened this issue Sep 14, 2017 · 3 comments

Comments

@flip111
Copy link

flip111 commented Sep 14, 2017

---> pavement.test_all


Captured Task Output:
---------------------

---> pavement.test_all
Traceback (most recent call last):
  File "/home/flip111/python/myproject/venv/lib64/python3.6/site-packages/paver/tasks.py", line 195, in _run_task
    return do_task()
  File "/home/flip111/python/myproject/venv/lib64/python3.6/site-packages/paver/tasks.py", line 192, in do_task
    return func(**kw)
  File "pavement.py", line 114, in test_all
    retcode = _test_all()
  File "./setup.py", line 196, in _test_all
    return _lint() + _test()
  File "./setup.py", line 169, in _lint
    project_python_files = [filename for filename in get_project_files()
  File "./setup.py", line 170, in <listcomp>
    if filename.endswith(b'.py')]
TypeError: endswith first arg must be str or a tuple of str, not bytes

python 3.6.2

@trentbullard
Copy link

on python 3.6.1 TypeError: a bytes-like object is required, not 'str'

@AmrAbdullatif
Copy link

Please confirm my correction:
For python version>=3.6
Go to line 456 ---> arg==arg
Change it to ---> arg==str(arg)

Please also update packages in requirement-dev.txt file to the current version

Have fun :)

@pierluigi-failla
Copy link

Same error after updating to Paver==1.2.4 using Python 3.6.x

@AmrAbdullatif where should be added your fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants