plone / plonecli

Plone Command Line Client - for creating and working with custom add-ons and themes
https://pypi.org/project/plonecli/
Other
19 stars 10 forks source link

errors while running tests #17

Closed kakshay21 closed 6 years ago

kakshay21 commented 6 years ago

Description

Freshly cloned it in my local and run tests after installing it.

What I Did

python setup.py test
running pytest
Searching for pytest
Best match: pytest 3.4.0
Processing pytest-3.4.0-py2.7.egg

Using /Users/akshay/Desktop/Plone/plonecli/.eggs/pytest-3.4.0-py2.7.egg
Searching for funcsigs
Best match: funcsigs 1.0.2
Processing funcsigs-1.0.2-py2.7.egg

Using /Users/akshay/Desktop/Plone/plonecli/.eggs/funcsigs-1.0.2-py2.7.egg
Searching for pluggy<0.7,>=0.5
Best match: pluggy 0.6.0
Processing pluggy-0.6.0-py2.7.egg

Using /Users/akshay/Desktop/Plone/plonecli/.eggs/pluggy-0.6.0-py2.7.egg
Searching for attrs>=17.2.0
Best match: attrs 17.4.0
Processing attrs-17.4.0-py2.7.egg

Using /Users/akshay/Desktop/Plone/plonecli/.eggs/attrs-17.4.0-py2.7.egg
Searching for py>=1.5.0
Best match: py 1.5.2
Processing py-1.5.2-py2.7.egg

Using /Users/akshay/Desktop/Plone/plonecli/.eggs/py-1.5.2-py2.7.egg
running egg_info
writing requirements to plonecli.egg-info/requires.txt
writing plonecli.egg-info/PKG-INFO
writing top-level names to plonecli.egg-info/top_level.txt
writing dependency_links to plonecli.egg-info/dependency_links.txt
writing entry points to plonecli.egg-info/entry_points.txt
reading manifest file 'plonecli.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no files found matching '*.jpg' under directory 'docs'
warning: no files found matching '*.png' under directory 'docs'
warning: no files found matching '*.gif' under directory 'docs'
writing manifest file 'plonecli.egg-info/SOURCES.txt'
running build_ext
================================================================================ test session starts ================================================================================
platform darwin -- Python 2.7.14, pytest-3.4.0, py-1.5.2, pluggy-0.6.0
rootdir: /Users/akshay/Desktop/Plone/plonecli, inifile:
collected 5 items / 1 errors                                                                                                                                                        

====================================================================================== ERRORS =======================================================================================
______________________________________________________________________ ERROR collecting tests/test_plonecli.py ______________________________________________________________________
tests/test_plonecli.py:10: in <module>
    from plonecli import cli
plonecli/cli.py:39: in <module>
    @click.pass_context
/usr/local/lib/python2.7/site-packages/click-6.7-py2.7.egg/click/decorators.py:151: in decorator
    _param_memo(f, ArgumentClass(param_decls, **attrs))
/usr/local/lib/python2.7/site-packages/click-6.7-py2.7.egg/click/core.py:1699: in __init__
    Parameter.__init__(self, param_decls, required=required, **attrs)
E   TypeError: __init__() got an unexpected keyword argument 'autocompletion'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================================== 1 error in 0.26 seconds ==============================================================================
kakshay21 commented 6 years ago

@MrTango removing the autocompletion does the trick. But not the solution.

datakurre commented 6 years ago

@kakshay21 Try installing requirements.txt into your virtualen env before. The exception shows that you are using click-6.7 while plonecli requires an unreleleased version from requirements.txt.

MrTango commented 6 years ago

Should be ok now, i released a forked version of click which we are using until they enventually make an release. The package is called plonecli.click and plonecli has a dependency on it.