Hi, *1 What is your environment (OS)?* macOS High Sierra Version 10.13.6
*2 Which version of GLOBAL are you using?* gtags (GNU GLOBAL) 6.6.2 *3 What did you do? (command line)* > $ export GTAGSLABEL=native-pygments > $ export GTAGSCONF=/usr/local/etc/gtags.conf > $ gtags -v > [Fri Sep 07 14:22:48 CST 2018] Gtags started. > Using configuration file '/usr/local/etc/gtags.conf'. > Using configuration label 'native-pygments'. > Using plug-in parser. > [Fri Sep 07 14:22:48 CST 2018] Creating 'GTAGS' and 'GRTAGS'. > [1] extracting tags of > OpenRPD/openrpd/rpd_service_suite/service_suite_controller.py > Traceback (most recent call last): > File > "/usr/local/Cellar/global/6.6.2_1/share/gtags/script/pygments_parser.py", > line 27, in <module> > import pygments.lexers > ImportError: No module named pygments.lexers > gtags: unexpected EOF. *4 What did you expect from it?* This gtags is installed by "brew install global" command, and the dependency python2 is also installed. Later, "pip install pygments" was also implemented. So, I suppose above error should not happened. *5 How to fix it?* Just checked file "/usr/local/Cellar/global/6.6.2_1/share/gtags/script/pygments_parser.py", it starts with: > #!/usr/bin/python Change it to > #!/usr/bin/env python Then "gtags -v" can work. Because Homebrew installed python into "/usr/local/bin/python", not the original "/usr/bin/python", so when running "pip install pygments", it refers to the python that installed by Homebrew.
_______________________________________________ Bug-global mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-global
