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

unable to test #23

Open
inandi opened this issue Aug 15, 2020 · 1 comment
Open

unable to test #23

inandi opened this issue Aug 15, 2020 · 1 comment

Comments

@inandi
Copy link

inandi commented Aug 15, 2020

getting this error while running the test files

PS E:\xampp\htdocs\profanity-check\tests> python .\test_profanity_check.py
Traceback (most recent call last):
  File ".\test_profanity_check.py", line 1, in <module>
    from profanity_check import predict, predict_prob
  File "C:\Python27\lib\site-packages\profanity_check\__init__.py", line 1, in <module>
    from .profanity_check import predict, predict_prob
  File "C:\Python27\lib\site-packages\profanity_check\profanity_check.py", line 5, in <module>
    vectorizer = joblib.load(pkg_resources.resource_filename('profanity_check', 'data/vectorizer.joblib'))
  File "C:\Python27\lib\site-packages\sklearn\externals\joblib\numpy_pickle.py", line 598, in load
    obj = _unpickle(fobj, filename, mmap_mode)
  File "C:\Python27\lib\site-packages\sklearn\externals\joblib\numpy_pickle.py", line 526, in _unpickle
    obj = unpickler.load()
  File "C:\Python27\lib\pickle.py", line 864, in load
    dispatch[key](self)
  File "C:\Python27\lib\pickle.py", line 892, in load_proto
    raise ValueError, "unsupported pickle protocol: %d" % proto
ValueError: unsupported pickle protocol: 3

I am new in python, please forgive me if this is such a silly issue. thanks in advance!!

@menkotoglou
Copy link

You need to install pytest in your virtual env and then test with it.

Try
pip3 install pytest
...
pytest.

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

2 participants