Wo error
See original GitHub issueTraceback (most recent call last): File "/opt/wo/bin/wo", line 8, in <module> sys.exit(main()) File "/opt/wo/lib/python3.6/site-packages/wo/cli/main.py", line 93, in main with app: File "/opt/wo/lib/python3.6/site-packages/cement/core/foundation.py", line 1501, in __enter__ self.setup() File "/opt/wo/lib/python3.6/site-packages/cement/core/foundation.py", line 835, in setup __import__(self._meta.bootstrap, globals(), locals(), [], 0) File "/opt/wo/lib/python3.6/site-packages/wo/cli/bootstrap.py", line 7, in <module> from wo.cli.controllers.base import WOBaseController File "/opt/wo/lib/python3.6/site-packages/wo/cli/controllers/base.py", line 5, in <module> from wo.core.variables import WOVar File "/opt/wo/lib/python3.6/site-packages/wo/core/variables.py", line 13, in <module> class WOVar(): File "/opt/wo/lib/python3.6/site-packages/wo/core/variables.py", line 67, in WOVar config.read(os.path.expanduser("~") + '/.gitconfig') File "/usr/lib/python3.6/configparser.py", line 697, in read self._read(fp, filename) File "/usr/lib/python3.6/configparser.py", line 1092, in _read fpname, lineno) configparser.DuplicateOptionError: While reading from '/root/.gitconfig' [line 6]: option 'directory' in section 'safe' already exists
Issue Analytics
- State:
- Created a year ago
- Comments:8 (1 by maintainers)

Top Related StackOverflow Question
This is the same as #427
Seeing the same issue, whenever trying to run a WO command. No matter which one; I am given this output:
root@srv:~# wo --version Traceback (most recent call last): File "/usr/local/bin/wo", line 8, in <module> sys.exit(main()) File "/usr/local/lib/python3.8/dist-packages/wo/cli/main.py", line 93, in main with app: File "/usr/local/lib/python3.8/dist-packages/cement/core/foundation.py", line 1501, in __enter__ self.setup() File "/usr/local/lib/python3.8/dist-packages/cement/core/foundation.py", line 835, in setup __import__(self._meta.bootstrap, globals(), locals(), [], 0) File "/usr/local/lib/python3.8/dist-packages/wo/cli/bootstrap.py", line 7, in <module> from wo.cli.controllers.base import WOBaseController File "/usr/local/lib/python3.8/dist-packages/wo/cli/controllers/base.py", line 5, in <module> from wo.core.variables import WOVar File "/usr/local/lib/python3.8/dist-packages/wo/core/variables.py", line 13, in <module> class WOVar(): File "/usr/local/lib/python3.8/dist-packages/wo/core/variables.py", line 67, in WOVar config.read(os.path.expanduser("~") + '/.gitconfig') File "/usr/lib/python3.8/configparser.py", line 697, in read self._read(fp, filename) File "/usr/lib/python3.8/configparser.py", line 1093, in _read raise DuplicateOptionError(sectname, optname, configparser.DuplicateOptionError: While reading from '/root/.gitconfig' [line 6]: option 'directory' in section 'safe' already existsI tried several fixes, including the following: https://github.com/WordOps/WordOps/issues/427#issuecomment-1104788407 and reinstalling python3. and finally also reinstalling wordops like so:
sudo rm -rf /usr/local/lib/python3.*/dist-packages/{wo-*.egg,cement-*.egg,wordops-*.egg}wget -qO wo wops.cc && sudo bash woAfter finishing the reinstallation process, the server said that Wordops was upgradedd successfully to its latest version… But the error is still there. So when I enter wo info for example I am getting the error message above, instead of any useful output.
Any help or advice is highly appreciated…
EDIT: I think I found a fix. I remove any entries of “directory” after “safe” in /root/.gitconfig file. Saved the file and tried to rerun wo info for example. This time it worked. no single error message.