question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Traceback (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:open
  • Created a year ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
janiosarmentocommented, Apr 20, 2022

This is the same as #427

0reactions
s-a-s-k-i-acommented, Jun 22, 2022

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 exists

I 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 wo

After 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while generating WO from PM - Forums - IBM Support
Hi All. While trying to generate WO from PM either by cron task or manually the following error occurs - BMXAA8229W - Record...
Read more >
Syslog message: MQCHIP.*DDRIF WO Checksum Error
This error indicates that there is a checksum error in the DDRIF packet memory. The cause may be due to a transient software...
Read more >
Correction symbols
WO. Word Order error. I play basketball at Dixon every night Thursday. WW. Wrong Word ... Sentence contains errors in agreement between noun/pronoun,...
Read more >
Error WO: WO: 9012 - Galaxy Watch Studio for Tizen
I just received a test report: [Defect] Unable to install the application after download Error pop-up: Installation failed. Try later.
Read more >
WO Mic Network Socket Error 10054 Problem Fixed - YouTube
In This vedio, I will show you how to fixed network socket error problem of wo mic microphone apps. wo mic client, wo...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found