Question

I am not a coder. I want to learn how to deploy the 1-click ERPNxt app.

Posted May 14, 2021 486 views
MariaDBLinux Commands

Hello! I am just a beginner and I don’t know much about terminal commands or to use linux through the terminal. I am eager to learn but not able to find resources.
However, right now I need help with creating a 1-click ERPNext installation through marketplace.
I have created the ERPNext droplet but I have no idea how to proceed further.

It would be very helpful ig you could help me out in a step by step manner on how to do it.
Thanks!

1 comment
  • @bobbyiliev

    I ran the command but the problem still exists.

    frappe@inv-erp:~/frappe-bench$ pip install -U -e $(bench src)
    Traceback (most recent call last):
      File "/usr/local/bin/bench", line 11, in <module>
        load_entry_point('bench', 'console_scripts', 'bench')()
      File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 489, in load_entry_point
        return get_distribution(dist).load_entry_point(group, name)
      File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 2793, in load_entry_point
        return ep.load()
      File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 2411, in load
        return self.resolve()
      File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 2417, in resolve
        module = __import__(self.module_name, fromlist=['__name__'], level=0)
      File "/home/frappe/.bench/bench/cli.py", line 4, in <module>
        from bench.app import get_apps
      File "/home/frappe/.bench/bench/app.py", line 15, in <module>
        import git
      File "/usr/local/lib/python3.6/dist-packages/git/__init__.py", line 38, in <module>
        from git.exc import *                       # @NoMove @IgnorePep8
      File "/usr/local/lib/python3.6/dist-packages/git/exc.py", line 9, in <module>
        from git.compat import UnicodeMixin, safe_decode, string_types
      File "/usr/local/lib/python3.6/dist-packages/git/compat.py", line 16, in <module>
        from gitdb.utils.compat import (
    ModuleNotFoundError: No module named 'gitdb.utils.compat'
    
    Usage:   
      pip install [options] <requirement specifier> [package-index-options] ...
      pip install [options] -r <requirements file> [package-index-options] ...
      pip install [options] [-e] <vcs project url> ...
      pip install [options] [-e] <local project path> ...
      pip install [options] <archive url/path> ...
    
    -e option requires 1 argument
    frappe@inv-erp:~/frappe-bench$ 
    

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hi there @gauravsk1302,

There are a few things that I could suggest starting with at first:

  • Learn how to connect to your server via SSH. You can do that by following the step by step instructions from the documentation here:

https://docs.digitalocean.com/products/droplets/how-to/connect-with-ssh/

  • Then once you know how to access your server, I would recommend learning some of the Linux basic commands to help you navigate through your files. I could suggest these two step by step tutorials here:

https://www.digitalocean.com/community/tutorials/an-introduction-to-the-linux-terminal

https://www.digitalocean.com/community/tutorials/basic-linux-navigation-and-file-management

  • With that information in hand, you would feel more comfortable working with the terminal. As a next step as you are starting going to be using the ERPNext 1-Click Droplet, I would recommend going through this Bench Cheatsheet

Hope that this helps and if you have any further questions feel free to post them here.
Regards,
Bobby

by Mitchell Anicas
This tutorial covers getting started with the terminal, the Linux command line, and executing commands. If you are new to Linux, you will want to familiarize yourself with the terminal, as it is the standard way to interact with a Linux server.
  • Hey! Thanks for your help!
    I have already started learning about it and know the basics of linux commands, ssh, adding user and other such basic tasks.

    I even figured out how to run the 1 click install.
    Here’s what I did:
    created 1 click eprnext droplet > ssh setup > logged in as root> ‘su frappe’ command logged in as frappe user > changed the password for mysql db and ERPNext admin > connected domain through DO dashboard> successfully ran ERPNext.

    however, the ERPNext version is v12 and I need the latest version.
    I tried running 'bench update’ in home/frappe/frappe-bench/
    but there is an error occurring.

    then I also tried manually installing but faced some issues and failed. (vaguely understanding some commands). I also tried to setup the server using DO guides and the installing the prerequisites and then using the easy install script provided by frappe. It failed.

    I have read all the guides available on DO regarding ERPNext and also read the installation manual provided by frappe.

    the only working solution I have is to use the 1-click install for ERPNext. but now I need help with updating it to the latest version v13. Please help!

    • Hi there @gauravsk1302,

      Happy to hear that you are getting used to the Linux command line!

      Could you please share the exact error that you get when you run the update command?

      Regards,
      Bobby

      • Hey here’s what I did:

        1. SSH into server as root user
        2. switched to frappe user (su frappe)
        3. $cd home/frappe/frappe-bench
        4. ran the bench update command

        After that a series of steps occurred but it immediately ran into an error.
        The update stopped and the following was displayed as error (xxx-xxx is not the real name):

        frappe@xxx-xxx:~/frappe-bench$ bench version
        Traceback (most recent call last):
          File "/usr/local/bin/bench", line 11, in <module>
            load_entry_point('bench', 'console_scripts', 'bench')()
          File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 489, in load_entry_point
            return get_distribution(dist).load_entry_point(group, name)
          File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 2793, in load_entry_point
            return ep.load()
          File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 2411, in load
            return self.resolve()
          File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 2417, in resolve
            module = __import__(self.module_name, fromlist=['__name__'], level=0)
          File "/home/frappe/.bench/bench/cli.py", line 4, in <module>
            from bench.app import get_apps
          File "/home/frappe/.bench/bench/app.py", line 15, in <module>
            import git
          File "/usr/local/lib/python3.6/dist-packages/git/__init__.py", line 38, in <module>
            from git.exc import *                       # @NoMove @IgnorePep8
          File "/usr/local/lib/python3.6/dist-packages/git/exc.py", line 9, in <module>
            from git.compat import UnicodeMixin, safe_decode, string_types
          File "/usr/local/lib/python3.6/dist-packages/git/compat.py", line 16, in <module>
            from gitdb.utils.compat import (
        ModuleNotFoundError: No module named 'gitdb.utils.compat'
        frappe@xxx-xxx:~/frappe-bench$ 
        

        After the failed update process, whenever I type in the ‘bench version’ or 'bench –version’ command, the same error message occurs which I have pasted above.

        • Hi there @gauravsk1302,

          I came across this discussion here on the ERPNext forum reporting the same problem.

          The fix that they suggested there is to run this command first:

          python3 -m pip install GitPython==2.1.11
          

          Let me know how it goes.
          Regards,
          Bobby

          • I tried running the command here’s what I did:

            root@inv-erp:~# python3 -m pip install GitPython==2.1.11
            Requirement already satisfied: GitPython==2.1.11 in /usr/local/lib/python3.6/dist-packages (2.1.11)
            Requirement already satisfied: gitdb2>=2.0.0 in /usr/local/lib/python3.6/dist-packages (from GitPython==2.1.11) (4.0.2)
            Requirement already satisfied: gitdb>=4.0.1 in /usr/local/lib/python3.6/dist-packages (from gitdb2>=2.0.0->GitPython==2.1.11) (4.0.1)
            Requirement already satisfied: smmap<4,>=3.0.1 in /usr/local/lib/python3.6/dist-packages (from gitdb>=4.0.1->gitdb2>=2.0.0->GitPython==2.1.11) (3.0.1)
            <^>WARNING: You are using pip version 20.0.2; however, version 21.1.1 is available.
            You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.<^>
            root@inv-erp:~# 
            
            
             root@inv-erp:~# /usr/bin/python3 -m pip install --upgrade pip
            Collecting pip
              Downloading pip-21.1.1-py3-none-any.whl (1.5 MB)
                 |████████████████████████████████| 1.5 MB 3.2 MB/s 
            Installing collected packages: pip
              Attempting uninstall: pip
                Found existing installation: pip 20.0.2
                Uninstalling pip-20.0.2:
                  Successfully uninstalled pip-20.0.2
            Successfully installed pip-21.1.1
            root@inv-erp:~# python3 -m pip install GitPython==2.1.11
            Requirement already satisfied: GitPython==2.1.11 in /usr/local/lib/python3.6/dist-packages (2.1.11)
            Requirement already satisfied: gitdb2>=2.0.0 in /usr/local/lib/python3.6/dist-packages (from GitPython==2.1.11) (4.0.2)
            Requirement already satisfied: gitdb>=4.0.1 in /usr/local/lib/python3.6/dist-packages (from gitdb2>=2.0.0->GitPython==2.1.11) (4.0.1)
            Requirement already satisfied: smmap<4,>=3.0.1 in /usr/local/lib/python3.6/dist-packages (from gitdb>=4.0.1->gitdb2>=2.0.0->GitPython==2.1.11) (3.0.1)
            WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv
            root@inv-erp:~# su frappe
            Welcome to your ERPNext instance!
            Current Working Directory is /home/frappe/frappe-bench
            Passwords are saved under /home/frappe/passwords.txt
            
            Resources:
            Bench       https://frappe.io/docs/bench/cheatsheet
            Frappe      https://frappe.io/docs
            ERPNext     https://erpnext.com/docs
            frappe@inv-erp:~/frappe-bench$ python3 -m pip install GitPython==2.1.11
            Defaulting to user installation because normal site-packages is not writeable
            Requirement already satisfied: GitPython==2.1.11 in /usr/local/lib/python3.6/dist-packages (2.1.11)
            Requirement already satisfied: gitdb2>=2.0.0 in /usr/local/lib/python3.6/dist-packages (from GitPython==2.1.11) (4.0.2)
            Requirement already satisfied: gitdb>=4.0.1 in /usr/local/lib/python3.6/dist-packages (from gitdb2>=2.0.0->GitPython==2.1.11) (4.0.1)
            Requirement already satisfied: smmap<4,>=3.0.1 in /usr/local/lib/python3.6/dist-packages (from gitdb>=4.0.1->gitdb2>=2.0.0->GitPython==2.1.11) (3.0.1)
            frappe@inv-erp:~/frappe-bench$ bench version
            Traceback (most recent call last):
              File "/usr/local/bin/bench", line 11, in <module>
                load_entry_point('bench', 'console_scripts', 'bench')()
              File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 489, in load_entry_point
                return get_distribution(dist).load_entry_point(group, name)
              File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 2793, in load_entry_point
                return ep.load()
              File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 2411, in load
                return self.resolve()
              File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 2417, in resolve
                module = __import__(self.module_name, fromlist=['__name__'], level=0)
              File "/home/frappe/.bench/bench/cli.py", line 4, in <module>
                from bench.app import get_apps
              File "/home/frappe/.bench/bench/app.py", line 15, in <module>
                import git
              File "/usr/local/lib/python3.6/dist-packages/git/__init__.py", line 38, in <module>
                from git.exc import *                       # @NoMove @IgnorePep8
              File "/usr/local/lib/python3.6/dist-packages/git/exc.py", line 9, in <module>
                from git.compat import UnicodeMixin, safe_decode, string_types
              File "/usr/local/lib/python3.6/dist-packages/git/compat.py", line 16, in <module>
                from gitdb.utils.compat import (
            ModuleNotFoundError: No module named 'gitdb.utils.compat'
            frappe@inv-erp:~/frappe-bench$ bench update
            Traceback (most recent call last):
              File "/usr/local/bin/bench", line 11, in <module>
                load_entry_point('bench', 'console_scripts', 'bench')()
              File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 489, in load_entry_point
                return get_distribution(dist).load_entry_point(group, name)
              File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 2793, in load_entry_point
                return ep.load()
              File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 2411, in load
                return self.resolve()
              File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 2417, in resolve
                module = __import__(self.module_name, fromlist=['__name__'], level=0)
              File "/home/frappe/.bench/bench/cli.py", line 4, in <module>
                from bench.app import get_apps
              File "/home/frappe/.bench/bench/app.py", line 15, in <module>
                import git
              File "/usr/local/lib/python3.6/dist-packages/git/__init__.py", line 38, in <module>
                from git.exc import *                       # @NoMove @IgnorePep8
              File "/usr/local/lib/python3.6/dist-packages/git/exc.py", line 9, in <module>
                from git.compat import UnicodeMixin, safe_decode, string_types
              File "/usr/local/lib/python3.6/dist-packages/git/compat.py", line 16, in <module>
                from gitdb.utils.compat import (
            ModuleNotFoundError: No module named 'gitdb.utils.compat'
            frappe@inv-erp:~/frappe-bench$ 
            
          • Hi there @gauravsk1302,

            Another mentioned fix from the ERPNext forum is the following command as the frappe user:

            pip install -U -e $(bench src) 
            

            Let me know how it goes.
            Regards,
            Bobby