pytest-dev / pytest

The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
https://pytest.org
MIT License
12.12k stars 2.68k forks source link

pytest fails to start with ValueError: unknown action "callback" #8921

Closed aalouie closed 2 years ago

aalouie commented 3 years ago
C:\Users\...\Python\Python39>pytest
Traceback (most recent call last):
  File "c:\programdata\anaconda3\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\programdata\anaconda3\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\ProgramData\Anaconda3\Scripts\pytest.exe\__main__.py", line 7, in <module>
    main()
  File "c:\programdata\anaconda3\lib\site-packages\_pytest\config\__init__.py", line 185, in console_main
    code = main()
  File "c:\programdata\anaconda3\lib\site-packages\_pytest\config\__init__.py", line 143, in main
    config = _prepareconfig(args, plugins)
  File "c:\programdata\anaconda3\lib\site-packages\_pytest\config\__init__.py", line 318, in _prepareconfig
    config = pluginmanager.hook.pytest_cmdline_parse(
  File "c:\programdata\anaconda3\lib\site-packages\pluggy\hooks.py", line 286, in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
  File "c:\programdata\anaconda3\lib\site-packages\pluggy\manager.py", line 93, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "c:\programdata\anaconda3\lib\site-packages\pluggy\manager.py", line 84, in <lambda>
    self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
  File "c:\programdata\anaconda3\lib\site-packages\pluggy\callers.py", line 203, in _multicall
    gen.send(outcome)
  File "c:\programdata\anaconda3\lib\site-packages\_pytest\helpconfig.py", line 100, in pytest_cmdline_parse
    config: Config = outcome.get_result()
  File "c:\programdata\anaconda3\lib\site-packages\pluggy\callers.py", line 80, in get_result
    raise ex[1].with_traceback(ex[2])
  File "c:\programdata\anaconda3\lib\site-packages\pluggy\callers.py", line 187, in _multicall
    res = hook_impl.function(*args)
  File "c:\programdata\anaconda3\lib\site-packages\_pytest\config\__init__.py", line 1003, in pytest_cmdline_parse
    self.parse(args)
  File "c:\programdata\anaconda3\lib\site-packages\_pytest\config\__init__.py", line 1283, in parse
    self._preparse(args, addopts=addopts)
  File "c:\programdata\anaconda3\lib\site-packages\_pytest\config\__init__.py", line 1175, in _preparse
    self.known_args_namespace = self._parser.parse_known_args(
  File "c:\programdata\anaconda3\lib\site-packages\_pytest\config\argparsing.py", line 146, in parse_known_args
    return self.parse_known_and_unknown_args(args, namespace=namespace)[0]
  File "c:\programdata\anaconda3\lib\site-packages\_pytest\config\argparsing.py", line 155, in parse_known_and_unknown_args
    optparser = self._getparser()
  File "c:\programdata\anaconda3\lib\site-packages\_pytest\config\argparsing.py", line 122, in _getparser
    arggroup.add_argument(*n, **a)
  File "c:\programdata\anaconda3\lib\argparse.py", line 1367, in add_argument
    raise ValueError('unknown action "%s"' % (action_class,))
ValueError: unknown action "callback"
nicoddemus commented 3 years ago

Hi @aalouie,

Please post the full output and the command you're trying to execute.

aalouie commented 3 years ago

Hi @aalouie,

Please post the full output and the command you're trying to execute.

Now it is displayed. Thanks for replay @nicoddemus

RonnyPfannschmidt commented 3 years ago

at first glance this looks like a broken python where argparse is missing callback actions we need more details on the python used and the packages added to it

RonnyPfannschmidt commented 3 years ago

i took the liberty to add the tripple quotes for code around your traceback so its better readable

RonnyPfannschmidt commented 3 years ago

@aalouie i believe we require a list of the pytest plugins, pytest itself doesn't use the feature, i suspect legacy code may be involved and/or a broken plugin

RonnyPfannschmidt commented 3 years ago

@aalouie for more context - a very long while ago pytest used optparse instead of argparse

optparse has callback/callback_* arguments, argparse has action/type

aalouie commented 3 years ago

@aalouie for more context - a very long while ago pytest used optparse instead of argparse

optparse has callback/callback_* arguments, argparse has action/type

So, how should I do to provide this list for you?

aalouie commented 3 years ago

@aalouie for more context - a very long while ago pytest used optparse instead of argparse optparse has callback/callback_* arguments, argparse has action/type

So, how should I do to provide this list for you?

Required-by: pytest-xdist, pytest-twisted, pytest-timeout, pytest-rerunfailures, pytest-pep8, pytest-ordering, pytest-metadata, pytest-instafail, pytest-html, pytest-for ked, pytest-flakes, pytest-django, pytest-cov, pytest-cache, pytest-bdd, pytest-asyncio

Do you mean this?

RonnyPfannschmidt commented 3 years ago

that looks like a reverse dependency, its not clear to me what else is in use in your codebase (im unfamiliar with anaconda as well)

aalouie commented 3 years ago

that looks like a reverse dependency, its not clear to me what else is in use in your codebase (im unfamiliar with anaconda as well)

Yep, me too. Lots of things I had installed and forgot what is what. However, the full list as following:Package Version Location


absl-py 0.13.0 aenum 3.1.0 aio-pika 6.8.0 aiohttp 3.7.4.post0 aiormq 3.3.1 alabaster 0.7.12 alembic 1.5.8 algo 1.3.1 altgraph 0.17 amqp 5.0.6 anaconda-client 1.7.2 anaconda-navigator 2.0.3 anaconda-project 0.10.0 anyio 2.2.0 apipkg 1.5 appdirs 1.4.4 argcomplete 1.12.3 argh 0.26.2 argon2-cffi 20.1.0 asgiref 3.3.4 asn1crypto 1.4.0 astroid 2.5 astropy 4.2.1 async-generator 1.10 async-timeout 3.0.1 asyncio 3.4.3 atomicwrites 1.4.0 attrs 21.2.0 Automat 20.2.0 automaton 2.3.0 autopep8 1.5.4 autoreview 0.2.5 Babel 2.9.1 backcall 0.2.0 backoff 1.10.0 backports.functools-lru-cache 1.6.4 backports.shutil-get-terminal-size 1.0.0 backports.tempfile 1.0 backports.weakref 1.0.post1 bcrypt 3.2.0 beautifulsoup4 4.9.3 binary 1.0.0 bitarray 2.1.0 bkcharts 0.2 black 19.10b0 bleach 3.3.0 bokeh 2.3.2 boto 2.49.0 Bottleneck 1.3.2 brotlipy 0.7.0 cachetools 4.2.1 castellan 3.7.1 cbor2 5.4.0 certifi 2020.12.5 cffi 1.14.5 chardet 4.0.0 chess 1.5.0 ci-info 0.2.0 click 8.0.1 click-default-group 1.2.2 cliff 3.7.0 cloudpickle 1.6.0 clyent 1.2.2 cmd2 1.5.0 colorama 0.4.4 colorful 0.5.4 comtypes 1.1.9 conda 4.10.1 conda-build 3.21.4 conda-content-trust 0+unknown conda-pack 0.6.0 conda-package-handling 1.7.3 conda-repo-cli 1.0.4 conda-token 0.3.0 conda-verify 3.4.2 configobj 5.0.6 configparser 5.0.2 constantly 15.1.0 constants 0.6.0 contextlib2 0.6.0.post1 coverage 5.5 cryptography 3.4.7 cursive 0.2.2 cx-Freeze 6.6 cx-Logging 3.0 cycler 0.10.0 Cython 0.29.23 cytoolz 0.11.0 daemonize 2.5.0 daemonocle 1.2.3 dask 2021.4.0 debtcollector 2.2.0 decorator 4.4.2 defusedxml 0.7.1 Deprecated 1.2.12 diff-match-patch 20200713 discord 1.7.3 discord.py 1.7.3 distlib 0.3.1 distributed 2021.5.0 distro 1.5.0 Django 1.8.6 django-contrib-comments 2.1.0 django-inspect 0.4.1 dnspython 1.16.0 dock 0.0.1 docker 5.0.0 docker-py 1.10.6 docker-pycreds 0.4.0 docopt 0.6.2 docutils 0.16 dogpile.cache 1.1.2 e 1.4.5 entrypoints 0.3 et-xmlfile 1.0.1 etelemetry 0.2.2 eurostat 0.2.3 eventlet 0.30.2 execnet 1.8.1 extras 1.0.0 fastcache 1.1.0 fasteners 0.16 filelock 3.0.12 fitz 0.0.1.dev2 fixtures 3.0.0 flake8 3.8.4 Flask 1.1.2 flawless 0.4.4 fsspec 0.9.0 future 0.18.2 futurist 2.3.0 gevent 21.1.2 glob2 0.7 gmpy2 2.0.8 google-api-core 1.26.3 google-auth 1.29.0 google-auth-oauthlib 0.4.4 google-cloud-bigquery 2.13.1 google-cloud-core 1.6.0 google-crc32c 1.1.2 google-resumable-media 1.2.0 googleapis-common-protos 1.53.0 greenlet 1.1.0 grpcio 1.37.0 guildai 0.7.3 h5py 2.10.0 HeapDict 1.0.1 html-testRunner 1.2.1 html5lib 1.1 httplib2 0.19.1 hyperlink 21.0.0 idna 2.10 imagecodecs 2021.3.31 imageio 2.9.0 imagesize 1.2.0 importlib-metadata 4.0.1 incremental 21.3.0 iniconfig 1.1.1 inspect-it 0.3.2 intervaltree 3.1.0 invoke 1.5.0 ipykernel 5.3.4 ipython 7.22.0 ipython-genutils 0.2.0 ipywidgets 7.6.3 iso8601 0.1.14 isodate 0.6.0 isort 5.8.0 itsdangerous 2.0.0 jaeger 0.7.0 jdcal 1.4.1 jedi 0.17.2 Jinja2 3.0.0 jmespath 0.10.0 joblib 1.0.1 json5 0.9.5 jsonpatch 1.32 jsonpath-rw 1.4.0 jsonpointer 2.1 jsonschema 3.2.0 junit-xml 1.9 junitxml 0.7 jupyter 1.0.0 jupyter-client 6.1.12 jupyter-console 6.4.0 jupyter-core 4.7.1 jupyter-packaging 0.7.12 jupyter-server 1.4.1 jupyterlab 3.0.14 jupyterlab-pygments 0.1.2 jupyterlab-server 2.4.0 jupyterlab-widgets 1.0.0 keyring 22.3.0 keystoneauth1 4.3.1 keystonemiddleware 9.2.0 kiwisolver 1.3.1 kombu 5.0.2 launcher 0.1 lazy-object-proxy 1.6.0 libarchive-c 2.9 line-profiler 2.1.2 linecache2 1.0.0 llvmlite 0.36.0 locket 0.2.1 logger 1.4 louie-test 1.0.0 c:...\python\python39\louie-test lxml 4.6.3 Mako 1.1.4 Markdown 3.3.4 MarkupSafe 2.0.0 matplot 0.1.9 matplotlib 3.4.2 mccabe 0.6.1 memory-profiler 0.58.0 menuinst 1.4.16 microversion-parse 1.0.1 mistune 0.8.4 mkl-fft 1.3.0 mkl-random 1.2.1 mkl-service 2.3.0 mock 4.0.3 more-itertools 8.7.0 moves 0.1 mpmath 1.2.1 msgpack 1.0.2 multidict 5.1.0 multipledispatch 0.6.0 munch 2.5.0 mypy-extensions 0.4.3 mysql 0.0.2 mysqlclient 2.0.3 navigator-updater 0.2.1 nbclassic 0.2.6 nbclient 0.5.3 nbconvert 6.0.7 nbformat 5.1.3 nest-asyncio 1.5.1 netaddr 0.8.0 netifaces 0.10.9 networkx 2.5.1 nibabel 3.2.1 nipype 1.6.0 nltk 3.6.2 nose 1.3.7 notebook 6.3.0 nova 23.0.0 numba 0.53.1 numexpr 2.7.3 numpy 1.20.2 numpydoc 1.1.0 oauth2 1.9.0.post1 oauthlib 3.1.1 oejskit 0.9.0 olefile 0.46 omniture 0.3.1 openpyxl 3.0.7 openstacksdk 0.55.0 opentelemetry-api 1.2.0 opentelemetry-exporter-jaeger 1.2.0 opentelemetry-exporter-jaeger-proto-grpc 1.2.0 opentelemetry-exporter-jaeger-thrift 1.2.0 opentelemetry-instrumentation 0.21b0 opentelemetry-instrumentation-flask 0.21b0 opentelemetry-instrumentation-wsgi 0.21b0 opentelemetry-sdk 1.2.0 opentelemetry-semantic-conventions 0.21b0 opentelemetry-util-http 0.21b0 os-brick 4.3.1 os-client-config 2.1.0 os-resource-classes 1.0.0 os-service-types 1.7.0 os-traits 2.5.0 os-vif 2.4.0 os-win 5.4.0 os-xenapi 0.3.4 osc-lib 2.3.1 oslo.cache 2.7.0 oslo.concurrency 4.4.0 oslo.config 8.5.0 oslo.context 3.2.0 oslo.db 8.5.0 oslo.i18n 5.0.1 oslo.log 4.4.0 oslo.messaging 12.7.1 oslo.middleware 4.2.0 oslo.policy 3.7.0 oslo.privsep 2.5.0 oslo.reports 2.2.0 oslo.rootwrap 6.2.0 oslo.serialization 4.1.0 oslo.service 2.5.0 oslo.upgradecheck 1.3.0 oslo.utils 4.8.0 oslo.versionedobjects 2.4.0 ovs 2.13.3 ovsdbapp 1.9.0 packaging 20.9 pamqp 2.3.0 pandas 1.2.4 pandaSDMX 0.9 pandocfilters 1.4.3 paramiko 2.7.2 parse 1.19.0 parse-type 0.5.2 parso 0.7.0 partd 1.2.0 Paste 3.5.0 PasteDeploy 2.1.1 path 15.1.2 pathlib 1.0.1 pathlib2 2.3.5 pathspec 0.7.0 pathtools 0.1.2 patsy 0.5.1 pbr 5.5.1 peewee 3.14.4 pefile 2019.4.18 pep8 1.7.1 pexpect 4.8.0 pickleshare 0.7.5 Pillow 8.2.0 pip 21.1.3 pip-review 1.1.0 pipenv 2020.11.15 pipx 0.16.1.0 pkginfo 1.7.0 pluggy 0.13.1 ply 3.11 prettyprinter 0.18.0 prettytable 0.7.2 progressbar2 3.53.1 project-sync 0.2.0 prometheus-client 0.10.1 prompt-toolkit 3.0.17 proto-plus 1.18.1 protobuf 3.15.8 prov 2.0.0 psutil 5.8.0 psycopg2-binary 2.8.6 ptyprocess 0.7.0 pubnub 5.1.3 py 1.10.0 py4j 0.10.9 pyaml 20.4.0 pyasn1 0.4.8 pyasn1-modules 0.2.8 pycadf 3.1.1 pycodestyle 2.6.0 pycosat 0.6.3 pycowsay 0.0.0.1 pycparser 2.20 pycryptodomex 3.10.1 pycurl 7.43.0.6 pydocstyle 6.0.0 pydot 1.4.2 pyecharts 1.9.0 pyerfa 1.7.3 pyflakes 2.2.0 Pygments 2.8.1 pyinstaller 5.0.dev0 pyinstaller-hooks-contrib 2021.1 pylint 2.7.4 pyloco 0.0.139 pyls-black 0.4.6 pyls-spyder 0.3.2 PyMI 1.0.6 pymodbus 2.5.2 Pympler 0.9 PyMuPDF 1.18.12 PyNaCl 1.4.0 pyodbc 4.0.0-unsupported pyOpenSSL 20.0.1 pyparsing 2.4.7 pyperclip 1.8.2 pypi 2.1 pypinfo 19.0.0 pypowervm 1.1.24 pyreadline 2.1 pyreadline3 3.3 pyrsistent 0.17.3 pyserial 3.5 PySimpleGUI 4.40.0 PySimpleGUI-chess 0.0.3 PySocks 1.7.1 pyspark 3.1.2 pytest 6.2.4 pytest-asyncio 0.15.1 pytest-bdd 4.1.0 pytest-cache 1.0 pytest-cov 2.12.1 pytest-django 4.4.0 pytest-flakes 4.0.3 pytest-forked 1.3.0 pytest-html 3.1.1 pytest-instafail 0.4.2 pytest-metadata 1.11.0 pytest-ordering 0.6 pytest-pep8 1.0.6 pytest-rerunfailures 10.0 pytest-timeout 1.4.2 pytest-twisted 1.13.2 pytest-xdist 2.2.1 python-barbicanclient 5.1.0 python-can 3.3.4 python-chess 1.999 python-cinderclient 7.4.0 python-dateutil 2.8.1 python-dotenv 0.18.0 python-editor 1.0.4 python-glanceclient 3.3.0 python-jsonrpc-server 0.4.0 python-keystoneclient 4.2.0 python-language-server 0.36.2 python-mimeparse 1.6.0 python-neutronclient 7.3.0 python-twitter 0.8.2 c:...\python\python39\python-twitter-0.8.2 python-utils 2.5.6 pytz 2021.1 PyWavelets 1.1.1 pywin32 227 pywin32-ctypes 0.2.0 pywinpty 0.5.7 pyxnat 1.4 PyYAML 5.4.1 pyzmq 22.0.3 QDarkStyle 2.8.1 QtAwesome 1.0.2 qtconsole 5.0.3 QtPy 1.9.0 rdflib 5.0.0 readme-renderer 29.0 regex 2021.4.4 repoze.lru 0.7 requests 2.25.1 requests-oauthlib 1.3.0 requests-toolbelt 0.9.1 requestsexceptions 1.4.0 retrying 1.3.3 rfc3986 1.4.0 rope 0.18.0 Routes 2.5.1 rsa 4.7.2 Rtree 0.9.7 ruamel-yaml-conda 0.15.100 scikit-build 0.11.1 scikit-image 0.18.1 scikit-learn 0.24.2 scikit-optimize 0.8.1 scipy 1.6.3 sdss-clu 1.2.1 sdss-drift 0.2.2 sdsstools 0.4.10 seaborn 0.11.1 semantic-version 2.8.5 Send2Trash 1.5.0 setuptools 57.0.0 shiboken2 5.15.2 simplegeneric 0.8.1 simplejson 3.17.2 SimpleWebSocketServer 0.1.1 singledispatch 0.0.0 sip 4.19.13 six 1.15.0 sklearn 0.0 sniffio 1.2.0 snowballstemmer 2.1.0 sortedcollections 2.1.0 sortedcontainers 2.3.0 soupsieve 2.2.1 spark 0.2.1 Sphinx 4.0.1 sphinxcontrib-applehelp 1.0.2 sphinxcontrib-devhelp 1.0.2 sphinxcontrib-htmlhelp 1.0.3 sphinxcontrib-jsmath 1.0.1 sphinxcontrib-qthelp 1.0.3 sphinxcontrib-serializinghtml 1.1.4 sphinxcontrib-websupport 1.2.4 spotify 0.10.2 spotipy 2.18.0 spyder 4.2.5 spyder-kernels 1.10.2 SQLAlchemy 1.4.15 sqlalchemy-migrate 0.13.0 sqlparse 0.4.1 statsd 3.3.0 statsmodels 0.12.2 stevedore 3.3.0 sympy 1.8 tables 3.6.1 tabview 1.4.4 taskflow 4.6.0 tblib 1.7.0 Tempita 0.5.2 tenacity 7.0.0 tensorboard 2.5.0 tensorboard-data-server 0.6.1 tensorboard-plugin-wit 1.8.0 terminado 0.9.4 testpath 0.4.4 testresources 2.0.1 testscenarios 0.5.0 testtools 2.4.0 textdistance 4.2.1 threadpoolctl 2.1.0 three-merge 0.1.1 thrift 0.13.0 tifffile 2021.4.8 tinydb 4.4.0 tinyrecord 0.2.0 tk 0.1.0 toml 0.10.2 toolz 0.11.1 tooz 2.8.0 tornado 6.1 tqdm 4.59.0 traceback2 1.4.0 traitlets 5.0.5 traits 6.2.0 twine 3.4.1 Twisted 21.2.0 twisted-iocpsupport 1.0.1 typed-ast 1.4.2 typing 3.7.4.3 typing-extensions 3.7.4.3 ujson 4.0.2 unicodecsv 0.14.1 unittest-expander 0.3.1 unittest2 1.1.0 urllib3 1.26.4 userpath 1.4.2 ushlex 0.99.1 vine 5.0.0 virtualenv 20.4.4 virtualenv-clone 0.5.4 voluptuous 0.12.1 warlock 1.3.3 watchdog 1.0.2 wcwidth 0.2.5 webencodings 0.5.1 WebOb 1.8.7 websocket-client 0.59.0 websockify 0.9.0 Werkzeug 1.0.1 wheel 0.36.2 widgetsnbextension 3.5.1 win-inet-pton 1.1.0 win-unicode-console 0.5 wincertstore 0.2 windows-curses 2.2.0 WMI 1.5.1 wrapt 1.12.1 xlrd 2.0.1 XlsxWriter 1.3.8 xlwings 0.23.0 xlwt 1.3.0 xmlrunner 1.7.7 xmltodict 0.12.0 yapf 0.31.0 yappi 1.3.2 yarl 1.6.3 zict 2.0.0 zipp 3.4.1 zmq 0.0.0 zope.event 4.5.0 zope.interface 5.3.0

aalouie commented 3 years ago

that looks like a reverse dependency, its not clear to me what else is in use in your codebase (im unfamiliar with anaconda as well)

Yep, me too. Lots of things I had installed and forgot what is what. However, the full list as following:Package Version Location

absl-py 0.13.0 aenum 3.1.0 aio-pika 6.8.0 aiohttp 3.7.4.post0 aiormq 3.3.1 alabaster 0.7.12 alembic 1.5.8 algo 1.3.1 altgraph 0.17 amqp 5.0.6 anaconda-client 1.7.2 anaconda-navigator 2.0.3 anaconda-project 0.10.0 anyio 2.2.0 apipkg 1.5 appdirs 1.4.4 argcomplete 1.12.3 argh 0.26.2 argon2-cffi 20.1.0 asgiref 3.3.4 asn1crypto 1.4.0 astroid 2.5 astropy 4.2.1 async-generator 1.10 async-timeout 3.0.1 asyncio 3.4.3 atomicwrites 1.4.0 attrs 21.2.0 Automat 20.2.0 automaton 2.3.0 autopep8 1.5.4 autoreview 0.2.5 Babel 2.9.1 backcall 0.2.0 backoff 1.10.0 backports.functools-lru-cache 1.6.4 backports.shutil-get-terminal-size 1.0.0 backports.tempfile 1.0 backports.weakref 1.0.post1 bcrypt 3.2.0 beautifulsoup4 4.9.3 binary 1.0.0 bitarray 2.1.0 bkcharts 0.2 black 19.10b0 bleach 3.3.0 bokeh 2.3.2 boto 2.49.0 Bottleneck 1.3.2 brotlipy 0.7.0 cachetools 4.2.1 castellan 3.7.1 cbor2 5.4.0 certifi 2020.12.5 cffi 1.14.5 chardet 4.0.0 chess 1.5.0 ci-info 0.2.0 click 8.0.1 click-default-group 1.2.2 cliff 3.7.0 cloudpickle 1.6.0 clyent 1.2.2 cmd2 1.5.0 colorama 0.4.4 colorful 0.5.4 comtypes 1.1.9 conda 4.10.1 conda-build 3.21.4 conda-content-trust 0+unknown conda-pack 0.6.0 conda-package-handling 1.7.3 conda-repo-cli 1.0.4 conda-token 0.3.0 conda-verify 3.4.2 configobj 5.0.6 configparser 5.0.2 constantly 15.1.0 constants 0.6.0 contextlib2 0.6.0.post1 coverage 5.5 cryptography 3.4.7 cursive 0.2.2 cx-Freeze 6.6 cx-Logging 3.0 cycler 0.10.0 Cython 0.29.23 cytoolz 0.11.0 daemonize 2.5.0 daemonocle 1.2.3 dask 2021.4.0 debtcollector 2.2.0 decorator 4.4.2 defusedxml 0.7.1 Deprecated 1.2.12 diff-match-patch 20200713 discord 1.7.3 discord.py 1.7.3 distlib 0.3.1 distributed 2021.5.0 distro 1.5.0 Django 1.8.6 django-contrib-comments 2.1.0 django-inspect 0.4.1 dnspython 1.16.0 dock 0.0.1 docker 5.0.0 docker-py 1.10.6 docker-pycreds 0.4.0 docopt 0.6.2 docutils 0.16 dogpile.cache 1.1.2 e 1.4.5 entrypoints 0.3 et-xmlfile 1.0.1 etelemetry 0.2.2 eurostat 0.2.3 eventlet 0.30.2 execnet 1.8.1 extras 1.0.0 fastcache 1.1.0 fasteners 0.16 filelock 3.0.12 fitz 0.0.1.dev2 fixtures 3.0.0 flake8 3.8.4 Flask 1.1.2 flawless 0.4.4 fsspec 0.9.0 future 0.18.2 futurist 2.3.0 gevent 21.1.2 glob2 0.7 gmpy2 2.0.8 google-api-core 1.26.3 google-auth 1.29.0 google-auth-oauthlib 0.4.4 google-cloud-bigquery 2.13.1 google-cloud-core 1.6.0 google-crc32c 1.1.2 google-resumable-media 1.2.0 googleapis-common-protos 1.53.0 greenlet 1.1.0 grpcio 1.37.0 guildai 0.7.3 h5py 2.10.0 HeapDict 1.0.1 html-testRunner 1.2.1 html5lib 1.1 httplib2 0.19.1 hyperlink 21.0.0 idna 2.10 imagecodecs 2021.3.31 imageio 2.9.0 imagesize 1.2.0 importlib-metadata 4.0.1 incremental 21.3.0 iniconfig 1.1.1 inspect-it 0.3.2 intervaltree 3.1.0 invoke 1.5.0 ipykernel 5.3.4 ipython 7.22.0 ipython-genutils 0.2.0 ipywidgets 7.6.3 iso8601 0.1.14 isodate 0.6.0 isort 5.8.0 itsdangerous 2.0.0 jaeger 0.7.0 jdcal 1.4.1 jedi 0.17.2 Jinja2 3.0.0 jmespath 0.10.0 joblib 1.0.1 json5 0.9.5 jsonpatch 1.32 jsonpath-rw 1.4.0 jsonpointer 2.1 jsonschema 3.2.0 junit-xml 1.9 junitxml 0.7 jupyter 1.0.0 jupyter-client 6.1.12 jupyter-console 6.4.0 jupyter-core 4.7.1 jupyter-packaging 0.7.12 jupyter-server 1.4.1 jupyterlab 3.0.14 jupyterlab-pygments 0.1.2 jupyterlab-server 2.4.0 jupyterlab-widgets 1.0.0 keyring 22.3.0 keystoneauth1 4.3.1 keystonemiddleware 9.2.0 kiwisolver 1.3.1 kombu 5.0.2 launcher 0.1 lazy-object-proxy 1.6.0 libarchive-c 2.9 line-profiler 2.1.2 linecache2 1.0.0 llvmlite 0.36.0 locket 0.2.1 logger 1.4 louie-test 1.0.0 c:...\python\python39\louie-test lxml 4.6.3 Mako 1.1.4 Markdown 3.3.4 MarkupSafe 2.0.0 matplot 0.1.9 matplotlib 3.4.2 mccabe 0.6.1 memory-profiler 0.58.0 menuinst 1.4.16 microversion-parse 1.0.1 mistune 0.8.4 mkl-fft 1.3.0 mkl-random 1.2.1 mkl-service 2.3.0 mock 4.0.3 more-itertools 8.7.0 moves 0.1 mpmath 1.2.1 msgpack 1.0.2 multidict 5.1.0 multipledispatch 0.6.0 munch 2.5.0 mypy-extensions 0.4.3 mysql 0.0.2 mysqlclient 2.0.3 navigator-updater 0.2.1 nbclassic 0.2.6 nbclient 0.5.3 nbconvert 6.0.7 nbformat 5.1.3 nest-asyncio 1.5.1 netaddr 0.8.0 netifaces 0.10.9 networkx 2.5.1 nibabel 3.2.1 nipype 1.6.0 nltk 3.6.2 nose 1.3.7 notebook 6.3.0 nova 23.0.0 numba 0.53.1 numexpr 2.7.3 numpy 1.20.2 numpydoc 1.1.0 oauth2 1.9.0.post1 oauthlib 3.1.1 oejskit 0.9.0 olefile 0.46 omniture 0.3.1 openpyxl 3.0.7 openstacksdk 0.55.0 opentelemetry-api 1.2.0 opentelemetry-exporter-jaeger 1.2.0 opentelemetry-exporter-jaeger-proto-grpc 1.2.0 opentelemetry-exporter-jaeger-thrift 1.2.0 opentelemetry-instrumentation 0.21b0 opentelemetry-instrumentation-flask 0.21b0 opentelemetry-instrumentation-wsgi 0.21b0 opentelemetry-sdk 1.2.0 opentelemetry-semantic-conventions 0.21b0 opentelemetry-util-http 0.21b0 os-brick 4.3.1 os-client-config 2.1.0 os-resource-classes 1.0.0 os-service-types 1.7.0 os-traits 2.5.0 os-vif 2.4.0 os-win 5.4.0 os-xenapi 0.3.4 osc-lib 2.3.1 oslo.cache 2.7.0 oslo.concurrency 4.4.0 oslo.config 8.5.0 oslo.context 3.2.0 oslo.db 8.5.0 oslo.i18n 5.0.1 oslo.log 4.4.0 oslo.messaging 12.7.1 oslo.middleware 4.2.0 oslo.policy 3.7.0 oslo.privsep 2.5.0 oslo.reports 2.2.0 oslo.rootwrap 6.2.0 oslo.serialization 4.1.0 oslo.service 2.5.0 oslo.upgradecheck 1.3.0 oslo.utils 4.8.0 oslo.versionedobjects 2.4.0 ovs 2.13.3 ovsdbapp 1.9.0 packaging 20.9 pamqp 2.3.0 pandas 1.2.4 pandaSDMX 0.9 pandocfilters 1.4.3 paramiko 2.7.2 parse 1.19.0 parse-type 0.5.2 parso 0.7.0 partd 1.2.0 Paste 3.5.0 PasteDeploy 2.1.1 path 15.1.2 pathlib 1.0.1 pathlib2 2.3.5 pathspec 0.7.0 pathtools 0.1.2 patsy 0.5.1 pbr 5.5.1 peewee 3.14.4 pefile 2019.4.18 pep8 1.7.1 pexpect 4.8.0 pickleshare 0.7.5 Pillow 8.2.0 pip 21.1.3 pip-review 1.1.0 pipenv 2020.11.15 pipx 0.16.1.0 pkginfo 1.7.0 pluggy 0.13.1 ply 3.11 prettyprinter 0.18.0 prettytable 0.7.2 progressbar2 3.53.1 project-sync 0.2.0 prometheus-client 0.10.1 prompt-toolkit 3.0.17 proto-plus 1.18.1 protobuf 3.15.8 prov 2.0.0 psutil 5.8.0 psycopg2-binary 2.8.6 ptyprocess 0.7.0 pubnub 5.1.3 py 1.10.0 py4j 0.10.9 pyaml 20.4.0 pyasn1 0.4.8 pyasn1-modules 0.2.8 pycadf 3.1.1 pycodestyle 2.6.0 pycosat 0.6.3 pycowsay 0.0.0.1 pycparser 2.20 pycryptodomex 3.10.1 pycurl 7.43.0.6 pydocstyle 6.0.0 pydot 1.4.2 pyecharts 1.9.0 pyerfa 1.7.3 pyflakes 2.2.0 Pygments 2.8.1 pyinstaller 5.0.dev0 pyinstaller-hooks-contrib 2021.1 pylint 2.7.4 pyloco 0.0.139 pyls-black 0.4.6 pyls-spyder 0.3.2 PyMI 1.0.6 pymodbus 2.5.2 Pympler 0.9 PyMuPDF 1.18.12 PyNaCl 1.4.0 pyodbc 4.0.0-unsupported pyOpenSSL 20.0.1 pyparsing 2.4.7 pyperclip 1.8.2 pypi 2.1 pypinfo 19.0.0 pypowervm 1.1.24 pyreadline 2.1 pyreadline3 3.3 pyrsistent 0.17.3 pyserial 3.5 PySimpleGUI 4.40.0 PySimpleGUI-chess 0.0.3 PySocks 1.7.1 pyspark 3.1.2 pytest 6.2.4 pytest-asyncio 0.15.1 pytest-bdd 4.1.0 pytest-cache 1.0 pytest-cov 2.12.1 pytest-django 4.4.0 pytest-flakes 4.0.3 pytest-forked 1.3.0 pytest-html 3.1.1 pytest-instafail 0.4.2 pytest-metadata 1.11.0 pytest-ordering 0.6 pytest-pep8 1.0.6 pytest-rerunfailures 10.0 pytest-timeout 1.4.2 pytest-twisted 1.13.2 pytest-xdist 2.2.1 python-barbicanclient 5.1.0 python-can 3.3.4 python-chess 1.999 python-cinderclient 7.4.0 python-dateutil 2.8.1 python-dotenv 0.18.0 python-editor 1.0.4 python-glanceclient 3.3.0 python-jsonrpc-server 0.4.0 python-keystoneclient 4.2.0 python-language-server 0.36.2 python-mimeparse 1.6.0 python-neutronclient 7.3.0 python-twitter 0.8.2 c:...\python\python39\python-twitter-0.8.2 python-utils 2.5.6 pytz 2021.1 PyWavelets 1.1.1 pywin32 227 pywin32-ctypes 0.2.0 pywinpty 0.5.7 pyxnat 1.4 PyYAML 5.4.1 pyzmq 22.0.3 QDarkStyle 2.8.1 QtAwesome 1.0.2 qtconsole 5.0.3 QtPy 1.9.0 rdflib 5.0.0 readme-renderer 29.0 regex 2021.4.4 repoze.lru 0.7 requests 2.25.1 requests-oauthlib 1.3.0 requests-toolbelt 0.9.1 requestsexceptions 1.4.0 retrying 1.3.3 rfc3986 1.4.0 rope 0.18.0 Routes 2.5.1 rsa 4.7.2 Rtree 0.9.7 ruamel-yaml-conda 0.15.100 scikit-build 0.11.1 scikit-image 0.18.1 scikit-learn 0.24.2 scikit-optimize 0.8.1 scipy 1.6.3 sdss-clu 1.2.1 sdss-drift 0.2.2 sdsstools 0.4.10 seaborn 0.11.1 semantic-version 2.8.5 Send2Trash 1.5.0 setuptools 57.0.0 shiboken2 5.15.2 simplegeneric 0.8.1 simplejson 3.17.2 SimpleWebSocketServer 0.1.1 singledispatch 0.0.0 sip 4.19.13 six 1.15.0 sklearn 0.0 sniffio 1.2.0 snowballstemmer 2.1.0 sortedcollections 2.1.0 sortedcontainers 2.3.0 soupsieve 2.2.1 spark 0.2.1 Sphinx 4.0.1 sphinxcontrib-applehelp 1.0.2 sphinxcontrib-devhelp 1.0.2 sphinxcontrib-htmlhelp 1.0.3 sphinxcontrib-jsmath 1.0.1 sphinxcontrib-qthelp 1.0.3 sphinxcontrib-serializinghtml 1.1.4 sphinxcontrib-websupport 1.2.4 spotify 0.10.2 spotipy 2.18.0 spyder 4.2.5 spyder-kernels 1.10.2 SQLAlchemy 1.4.15 sqlalchemy-migrate 0.13.0 sqlparse 0.4.1 statsd 3.3.0 statsmodels 0.12.2 stevedore 3.3.0 sympy 1.8 tables 3.6.1 tabview 1.4.4 taskflow 4.6.0 tblib 1.7.0 Tempita 0.5.2 tenacity 7.0.0 tensorboard 2.5.0 tensorboard-data-server 0.6.1 tensorboard-plugin-wit 1.8.0 terminado 0.9.4 testpath 0.4.4 testresources 2.0.1 testscenarios 0.5.0 testtools 2.4.0 textdistance 4.2.1 threadpoolctl 2.1.0 three-merge 0.1.1 thrift 0.13.0 tifffile 2021.4.8 tinydb 4.4.0 tinyrecord 0.2.0 tk 0.1.0 toml 0.10.2 toolz 0.11.1 tooz 2.8.0 tornado 6.1 tqdm 4.59.0 traceback2 1.4.0 traitlets 5.0.5 traits 6.2.0 twine 3.4.1 Twisted 21.2.0 twisted-iocpsupport 1.0.1 typed-ast 1.4.2 typing 3.7.4.3 typing-extensions 3.7.4.3 ujson 4.0.2 unicodecsv 0.14.1 unittest-expander 0.3.1 unittest2 1.1.0 urllib3 1.26.4 userpath 1.4.2 ushlex 0.99.1 vine 5.0.0 virtualenv 20.4.4 virtualenv-clone 0.5.4 voluptuous 0.12.1 warlock 1.3.3 watchdog 1.0.2 wcwidth 0.2.5 webencodings 0.5.1 WebOb 1.8.7 websocket-client 0.59.0 websockify 0.9.0 Werkzeug 1.0.1 wheel 0.36.2 widgetsnbextension 3.5.1 win-inet-pton 1.1.0 win-unicode-console 0.5 wincertstore 0.2 windows-curses 2.2.0 WMI 1.5.1 wrapt 1.12.1 xlrd 2.0.1 XlsxWriter 1.3.8 xlwings 0.23.0 xlwt 1.3.0 xmlrunner 1.7.7 xmltodict 0.12.0 yapf 0.31.0 yappi 1.3.2 yarl 1.6.3 zict 2.0.0 zipp 3.4.1 zmq 0.0.0 zope.event 4.5.0 zope.interface 5.3.0

Do you have any idea to fix this? or to re-install python? Since I have just repaired it by re-running python-3.9.6-amd64.exe, sadly doesn't work.

RonnyPfannschmidt commented 3 years ago

my next recommendation is to grep your site packages for all files with a pytest_addoption, and then find all of those that pass a "callback" value as action - that will find the breaker

aalouie commented 3 years ago

my next recommendation is to grep your site packages for all files with a pytest_addoption, and then find all of those that pass a "callback" value as action - that will find the breaker

Im using win10 64x, with Pycharm Does it works with grep?

RonnyPfannschmidt commented 3 years ago

i have no idea how to "grep" on windows

on linux i'd install "silver searcher" and run ag "pytest_addoption" "c:\programdata\anaconda3\lib\site-packages" as a starting point

aalouie commented 3 years ago

i have no idea how to "grep" on windows

on linux i'd install "silver searcher" and run ag "pytest_addoption" "c:\programdata\anaconda3\lib\site-packages" as a starting point

Hi RonnyPfannschmidt,

I installed silver searcher, run: ag "pytest_addoption" "C:...\Python\Python39\Lib\site-packages" and finally got this: C:...\Python\Python39\Lib\site-packages/aiohttp/pytest_plugin.py 33:def pytest_addoption(parser): # type: ignore

C:...\Python\Python39\Lib\site-packages/notebook/tests/conftest.py 3:def pytest_addoption(parser):

C:...\Python\Python39\Lib\site-packages/sympy/conftest.py 52:def pytest_addoption(parser):

The-Compiler commented 3 years ago

If you look through those files below the line printed by ag, you should find the plugin which uses callback in some way.

RonnyPfannschmidt commented 3 years ago

at first glance none of those seem responsible, (conftests arent used and aiohttp should be working correct as its maintained and recent)

the next step would be to run pytest with PYTEST_DEBUG=1 and see what invocations happen

aalouie commented 3 years ago

at first glance none of those seem responsible, (conftests arent used and aiohttp should be working correct as its maintained and recent)

the next step would be to run pytest with PYTEST_DEBUG=1 and see what invocations happen

Hi RonnyPfannschmidt, It leads lots of things output, I have attached the file which named "PYTESTwithDebug1.txt" PYTESTwithDebug1.txt

RonnyPfannschmidt commented 3 years ago

i did a initial skim, i took note that the trace output is a pain wrt figuring which plugin

however i saw oejskit - this is a plugin that's unmaintained since about a decade, the source repo of it is gone (bitbucket annihilated it) and its likely the cause please report if that matches, else i will dig a little deeper

aalouie commented 3 years ago

i did a initial skim, i took note that the trace output is a pain wrt figuring which plugin

however i saw oejskit - this is a plugin that's unmaintained since about a decade, the source repo of it is gone (bitbucket annihilated it) and its likely the cause please report if that matches, else i will dig a little deeper

How should I do to avoid oejskit and make it works?

RonnyPfannschmidt commented 3 years ago

uninstall it, and check what pulled it in

aalouie commented 3 years ago

uninstall it, and check what pulled it in

uninstalled and here is the 2nd report. attached: PYTESTwithDebug2.txt PYTESTwithDebug2.txt

RonnyPfannschmidt commented 3 years ago

next one is a broken zmq install, no idea how to fix that on windows/conda, currently no pytest_debug needed

aalouie commented 3 years ago

next one is a broken zmq install, no idea how to fix that on windows/conda, currently no pytest_debug needed I did the following things: pip uninstall zmq pip install zmq

doesn't work

aalouie commented 3 years ago

next one is a broken zmq install, no idea how to fix that on windows/conda, currently no pytest_debug needed I did the following things: pip uninstall zmq pip install zmq

doesn't work

actually, the zmq is kept in version 0.0.0 and cannot be upgrade I remove it from my folder, but have no idea how to navigate the code to call pyzmq it still keep calling zmq.backend.cython

RonnyPfannschmidt commented 3 years ago

I believe that you have to use conda to manage it, I am unfamiliar with conda, and personally avoid it

aalouie commented 3 years ago

I believe that you have to use conda to manage it, I am unfamiliar with conda, and personally avoid it

should i remove it? Im using Anaconda3

aalouie commented 3 years ago

it report error while one by one importing the items of list: from . import ( constants, error, message, context, socket, utils, _poll, _version, _device, _proxy_steerable, ) in ini.py file

aalouie commented 3 years ago

https://github.com/zeromq/pyzmq/issues/1460 note in this post seems talked a similar issue, but still have no idea how to fix

aalouie commented 3 years ago

Hi RonnyPfannschmidt, after runinstalled Anaconda3, tried to use pytest, it required numpy and some other plugins should be installed, the conflict is: guildai 0.7.3 requires click<8,>=7.1.2, but you have click 8.0.1 which is incompatible. sdss-clu 1.0.3 requires click<9.0,>=8.0, but you have click 7.1.2 which is incompatible. PytestClickvConflict.txt

PytestClickvConflict.txt included all the output

aalouie commented 3 years ago

Hi RonnyPfannschmidt, Attachent is my env file. eenv.txt

I uninstall python, pycharm, all plugins, re-install them, issue still raises.

aalouie commented 3 years ago

I recover this by manually clearing all files in folder site-packages->uninstall and re-install python.