I downloaded a tool called wapiti and I tried to install it manually and I did but then I removed it using sudo apt-get remove wapiti and also purge but every time I type wapiti it shows this:

salman@salman-EP31-DS3L:~$ wapiti
Traceback (most recent call last):
  File "/usr/local/bin/wapiti", line 9, in 
    load_entry_point('wapiti3==3.0.1', 'console_scripts', 'wapiti')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 542, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2569, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2229, in load
    return self.resolve()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2235, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python2.7/dist-packages/wapiti3-3.0.1-py2.7.egg/wapitiCore/main/wapiti.py", line 381
    print("{}: {}".format(exception.__class__.__name__, exception), file=fd)
SyntaxError: invalid syntax

Any idea??

  • What does which wapiti or whereis wapiti give you? – George Udosen Oct 30 '18 at 18:15
  • /usr/local/bin/wapiti – Sa Ha Oct 30 '18 at 18:15
  • Run the second command so we know where all the files are if any! – George Udosen Oct 30 '18 at 18:16
  • wapiti: /usr/local/bin/wapit same output – Sa Ha Oct 30 '18 at 18:17
  • Ok, now remove that file sudo rm -rf /usr/local/bin/wapiti! – George Udosen Oct 30 '18 at 18:18

Find where the files associated with that program are with:

whereis wapiti

Then remove it with:

sudo rm -rf /usr/local/bin/wapiti

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.