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

sparse running error: AttributeError: '_thread._local' object has no attribute 'thrift_cache' #510

Open
YouZhengChuan opened this issue Sep 26, 2024 · 0 comments

Comments

@YouZhengChuan
Copy link

  • OS: Apple M1, macOS 12.7.4
  • streamparse==5.0.1
python3.6 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install streamparse==5.0.1

sparse throws an error when running (regardless of the parameters):

./venv/bin/sparse --version
Traceback (most recent call last):
  File "./venv/bin/sparse", line 5, in <module>
    from streamparse.cli.sparse import main
  File "/opt/storm-python-learn/venv/lib/python3.6/site-packages/streamparse/__init__.py", line 9, in <module>
    from . import bolt, cli, component, dsl, spout, storm
  File "/opt/storm-python-learn/venv/lib/python3.6/site-packages/streamparse/bolt.py", line 5, in <module>
    from .storm.bolt import *
  File "/opt/storm-python-learn/venv/lib/python3.6/site-packages/streamparse/storm/__init__.py", line 7, in <module>
    from .bolt import BatchingBolt, Bolt, JavaBolt, ShellBolt, TicklessBatchingBolt
  File "/opt/storm-python-learn/venv/lib/python3.6/site-packages/streamparse/storm/bolt.py", line 7, in <module>
    from ..dsl.bolt import JavaBoltSpec, ShellBoltSpec
  File "/opt/storm-python-learn/venv/lib/python3.6/site-packages/streamparse/dsl/__init__.py", line 5, in <module>
    from .stream import Grouping, Stream
  File "/opt/storm-python-learn/venv/lib/python3.6/site-packages/streamparse/dsl/stream.py", line 4, in <module>
    from ..thrift import JavaObject, NullStruct, storm_thrift, StreamInfo
  File "/opt/storm-python-learn/venv/lib/python3.6/site-packages/streamparse/thrift.py", line 785, in <module>
    storm_thrift = thriftpy2.load_fp(io.StringIO(_THRIFT_STR), module_name="storm_thrift")
  File "/opt/storm-python-learn/venv/lib/python3.6/site-packages/thriftpy2/parser/__init__.py", line 171, in load_fp
    thrift = parse_fp(source, module_name)
  File "/opt/storm-python-learn/venv/lib/python3.6/site-packages/thriftpy2/parser/parser.py", line 628, in parse_fp
    if enable_cache and module_name in threadlocal.thrift_cache:
AttributeError: '_thread._local' object has no attribute 'thrift_cache'
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

1 participant