allenai / pawls

Software that makes labeling PDFs easy.
https://pawls.apps.allenai.org
Apache License 2.0
391 stars 74 forks source link

PAWLS cli syntax error - Possible package versioning issue #185

Open SlappyAUS opened 2 years ago

SlappyAUS commented 2 years ago

Running the PAWLs CLI I get this:

Traceback (most recent call last):
  File "/Users/username/opt/anaconda3/envs/DataScience/bin/pawls", line 33, in <module>
    sys.exit(load_entry_point('pawls==0.0.1', 'console_scripts', 'pawls')())
  File "/Users/username/opt/anaconda3/envs/DataScience/bin/pawls", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/Users/username/opt/anaconda3/envs/DataScience/lib/python3.8/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/Users/username/opt/anaconda3/envs/DataScience/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 843, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/Users/username/opt/anaconda3/envs/DataScience/lib/python3.8/site-packages/pawls-0.0.1-py3.8.egg/pawls/__main__.py", line 3, in <module>
    from pawls import commands
  File "/Users/username/opt/anaconda3/envs/DataScience/lib/python3.8/site-packages/pawls-0.0.1-py3.8.egg/pawls/commands/__init__.py", line 6, in <module>
    from pawls.commands.metric import metric
  File "/Users/username/opt/anaconda3/envs/DataScience/lib/python3.8/site-packages/pawls-0.0.1-py3.8.egg/pawls/commands/metric.py", line 15, in <module>
    from sklearn.metrics import classification_report
  File "/Users/username/opt/anaconda3/envs/DataScience/lib/python3.8/site-packages/sklearn/__init__.py", line 80, in <module>
    from .base import clone
  File "/Users/username/opt/anaconda3/envs/DataScience/lib/python3.8/site-packages/sklearn/base.py", line 21, in <module>
    from .utils import _IS_32BIT
  File "/Users/username/opt/anaconda3/envs/DataScience/lib/python3.8/site-packages/sklearn/utils/__init__.py", line 23, in <module>
    from .class_weight import compute_class_weight, compute_sample_weight
  File "/Users/username/opt/anaconda3/envs/DataScience/lib/python3.8/site-packages/sklearn/utils/class_weight.py", line 7, in <module>
    from .validation import _deprecate_positional_args
  File "/Users/username/opt/anaconda3/envs/DataScience/lib/python3.8/site-packages/sklearn/utils/validation.py", line 26, in <module>
    from .fixes import _object_dtype_isnan
  File "/Users/username/opt/anaconda3/envs/DataScience/lib/python3.8/site-packages/sklearn/utils/fixes.py", line 18, in <module>
    import scipy.stats
  File "/Users/username/opt/anaconda3/envs/DataScience/lib/python3.8/site-packages/scipy/stats/__init__.py", line 441, in <module>
    from .stats import *
  File "/Users/username/opt/anaconda3/envs/DataScience/lib/python3.8/site-packages/scipy/stats/stats.py", line 43, in <module>
    from . import distributions
  File "/Users/username/opt/anaconda3/envs/DataScience/lib/python3.8/site-packages/scipy/stats/distributions.py", line 8, in <module>
    from ._distn_infrastructure import (rv_discrete, rv_continuous, rv_frozen)
  File "/Users/username/opt/anaconda3/envs/DataScience/lib/python3.8/site-packages/scipy/stats/_distn_infrastructure.py", line 24, in <module>
    from scipy import optimize
  File "/Users/username/opt/anaconda3/envs/DataScience/lib/python3.8/site-packages/scipy/optimize/__init__.py", line 401, in <module>
    from ._minimize import *
  File "/Users/username/opt/anaconda3/envs/DataScience/lib/python3.8/site-packages/scipy/optimize/_minimize.py", line 27, in <module>
    from ._trustregion_constr import _minimize_trustregion_constr
  File "/Users/username/opt/anaconda3/envs/DataScience/lib/python3.8/site-packages/scipy/optimize/_trustregion_constr/__init__.py", line 4, in <module>
    from .minimize_trustregion_constr import _minimize_trustregion_constr
  File "/Users/username/opt/anaconda3/envs/DataScience/lib/python3.8/site-packages/scipy/optimize/_trustregion_constr/minimize_trustregion_constr.py", line 5, in <module>
    from .._constraints import (
  File "/Users/username/opt/anaconda3/envs/DataScience/lib/python3.8/site-packages/scipy/optimize/_constraints.py", line 8, in <module>
    from numpy.testing import suppress_warnings
  File "/Users/username/opt/anaconda3/envs/DataScience/lib/python3.8/site-packages/numpy/testing/__init__.py", line 8, in <module>
    from unittest import TestCase
  File "/Users/username/opt/anaconda3/envs/DataScience/lib/python3.8/unittest/__init__.py", line 60, in <module>
    from .async_case import IsolatedAsyncioTestCase
  File "/Users/username/opt/anaconda3/envs/DataScience/lib/python3.8/unittest/async_case.py", line 1, in <module>
    import asyncio
  File "/Users/username/opt/anaconda3/envs/DataScience/lib/python3.8/site-packages/asyncio/__init__.py", line 21, in <module>
    from .base_events import *
  File "/Users/username/opt/anaconda3/envs/DataScience/lib/python3.8/site-packages/asyncio/base_events.py", line 296
    future = tasks.async(future, loop=self)
                   ^
SyntaxError: invalid syntax