Hello @VirtuBox
Today I tried to update WordOps on a VPS which was still using one of the very first versions i.e 3.9.1
The direct wo update didn't work so I ran the following command:
sudo rm /usr/local/bin/wo && wget -qO wo wops.cc && sudo bash wo

WordOps was updated successfully to the latest version but I can't utilize it at all. No matter what command I run, I am always getting the following error:
No module named 'wo.cli.plugins.maintenance

    • [deleted]

    • Best Answerset by nsgoyat

    As a workaround, try creating a file named wo with the content below:

    #!/usr/bin/python3
    # -*- coding: utf-8 -*-
    import re
    import sys
    from wo.cli.main import main
    if __name__ == '__main__':
        sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
        sys.exit(main())

    To create the file run the following commands as root (or sudo them, if you prefer):

    touch /usr/local/bin/wo
    chmod +x /usr/local/bin/wo

4 months later

nsgoyat ,

I got same issue here, and confused.

I used:

wo update
wo maintenance

after update, it will show as below when I use wordops command:
wo: command not found

after use: bash wo --force, it show:

root@ubuntu-s-2vcpu-4gb-lon1-01:~# bash wo --force
Welcome to WordOps install/update script v3.11.4

Installing wo dependencies      [OK]
Installing WordOps      [OK]
Running post-install steps      [OK]
wo: line 746: wo: command not found
WordOps (wo) installed successfully

To enable bash-completion, just use the command:
bash -l

To install WordOps recommended stacks, you can use the command:
wo stack install

To create a first WordPress site, you can use the command:
wo site create site.tld --wp

Does this mean I need install wordops again please?

Thanks

You may try this command provided in the troubleshooting section of the WordOps documentation:
sudo rm /usr/local/bin/wo && wget -qO wo wops.cc && sudo bash wo

Also, it seems there are many users who have been facing this issue. One of my friends is also facing the same issue. We have already tried a few fixes but it didn't work in our case. My friend has left a message for Virtubox at WordOps Chat, let's see what comes from the master.

    nsgoyat Thanks.

    Both of the following two command lines not work, please check the screenshot: http://prntscr.com/r1llvb

    sudo rm /usr/local/bin/wo

    nsgoyat sudo rm /usr/local/bin/wo && wget -qO wo wops.cc && sudo bash wo

    It does not work for me either, and let us wait for coming news.

    Thanks

    Hello nsgoyat ,

    Is there anyway to optionally to install a stable wordops version please?

    Thanks

      alexlii1971 If it's urgent and you cannot wait for the official update, then do an alternative installation via Github releases, I'm currently using ver. 11.3.2 and it's working just fine.

      wget https://github.com/WordOps/WordOps/archive/v3.11.2.zip
      unzip WordOps-3.11.2.zip
      cd WordOps-3.11.2/
      sudo bash install

        tyrro great thanks for your sharing, it would be really great if it works, I did not know that before.

        It is midnight here, and i will have a try tomorrow and let you know.

        thanks again.

        Hello tyrro

        Here is the information, and it seems that it is similar issue, there is always a issue line:

        install: line 746: wo: command not found

        Full information below:

        
        root@ubuntu-s-2vcpu-4gb-lon1-01:~# cd WordOps-3.11.2/
        root@ubuntu-s-2vcpu-4gb-lon1-01:~/WordOps-3.11.2# sudo bash install
        
        Welcome to WordOps install/update script 3.11.2
        
        Installing wo dependencies      [OK]
        Installing WordOps      [OK]
        Running post-install steps      [OK]
        install: line 746: wo: command not found
        WordOps (wo) installed successfully
        
        To enable bash-completion, just use the command:
        bash -l
        
        To install WordOps recommended stacks, you can use the command:
        wo stack install
        
        To create a first WordPress site, you can use the command:
        wo site create site.tld --wp
        
        WordOps Documentation : https://docs.wordops.net
        WordOps Community Forum : https://community.wordops.net
        WordOps Community Chat : https://chat.wordops.net
        
        Give WordOps a GitHub star : https://github.com/WordOps/WordOps/
        
        root@ubuntu-s-2vcpu-4gb-lon1-01:~/WordOps-3.11.2# 

        Is there any suggestions or alternative way to go ahead please?

        Thanks

        tyrro

        And I tried the version 3.11.1, and same issue, please check below:

        install: line 744: wo: command not found

        
        root@ubuntu-s-2vcpu-4gb-lon1-01:~# cd WordOps-3.11.1/
        root@ubuntu-s-2vcpu-4gb-lon1-01:~/WordOps-3.11.1# sudo bash install
        
        Welcome to WordOps install/update script 3.11.1
        
        Installing wo dependencies      [OK]
        Installing WordOps      [OK]
        Running post-install steps      [OK]
        install: line 744: wo: command not found
        WordOps (wo) installed successfully
        
        To enable bash-completion, just use the command:
        bash -l
        
        To install WordOps recommended stacks, you can use the command:
        wo stack install
        
        To create a first WordPress site, you can use the command:
        wo site create site.tld --wp
        
        WordOps Documentation : https://docs.wordops.net
        WordOps Community Forum : https://community.wordops.net
        WordOps Community Chat : https://chat.wordops.net
        
        Give WordOps a GitHub star : https://github.com/WordOps/WordOps/
        
        root@ubuntu-s-2vcpu-4gb-lon1-01:~/WordOps-3.11.1# 
        root@ubuntu-s-2vcpu-4gb-lon1-01:~/WordOps-3.11.1# 

        Well let's wait for the @VirtuBox to respond, what could be the issue with all these releases. My guess there's something else at play here.

        11 days later

        Sorry to bump this, but for me is not working the installation on ZSH , Raspberry Pi 4.

        ~ took 14m 35s 
        ➜ _ wget -qO wo wops.cc && sudo bash wo
        
        Welcome to WordOps install/update script v3.11.4
        
        Installing wo dependencies	[OK]
        Installing WordOps	[KO]
        Running post-install steps	[OK]
        wo: line 755: wo: command not found
        WordOps (wo) installed successfully
        
        To enable bash-completion, just use the command:
        bash -l
        
        To install WordOps recommended stacks, you can use the command:
        wo stack install
        
        To create a first WordPress site, you can use the command:
        wo site create site.tld --wp
        
        WordOps Documentation : https://docs.wordops.net
        WordOps Community Forum : https://community.wordops.net
        WordOps Community Chat : https://chat.wordops.net
        
        Give WordOps a GitHub star : https://github.com/WordOps/WordOps/

        is there something that is incompatible in my side??

          Very strange. I had no problem at all installing WordOps on a fresh install of the host OS

          pi@raspberrypi:~ $ lsb_release -a
          No LSB modules are available.
          Distributor ID: Raspbian
          Description: Raspbian GNU/Linux 10 (buster)
          Release: 10
          Codename: buster

            jond1 Yes, there is no problem for fresh install, but the issue will happen after run: wo maintenance

            Hosted by VirtuBox