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

Got DeprecationWarning when running pytest in Python 3.7.3 #69

Open
johnklee opened this issue Sep 12, 2019 · 3 comments
Open

Got DeprecationWarning when running pytest in Python 3.7.3 #69

johnklee opened this issue Sep 12, 2019 · 3 comments

Comments

@johnklee
Copy link

I fixed the compatibility issue to run in Python 3.7.3 and still got below warning for reference:

env_3/lib/python3.7/site-packages/normalize/property/__init__.py:161
  /root/Tasks/watson-for-cybersecurity/env_3/lib/python3.7/site-packages/normalize/property/__init__.py:161: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
    args = inspect.getargspec(func)

env_3/lib/python3.7/site-packages/normalize/visitor.py:393
  /root/Tasks/watson-for-cybersecurity/env_3/lib/python3.7/site-packages/normalize/visitor.py:393: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
    grok_coll_types = (collections.Sequence, collections.Mapping)

Open issue here for reference and fix.

@rbm
Copy link
Contributor

rbm commented Sep 12, 2019

@johnklee Are you saying you got this warning after running normalize through 2to3 or futurize? Normalize is not currently Python 3 compatible, although we are working on that now.

@johnklee
Copy link
Author

@rbm Partially right, I actually modify the locally installed version ("site-packages") to be Python3 compatible and then still got above DeprecationWarning. Just post here for reference and if there is a released version for Python3 without above warning, I will close this issue. Any suggestion is appreciated.

@rbm
Copy link
Contributor

rbm commented Sep 19, 2019

@johnklee Thanks. We're working on Python 3 support for normalize now, so we'll follow up when that's released. /cc @blalockma

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

No branches or pull requests

2 participants