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

'type' object is not subscriptable #100

Open
yqy6611 opened this issue Oct 14, 2024 · 2 comments
Open

'type' object is not subscriptable #100

yqy6611 opened this issue Oct 14, 2024 · 2 comments

Comments

@yqy6611
Copy link

yqy6611 commented Oct 14, 2024

Hi,

I encountered this error:

(vibrant) e2s2@e2s2-super-server-1:~/Softwares/VIBRANT$ python3 VIBRANT_run.py -h
Traceback (most recent call last):
File "VIBRANT_run.py", line 24, in
import matplotlib
File "/home/e2s2/miniconda3/envs/vibrant/lib/python3.7/site-packages/matplotlib/init.py", line 109, in
from . import _api, _version, cbook, docstring, rcsetup
File "/home/e2s2/miniconda3/envs/vibrant/lib/python3.7/site-packages/matplotlib/rcsetup.py", line 28, in
from matplotlib.fontconfig_pattern import parse_fontconfig_pattern
File "/home/e2s2/miniconda3/envs/vibrant/lib/python3.7/site-packages/matplotlib/fontconfig_pattern.py", line 15, in
from pyparsing import (Literal, ZeroOrMore, Optional, Regex, StringEnd,
File "/home/e2s2/miniconda3/envs/vibrant/lib/python3.7/site-packages/pyparsing/init.py", line 129, in
from .util import *
File "/home/e2s2/miniconda3/envs/vibrant/lib/python3.7/site-packages/pyparsing/util.py", line 14, in
class __config_flags:
File "/home/e2s2/miniconda3/envs/vibrant/lib/python3.7/site-packages/pyparsing/util.py", line 17, in __config_flags
_all_names: list[str] = []
TypeError: 'type' object is not subscriptable

Anyone knows how to solve it? Many thanks!

@KrisKieft
Copy link
Member

I'm not sure what the issue is but my guess is there is a version issue. At the time of writing VIBRANT python >=3.5 and any matplotlib seemed to work. I'd suggest creating an environment with python v3.7 as an example and see if that works.

@yqy6611
Copy link
Author

yqy6611 commented Oct 22, 2024

I've solved this problem myself by downgrading the pyparsing package to 2.4.7.

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