Error upgrade ERPNext from 3 to 4

Hi, I am using a Ubuntu 12.10x64 server and running ERPNext 3.13.4 normally. 

When I try to upgrade following this: https://github.com/frappe/frappe-bench, it fails when I run the following cmd

git clone https://github.com/frappe/frappe-bench
cd frappe-bench
./scripts/install.sh migrate_3_to_4 /path/to/old/erpnext
Here is the log it creates. It seems it is looking for a file that is not there ./apps/frappe. 
Any idea what I was doing wrong here ? Thanks a lot!

New python executable in env/bin/python2.7
Not overwriting existing python script env/bin/python (you must use env/bin/python2.7)
Installing setuptools, pip...done.
Error: Obtaining file:///root/setup_file/frappe-bench/apps/frappe
  Running setup.py (path:/root/setup_file/frappe-bench/apps/frappe/setup.py) egg_info for package from file:///root/setup_file/frappe-bench/apps/frappe
    
    warning: no files found matching '*.json'
    warning: no previously-included files matching '*.pyc' found under directory '*'
Requirement already satisfied (use --upgrade to upgrade): chardet in /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from frappe==4.0.0)
Requirement already satisfied (use --upgrade to upgrade): cssmin in /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from frappe==4.0.0)
Requirement already satisfied (use --upgrade to upgrade): dropbox in /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from frappe==4.0.0)
Requirement already satisfied (use --upgrade to upgrade): gunicorn in /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from frappe==4.0.0)
Requirement already satisfied (use --upgrade to upgrade): httplib2 in /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from frappe==4.0.0)
Requirement already satisfied (use --upgrade to upgrade): jinja2 in /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from frappe==4.0.0)
Requirement already satisfied (use --upgrade to upgrade): markdown2 in /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from frappe==4.0.0)
Requirement already satisfied (use --upgrade to upgrade): markupsafe in /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from frappe==4.0.0)
Requirement already satisfied (use --upgrade to upgrade): mysql-python in /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from frappe==4.0.0)
Requirement already satisfied (use --upgrade to upgrade): pygeoip in /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from frappe==4.0.0)
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from frappe==4.0.0)
Requirement already satisfied (use --upgrade to upgrade): python-memcached in /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from frappe==4.0.0)
Requirement already satisfied (use --upgrade to upgrade): pytz==2013d in /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from frappe==4.0.0)
Requirement already satisfied (use --upgrade to upgrade): six in /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from frappe==4.0.0)
Requirement already satisfied (use --upgrade to upgrade): slugify in /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from frappe==4.0.0)
Requirement already satisfied (use --upgrade to upgrade): termcolor in /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from frappe==4.0.0)
Requirement already satisfied (use --upgrade to upgrade): werkzeug in /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from frappe==4.0.0)
Requirement already satisfied (use --upgrade to upgrade): semantic-version in /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from frappe==4.0.0)
Downloading/unpacking lxml (from frappe==4.0.0)
  Running setup.py (path:/root/setup_file/frappe-bench/env/build/lxml/setup.py) egg_info for package lxml
    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
      warnings.warn(msg)
    Building lxml version 3.3.5.
    Building without Cython.
    Using build configuration of libxslt 1.1.26
    Building against libxml2/libxslt in the following directory: /usr/lib/x86_64-linux-gnu
    
    warning: no previously-included files found matching '*.py'
Downloading/unpacking inlinestyler (from frappe==4.0.0)
  Downloading inlinestyler-0.1.7.tar.gz
  Running setup.py (path:/root/setup_file/frappe-bench/env/build/inlinestyler/setup.py) egg_info for package inlinestyler
    
Downloading/unpacking rauth>=0.6.2 (from frappe==4.0.0)
  Downloading rauth-0.7.0.tar.gz
  Running setup.py (path:/root/setup_file/frappe-bench/env/build/rauth/setup.py) egg_info for package rauth
    
Downloading/unpacking requests==1.2.3 (from frappe==4.0.0)
  Running setup.py (path:/root/setup_file/frappe-bench/env/build/requests/setup.py) egg_info for package requests
    
Downloading/unpacking celery (from frappe==4.0.0)
Downloading/unpacking redis (from frappe==4.0.0)
  Running setup.py (path:/root/setup_file/frappe-bench/env/build/redis/setup.py) egg_info for package redis
    
    warning: no previously-included files found matching '__pycache__'
    warning: no previously-included files matching '*.pyc' found under directory 'tests'
Downloading/unpacking selenium (from frappe==4.0.0)
  Running setup.py (path:/root/setup_file/frappe-bench/env/build/selenium/setup.py) egg_info for package selenium
    
Downloading/unpacking urllib3 (from dropbox->frappe==4.0.0)
  Running setup.py (path:/root/setup_file/frappe-bench/env/build/urllib3/setup.py) egg_info for package urllib3
    
Downloading/unpacking cssutils (from inlinestyler->frappe==4.0.0)
  Running setup.py (path:/root/setup_file/frappe-bench/env/build/cssutils/setup.py) egg_info for package cssutils
    
Downloading/unpacking kombu>=3.0.15,<4.0 (from celery->frappe==4.0.0)
Downloading/unpacking billiard>=3.3.0.17,<3.4 (from celery->frappe==4.0.0)
  Running setup.py (path:/root/setup_file/frappe-bench/env/build/billiard/setup.py) egg_info for package billiard
    
    warning: no files found matching '*.py' under directory 'Lib'
Downloading/unpacking amqp>=1.4.5,<2.0 (from kombu>=3.0.15,<4.0->celery->frappe==4.0.0)
Downloading/unpacking anyjson>=0.3.3 (from kombu>=3.0.15,<4.0->celery->frappe==4.0.0)
  Downloading anyjson-0.3.3.tar.gz
  Running setup.py (path:/root/setup_file/frappe-bench/env/build/anyjson/setup.py) egg_info for package anyjson
    
Installing collected packages: lxml, inlinestyler, rauth, requests, celery, redis, selenium, frappe, urllib3, cssutils, kombu, billiard, amqp, anyjson
  Running setup.py install for lxml
    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
      warnings.warn(msg)
    Building lxml version 3.3.5.
    Building without Cython.
    Using build configuration of libxslt 1.1.26
    Building against libxml2/libxslt in the following directory: /usr/lib/x86_64-linux-gnu
    building 'lxml.etree' extension
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/libxml2 -I/root/setup_file/frappe-bench/env/build/lxml/src/lxml/includes -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w
    gcc: internal compiler error: Killed (program cc1)
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
    error: command 'gcc' failed with exit status 4
    Complete output from command /root/setup_file/frappe-bench/env/bin/python2.7 -c "import setuptools, tokenize;__file__=u'/root/setup_file/frappe-bench/env/build/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-nFiMcL-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/setup_file/frappe-bench/env/include/site/python2.7:
    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'

  warnings.warn(msg)

Building lxml version 3.3.5.

Building without Cython.

Using build configuration of libxslt 1.1.26

Building against libxml2/libxslt in the following directory: /usr/lib/x86_64-linux-gnu

running install

running build

running build_py

creating build

creating build/lib.linux-x86_64-2.7

creating build/lib.linux-x86_64-2.7/lxml

copying src/lxml/pyclasslookup.py -> build/lib.linux-x86_64-2.7/lxml

copying src/lxml/builder.py -> build/lib.linux-x86_64-2.7/lxml

copying src/lxml/sax.py -> build/lib.linux-x86_64-2.7/lxml

copying src/lxml/ElementInclude.py -> build/lib.linux-x86_64-2.7/lxml

copying src/lxml/_elementpath.py -> build/lib.linux-x86_64-2.7/lxml

copying src/lxml/doctestcompare.py -> build/lib.linux-x86_64-2.7/lxml

copying src/lxml/__init__.py -> build/lib.linux-x86_64-2.7/lxml

copying src/lxml/usedoctest.py -> build/lib.linux-x86_64-2.7/lxml

copying src/lxml/cssselect.py -> build/lib.linux-x86_64-2.7/lxml

creating build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/__init__.py -> build/lib.linux-x86_64-2.7/lxml/includes

creating build/lib.linux-x86_64-2.7/lxml/html

copying src/lxml/html/html5parser.py -> build/lib.linux-x86_64-2.7/lxml/html

copying src/lxml/html/builder.py -> build/lib.linux-x86_64-2.7/lxml/html

copying src/lxml/html/_setmixin.py -> build/lib.linux-x86_64-2.7/lxml/html

copying src/lxml/html/soupparser.py -> build/lib.linux-x86_64-2.7/lxml/html

copying src/lxml/html/defs.py -> build/lib.linux-x86_64-2.7/lxml/html

copying src/lxml/html/__init__.py -> build/lib.linux-x86_64-2.7/lxml/html

copying src/lxml/html/diff.py -> build/lib.linux-x86_64-2.7/lxml/html

copying src/lxml/html/usedoctest.py -> build/lib.linux-x86_64-2.7/lxml/html

copying src/lxml/html/_diffcommand.py -> build/lib.linux-x86_64-2.7/lxml/html

copying src/lxml/html/clean.py -> build/lib.linux-x86_64-2.7/lxml/html

copying src/lxml/html/formfill.py -> build/lib.linux-x86_64-2.7/lxml/html

copying src/lxml/html/_html5builder.py -> build/lib.linux-x86_64-2.7/lxml/html

copying src/lxml/html/ElementSoup.py -> build/lib.linux-x86_64-2.7/lxml/html

creating build/lib.linux-x86_64-2.7/lxml/isoschematron

copying src/lxml/isoschematron/__init__.py -> build/lib.linux-x86_64-2.7/lxml/isoschematron

copying src/lxml/lxml.etree.h -> build/lib.linux-x86_64-2.7/lxml

copying src/lxml/lxml.etree_api.h -> build/lib.linux-x86_64-2.7/lxml

copying src/lxml/includes/etreepublic.pxd -> build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/uri.pxd -> build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/relaxng.pxd -> build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/tree.pxd -> build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/c14n.pxd -> build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/schematron.pxd -> build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/config.pxd -> build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/xmlparser.pxd -> build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/dtdvalid.pxd -> build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/htmlparser.pxd -> build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/xinclude.pxd -> build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/xmlerror.pxd -> build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/xslt.pxd -> build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/xpath.pxd -> build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/xmlschema.pxd -> build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/lxml-version.h -> build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/etree_defs.h -> build/lib.linux-x86_64-2.7/lxml/includes

creating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources

creating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/rng

copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/rng

creating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl

copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl

copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl

creating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1

copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1

copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1

copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1

copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1

copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1

copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1

running build_ext

building 'lxml.etree' extension

creating build/temp.linux-x86_64-2.7

creating build/temp.linux-x86_64-2.7/src

creating build/temp.linux-x86_64-2.7/src/lxml

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/libxml2 -I/root/setup_file/frappe-bench/env/build/lxml/src/lxml/includes -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w

gcc: internal compiler error: Killed (program cc1)

Please submit a full bug report,

with preprocessed source if appropriate.

See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.

error: command 'gcc' failed with exit status 4

----------------------------------------
Cleaning up...
Command /root/setup_file/frappe-bench/env/bin/python2.7 -c "import setuptools, tokenize;__file__=u'/root/setup_file/frappe-bench/env/build/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-nFiMcL-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/setup_file/frappe-bench/env/include/site/python2.7 failed with error code 1 in /root/setup_file/frappe-bench/env/build/lxml
Storing debug log for failure in /root/.pip/pip.log

Traceback (most recent call last):
  File "./scripts/virtualenv.py", line 2365, in <module>
    main()
  File "./scripts/virtualenv.py", line 829, in main
    after_install(options, home_dir)
  File "./scripts/virtualenv.py", line 2355, in after_install
    subprocess.check_output('/'.join([home_dir, 'bin', 'pip install -e {}/'.format(app['name'])]), shell=True)
  File "/usr/lib/python2.7/subprocess.py", line 544, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '/root/setup_file/frappe-bench/env/bin/pip install -e frappe/' returned non-zero exit status 1



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/866e7a5f-e090-49eb-8850-7127f9703b5f%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.

Hey Nguyen,

On Tue, May 6, 2014 at 3:03 PM, Nguyen Do Le Bao na...@gmail.com wrote:

Hi, I am using a Ubuntu 12.10x64 server and running ERPNext 3.13.4 normally.

When I try to upgrade following this:
https://github.com/frappe/frappe-bench, it fails when I run the following
cmd

git clone https://github.com/frappe/frappe-bench
cd frappe-bench
./scripts/install.sh migrate_3_to_4 /path/to/old/erpnext

Here is the log it creates. It seems it is looking for a file that is not
there ./apps/frappe.
Any idea what I was doing wrong here ? Thanks a lot!

New python executable in env/bin/python2.7

Not overwriting existing python script env/bin/python (you must use
env/bin/python2.7)

Installing setuptools, pip…done.

Error: Obtaining file:///root/setup_file/frappe-bench/apps/frappe

Running setup.py
(path:/root/setup_file/frappe-bench/apps/frappe/setup.py) egg_info for
package from file:///root/setup_file/frappe-bench/apps/frappe

warning: no files found matching '*.json'

warning: no previously-included files matching '*.pyc' found under

directory ‘*’

Requirement already satisfied (use --upgrade to upgrade): chardet in
/root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
frappe==4.0.0)

Requirement already satisfied (use --upgrade to upgrade): cssmin in
/root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
frappe==4.0.0)

Requirement already satisfied (use --upgrade to upgrade): dropbox in
/root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
frappe==4.0.0)

Requirement already satisfied (use --upgrade to upgrade): gunicorn in
/root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
frappe==4.0.0)

Requirement already satisfied (use --upgrade to upgrade): httplib2 in
/root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
frappe==4.0.0)

Requirement already satisfied (use --upgrade to upgrade): jinja2 in
/root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
frappe==4.0.0)

Requirement already satisfied (use --upgrade to upgrade): markdown2 in
/root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
frappe==4.0.0)

Requirement already satisfied (use --upgrade to upgrade): markupsafe in
/root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
frappe==4.0.0)

Requirement already satisfied (use --upgrade to upgrade): mysql-python in
/root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
frappe==4.0.0)

Requirement already satisfied (use --upgrade to upgrade): pygeoip in
/root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
frappe==4.0.0)

Requirement already satisfied (use --upgrade to upgrade): python-dateutil
in /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
frappe==4.0.0)

Requirement already satisfied (use --upgrade to upgrade):
python-memcached in
/root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
frappe==4.0.0)

Requirement already satisfied (use --upgrade to upgrade): pytz==2013d in
/root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
frappe==4.0.0)

Requirement already satisfied (use --upgrade to upgrade): six in
/root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
frappe==4.0.0)

Requirement already satisfied (use --upgrade to upgrade): slugify in
/root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
frappe==4.0.0)

Requirement already satisfied (use --upgrade to upgrade): termcolor in
/root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
frappe==4.0.0)

Requirement already satisfied (use --upgrade to upgrade): werkzeug in
/root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
frappe==4.0.0)

Requirement already satisfied (use --upgrade to upgrade):
semantic-version in
/root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
frappe==4.0.0)

Downloading/unpacking lxml (from frappe==4.0.0)

Running setup.py
(path:/root/setup_file/frappe-bench/env/build/lxml/setup.py) egg_info for
package lxml

/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown

distribution option: ‘bugtrack_url’

  warnings.warn(msg)

Building lxml version 3.3.5.

Building without Cython.

Using build configuration of libxslt 1.1.26

Building against libxml2/libxslt in the following directory:

/usr/lib/x86_64-linux-gnu

warning: no previously-included files found matching '*.py'

Downloading/unpacking inlinestyler (from frappe==4.0.0)

Downloading inlinestyler-0.1.7.tar.gz

Running setup.py
(path:/root/setup_file/frappe-bench/env/build/inlinestyler/setup.py)
egg_info for package inlinestyler

Downloading/unpacking rauth>=0.6.2 (from frappe==4.0.0)

Downloading rauth-0.7.0.tar.gz

Running setup.py
(path:/root/setup_file/frappe-bench/env/build/rauth/setup.py) egg_info for
package rauth

Downloading/unpacking requests==1.2.3 (from frappe==4.0.0)

Running setup.py
(path:/root/setup_file/frappe-bench/env/build/requests/setup.py) egg_info
for package requests

Downloading/unpacking celery (from frappe==4.0.0)

Downloading/unpacking redis (from frappe==4.0.0)

Running setup.py
(path:/root/setup_file/frappe-bench/env/build/redis/setup.py) egg_info for
package redis

warning: no previously-included files found matching '__pycache__'

warning: no previously-included files matching '*.pyc' found under

directory ‘tests’

Downloading/unpacking selenium (from frappe==4.0.0)

Running setup.py
(path:/root/setup_file/frappe-bench/env/build/selenium/setup.py) egg_info
for package selenium

Downloading/unpacking urllib3 (from dropbox->frappe==4.0.0)

Running setup.py
(path:/root/setup_file/frappe-bench/env/build/urllib3/setup.py) egg_info for
package urllib3

Downloading/unpacking cssutils (from inlinestyler->frappe==4.0.0)

Running setup.py
(path:/root/setup_file/frappe-bench/env/build/cssutils/setup.py) egg_info
for package cssutils

Downloading/unpacking kombu>=3.0.15,<4.0 (from celery->frappe==4.0.0)

Downloading/unpacking billiard>=3.3.0.17,<3.4 (from
celery->frappe==4.0.0)

Running setup.py
(path:/root/setup_file/frappe-bench/env/build/billiard/setup.py) egg_info
for package billiard

warning: no files found matching '*.py' under directory 'Lib'

Downloading/unpacking amqp>=1.4.5,<2.0 (from
kombu>=3.0.15,<4.0->celery->frappe==4.0.0)

Downloading/unpacking anyjson>=0.3.3 (from
kombu>=3.0.15,<4.0->celery->frappe==4.0.0)

Downloading anyjson-0.3.3.tar.gz

Running setup.py
(path:/root/setup_file/frappe-bench/env/build/anyjson/setup.py) egg_info for
package anyjson

Installing collected packages: lxml, inlinestyler, rauth, requests,
celery, redis, selenium, frappe, urllib3, cssutils, kombu, billiard, amqp,
anyjson

Running setup.py install for lxml

/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown

distribution option: ‘bugtrack_url’

  warnings.warn(msg)

Building lxml version 3.3.5.

Building without Cython.

Using build configuration of libxslt 1.1.26

Building against libxml2/libxslt in the following directory:

/usr/lib/x86_64-linux-gnu

building 'lxml.etree' extension

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall

-Wstrict-prototypes -fPIC -I/usr/include/libxml2
-I/root/setup_file/frappe-bench/env/build/lxml/src/lxml/includes
-I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o
build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w

gcc: internal compiler error: Killed (program cc1)

Please submit a full bug report,

with preprocessed source if appropriate.

See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.

error: command 'gcc' failed with exit status 4

Complete output from command

/root/setup_file/frappe-bench/env/bin/python2.7 -c “import setuptools,
tokenize;file=u’/root/setup_file/frappe-bench/env/build/lxml/setup.py’;exec(compile(getattr(tokenize,
‘open’, open)(file).read().replace(‘\r\n’, ‘\n’), file, ‘exec’))”
install --record /tmp/pip-nFiMcL-record/install-record.txt
–single-version-externally-managed --compile --install-headers
/root/setup_file/frappe-bench/env/include/site/python2.7:

/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown

distribution option: ‘bugtrack_url’

warnings.warn(msg)

Building lxml version 3.3.5.

Building without Cython.

Using build configuration of libxslt 1.1.26

Building against libxml2/libxslt in the following directory:
/usr/lib/x86_64-linux-gnu

running install

running build

running build_py

creating build

creating build/lib.linux-x86_64-2.7

creating build/lib.linux-x86_64-2.7/lxml

copying src/lxml/pyclasslookup.py → build/lib.linux-x86_64-2.7/lxml

copying src/lxml/builder.py → build/lib.linux-x86_64-2.7/lxml

copying src/lxml/sax.py → build/lib.linux-x86_64-2.7/lxml

copying src/lxml/ElementInclude.py → build/lib.linux-x86_64-2.7/lxml

copying src/lxml/_elementpath.py → build/lib.linux-x86_64-2.7/lxml

copying src/lxml/doctestcompare.py → build/lib.linux-x86_64-2.7/lxml

copying src/lxml/init.py → build/lib.linux-x86_64-2.7/lxml

copying src/lxml/usedoctest.py → build/lib.linux-x86_64-2.7/lxml

copying src/lxml/cssselect.py → build/lib.linux-x86_64-2.7/lxml

creating build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/init.py →
build/lib.linux-x86_64-2.7/lxml/includes

creating build/lib.linux-x86_64-2.7/lxml/html

copying src/lxml/html/html5parser.py →
build/lib.linux-x86_64-2.7/lxml/html

copying src/lxml/html/builder.py → build/lib.linux-x86_64-2.7/lxml/html

copying src/lxml/html/_setmixin.py →
build/lib.linux-x86_64-2.7/lxml/html

copying src/lxml/html/soupparser.py →
build/lib.linux-x86_64-2.7/lxml/html

copying src/lxml/html/defs.py → build/lib.linux-x86_64-2.7/lxml/html

copying src/lxml/html/init.py → build/lib.linux-x86_64-2.7/lxml/html

copying src/lxml/html/diff.py → build/lib.linux-x86_64-2.7/lxml/html

copying src/lxml/html/usedoctest.py →
build/lib.linux-x86_64-2.7/lxml/html

copying src/lxml/html/_diffcommand.py →
build/lib.linux-x86_64-2.7/lxml/html

copying src/lxml/html/clean.py → build/lib.linux-x86_64-2.7/lxml/html

copying src/lxml/html/formfill.py → build/lib.linux-x86_64-2.7/lxml/html

copying src/lxml/html/_html5builder.py →
build/lib.linux-x86_64-2.7/lxml/html

copying src/lxml/html/ElementSoup.py →
build/lib.linux-x86_64-2.7/lxml/html

creating build/lib.linux-x86_64-2.7/lxml/isoschematron

copying src/lxml/isoschematron/init.py →
build/lib.linux-x86_64-2.7/lxml/isoschematron

copying src/lxml/lxml.etree.h → build/lib.linux-x86_64-2.7/lxml

copying src/lxml/lxml.etree_api.h → build/lib.linux-x86_64-2.7/lxml

copying src/lxml/includes/etreepublic.pxd →
build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/uri.pxd →
build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/relaxng.pxd →
build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/tree.pxd →
build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/c14n.pxd →
build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/schematron.pxd →
build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/config.pxd →
build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/xmlparser.pxd →
build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/dtdvalid.pxd →
build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/htmlparser.pxd →
build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/xinclude.pxd →
build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/xmlerror.pxd →
build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/xslt.pxd →
build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/xpath.pxd →
build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/xmlschema.pxd →
build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/lxml-version.h →
build/lib.linux-x86_64-2.7/lxml/includes

copying src/lxml/includes/etree_defs.h →
build/lib.linux-x86_64-2.7/lxml/includes

creating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources

creating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/rng

copying src/lxml/isoschematron/resources/rng/iso-schematron.rng →
build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/rng

creating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl

copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl →
build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl

copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl →
build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl

creating
build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1

copying
src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl

build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1

copying
src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl

build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1

copying
src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl

build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1

copying
src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl

build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1

copying
src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl

build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1

copying
src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt →
build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1

running build_ext

building ‘lxml.etree’ extension

creating build/temp.linux-x86_64-2.7

creating build/temp.linux-x86_64-2.7/src

creating build/temp.linux-x86_64-2.7/src/lxml

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/libxml2
-I/root/setup_file/frappe-bench/env/build/lxml/src/lxml/includes
-I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o
build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w

gcc: internal compiler error: Killed (program cc1)

Please submit a full bug report,

with preprocessed source if appropriate.

See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.

error: command ‘gcc’ failed with exit status 4


Cleaning up…

Command /root/setup_file/frappe-bench/env/bin/python2.7 -c “import
setuptools,
tokenize;file=u’/root/setup_file/frappe-bench/env/build/lxml/setup.py’;exec(compile(getattr(tokenize,
‘open’, open)(file).read().replace(‘\r\n’, ‘\n’), file, ‘exec’))”
install --record /tmp/pip-nFiMcL-record/install-record.txt
–single-version-externally-managed --compile --install-headers
/root/setup_file/frappe-bench/env/include/site/python2.7 failed with error
code 1 in /root/setup_file/frappe-bench/env/build/lxml

Storing debug log for failure in /root/.pip/pip.log

Traceback (most recent call last):

File “./scripts/virtualenv.py”, line 2365, in

main()

File “./scripts/virtualenv.py”, line 829, in main

after_install(options, home_dir)

File “./scripts/virtualenv.py”, line 2355, in after_install

subprocess.check_output('/'.join([home_dir, 'bin', 'pip install -e

{}/'.format(app[‘name’])]), shell=True)

File “/usr/lib/python2.7/subprocess.py”, line 544, in check_output

raise CalledProcessError(retcode, cmd, output=output)

subprocess.CalledProcessError: Command
‘/root/setup_file/frappe-bench/env/bin/pip install -e frappe/’ returned
non-zero exit status 1


Note:

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much
    information as you can. Please see it from the point of view of the person
    receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send
    only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do
    not send images as attachments. Links are good. Same goes for any file you
    are going to send.

End of Note

You received this message because you are subscribed to the Google Groups
“ERPNext Developer Forum” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to erpnext-developer-forum+un...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/erpnext-developer-forum/866e7a5f-e090-49eb-8850-7127f9703b5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

lxml requires about 800M of free memory to build. Also, do not forget
to backup your database and upgrade to MariaDB.

Thanks,

Pratik
erpnext

Okay, that should be it, I'm using a VM with 512MB of RAM only. 
Will try again and let you know. Thanks!

On Tuesday, May 6, 2014 6:01:30 PM UTC+8, Pratik Vyas wrote:
Hey Nguyen,

On Tue, May 6, 2014 at 3:03 PM, Nguyen Do Le Bao <na...@gmail.com> wrote:
> Hi, I am using a Ubuntu 12.10x64 server and running ERPNext 3.13.4 normally.
>
> When I try to upgrade following this:
> https://github.com/frappe/frappe-bench, it fails when I run the following
> cmd
>
>> git clone https://github.com/frappe/frappe-bench
>> cd frappe-bench
>> ./scripts/install.sh migrate_3_to_4 /path/to/old/erpnext
>
> Here is the log it creates. It seems it is looking for a file that is not
> there ./apps/frappe.
> Any idea what I was doing wrong here ? Thanks a lot!
>
>>> New python executable in env/bin/python2.7
>>>
>>> Not overwriting existing python script env/bin/python (you must use
>>> env/bin/python2.7)
>>>
>>> Installing setuptools, pip...done.
>>>
>>> Error: Obtaining file:///root/setup_file/frappe-bench/apps/frappe
>>>
>>>   Running setup.py
>>> (path:/root/setup_file/frappe-bench/apps/frappe/setup.py) egg_info for
>>> package from file:///root/setup_file/frappe-bench/apps/frappe
>>>
>>>
>>>
>>>     warning: no files found matching '*.json'
>>>
>>>     warning: no previously-included files matching '*.pyc' found under
>>> directory '*'
>>>
>>> Requirement already satisfied (use --upgrade to upgrade): chardet in
>>> /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
>>> frappe==4.0.0)
>>>
>>> Requirement already satisfied (use --upgrade to upgrade): cssmin in
>>> /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
>>> frappe==4.0.0)
>>>
>>> Requirement already satisfied (use --upgrade to upgrade): dropbox in
>>> /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
>>> frappe==4.0.0)
>>>
>>> Requirement already satisfied (use --upgrade to upgrade): gunicorn in
>>> /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
>>> frappe==4.0.0)
>>>
>>> Requirement already satisfied (use --upgrade to upgrade): httplib2 in
>>> /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
>>> frappe==4.0.0)
>>>
>>> Requirement already satisfied (use --upgrade to upgrade): jinja2 in
>>> /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
>>> frappe==4.0.0)
>>>
>>> Requirement already satisfied (use --upgrade to upgrade): markdown2 in
>>> /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
>>> frappe==4.0.0)
>>>
>>> Requirement already satisfied (use --upgrade to upgrade): markupsafe in
>>> /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
>>> frappe==4.0.0)
>>>
>>> Requirement already satisfied (use --upgrade to upgrade): mysql-python in
>>> /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
>>> frappe==4.0.0)
>>>
>>> Requirement already satisfied (use --upgrade to upgrade): pygeoip in
>>> /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
>>> frappe==4.0.0)
>>>
>>> Requirement already satisfied (use --upgrade to upgrade): python-dateutil
>>> in /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
>>> frappe==4.0.0)
>>>
>>> Requirement already satisfied (use --upgrade to upgrade):
>>> python-memcached in
>>> /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
>>> frappe==4.0.0)
>>>
>>> Requirement already satisfied (use --upgrade to upgrade): pytz==2013d in
>>> /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
>>> frappe==4.0.0)
>>>
>>> Requirement already satisfied (use --upgrade to upgrade): six in
>>> /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
>>> frappe==4.0.0)
>>>
>>> Requirement already satisfied (use --upgrade to upgrade): slugify in
>>> /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
>>> frappe==4.0.0)
>>>
>>> Requirement already satisfied (use --upgrade to upgrade): termcolor in
>>> /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
>>> frappe==4.0.0)
>>>
>>> Requirement already satisfied (use --upgrade to upgrade): werkzeug in
>>> /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
>>> frappe==4.0.0)
>>>
>>> Requirement already satisfied (use --upgrade to upgrade):
>>> semantic-version in
>>> /root/setup_file/frappe-bench/env/lib/python2.7/site-packages (from
>>> frappe==4.0.0)
>>>
>>> Downloading/unpacking lxml (from frappe==4.0.0)
>>>
>>>   Running setup.py
>>> (path:/root/setup_file/frappe-bench/env/build/lxml/setup.py) egg_info for
>>> package lxml
>>>
>>>     /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
>>> distribution option: 'bugtrack_url'
>>>
>>>       warnings.warn(msg)
>>>
>>>     Building lxml version 3.3.5.
>>>
>>>     Building without Cython.
>>>
>>>     Using build configuration of libxslt 1.1.26
>>>
>>>     Building against libxml2/libxslt in the following directory:
>>> /usr/lib/x86_64-linux-gnu
>>>
>>>
>>>
>>>     warning: no previously-included files found matching '*.py'
>>>
>>> Downloading/unpacking inlinestyler (from frappe==4.0.0)
>>>
>>>   Downloading inlinestyler-0.1.7.tar.gz
>>>
>>>   Running setup.py
>>> (path:/root/setup_file/frappe-bench/env/build/inlinestyler/setup.py)
>>> egg_info for package inlinestyler
>>>
>>>
>>>
>>> Downloading/unpacking rauth>=0.6.2 (from frappe==4.0.0)
>>>
>>>   Downloading rauth-0.7.0.tar.gz
>>>
>>>   Running setup.py
>>> (path:/root/setup_file/frappe-bench/env/build/rauth/setup.py) egg_info for
>>> package rauth
>>>
>>>
>>>
>>> Downloading/unpacking requests==1.2.3 (from frappe==4.0.0)
>>>
>>>   Running setup.py
>>> (path:/root/setup_file/frappe-bench/env/build/requests/setup.py) egg_info
>>> for package requests
>>>
>>>
>>>
>>> Downloading/unpacking celery (from frappe==4.0.0)
>>>
>>> Downloading/unpacking redis (from frappe==4.0.0)
>>>
>>>   Running setup.py
>>> (path:/root/setup_file/frappe-bench/env/build/redis/setup.py) egg_info for
>>> package redis
>>>
>>>
>>>
>>>     warning: no previously-included files found matching '__pycache__'
>>>
>>>     warning: no previously-included files matching '*.pyc' found under
>>> directory 'tests'
>>>
>>> Downloading/unpacking selenium (from frappe==4.0.0)
>>>
>>>   Running setup.py
>>> (path:/root/setup_file/frappe-bench/env/build/selenium/setup.py) egg_info
>>> for package selenium
>>>
>>>
>>>
>>> Downloading/unpacking urllib3 (from dropbox->frappe==4.0.0)
>>>
>>>   Running setup.py
>>> (path:/root/setup_file/frappe-bench/env/build/urllib3/setup.py) egg_info for
>>> package urllib3
>>>
>>>
>>>
>>> Downloading/unpacking cssutils (from inlinestyler->frappe==4.0.0)
>>>
>>>   Running setup.py
>>> (path:/root/setup_file/frappe-bench/env/build/cssutils/setup.py) egg_info
>>> for package cssutils
>>>
>>>
>>>
>>> Downloading/unpacking kombu>=3.0.15,<4.0 (from celery->frappe==4.0.0)
>>>
>>> Downloading/unpacking billiard>=3.3.0.17,<3.4 (from
>>> celery->frappe==4.0.0)
>>>
>>>   Running setup.py
>>> (path:/root/setup_file/frappe-bench/env/build/billiard/setup.py) egg_info
>>> for package billiard
>>>
>>>
>>>
>>>     warning: no files found matching '*.py' under directory 'Lib'
>>>
>>> Downloading/unpacking amqp>=1.4.5,<2.0 (from
>>> kombu>=3.0.15,<4.0->celery->frappe==4.0.0)
>>>
>>> Downloading/unpacking anyjson>=0.3.3 (from
>>> kombu>=3.0.15,<4.0->celery->frappe==4.0.0)
>>>
>>>   Downloading anyjson-0.3.3.tar.gz
>>>
>>>   Running setup.py
>>> (path:/root/setup_file/frappe-bench/env/build/anyjson/setup.py) egg_info for
>>> package anyjson
>>>
>>>
>>>
>>> Installing collected packages: lxml, inlinestyler, rauth, requests,
>>> celery, redis, selenium, frappe, urllib3, cssutils, kombu, billiard, amqp,
>>> anyjson
>>>
>>>   Running setup.py install for lxml
>>>
>>>     /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
>>> distribution option: 'bugtrack_url'
>>>
>>>       warnings.warn(msg)
>>>
>>>     Building lxml version 3.3.5.
>>>
>>>     Building without Cython.
>>>
>>>     Using build configuration of libxslt 1.1.26
>>>
>>>     Building against libxml2/libxslt in the following directory:
>>> /usr/lib/x86_64-linux-gnu
>>>
>>>     building 'lxml.etree' extension
>>>
>>>     gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
>>> -Wstrict-prototypes -fPIC -I/usr/include/libxml2
>>> -I/root/setup_file/frappe-bench/env/build/lxml/src/lxml/includes
>>> -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o
>>> build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w
>>>
>>>     gcc: internal compiler error: Killed (program cc1)
>>>
>>>     Please submit a full bug report,
>>>
>>>     with preprocessed source if appropriate.
>>>
>>>     See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
>>>
>>>     error: command 'gcc' failed with exit status 4
>>>
>>>     Complete output from command
>>> /root/setup_file/frappe-bench/env/bin/python2.7 -c "import setuptools,
>>> tokenize;__file__=u'/root/setup_file/frappe-bench/env/build/lxml/setup.py';exec(compile(getattr(tokenize,
>>> 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
>>> install --record /tmp/pip-nFiMcL-record/install-record.txt
>>> --single-version-externally-managed --compile --install-headers
>>> /root/setup_file/frappe-bench/env/include/site/python2.7:
>>>
>>>     /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
>>> distribution option: 'bugtrack_url'
>>>
>>>
>>>   warnings.warn(msg)
>>>
>>>
>>> Building lxml version 3.3.5.
>>>
>>>
>>> Building without Cython.
>>>
>>>
>>> Using build configuration of libxslt 1.1.26
>>>
>>>
>>> Building against libxml2/libxslt in the following directory:
>>> /usr/lib/x86_64-linux-gnu
>>>
>>>
>>> running install
>>>
>>>
>>> running build
>>>
>>>
>>> running build_py
>>>
>>>
>>> creating build
>>>
>>>
>>> creating build/lib.linux-x86_64-2.7
>>>
>>>
>>> creating build/lib.linux-x86_64-2.7/lxml
>>>
>>>
>>> copying src/lxml/pyclasslookup.py -> build/lib.linux-x86_64-2.7/lxml
>>>
>>>
>>> copying src/lxml/builder.py -> build/lib.linux-x86_64-2.7/lxml
>>>
>>>
>>> copying src/lxml/sax.py -> build/lib.linux-x86_64-2.7/lxml
>>>
>>>
>>> copying src/lxml/ElementInclude.py -> build/lib.linux-x86_64-2.7/lxml
>>>
>>>
>>> copying src/lxml/_elementpath.py -> build/lib.linux-x86_64-2.7/lxml
>>>
>>>
>>> copying src/lxml/doctestcompare.py -> build/lib.linux-x86_64-2.7/lxml
>>>
>>>
>>> copying src/lxml/__init__.py -> build/lib.linux-x86_64-2.7/lxml
>>>
>>>
>>> copying src/lxml/usedoctest.py -> build/lib.linux-x86_64-2.7/lxml
>>>
>>>
>>> copying src/lxml/cssselect.py -> build/lib.linux-x86_64-2.7/lxml
>>>
>>>
>>> creating build/lib.linux-x86_64-2.7/lxml/includes
>>>
>>>
>>> copying src/lxml/includes/__init__.py ->
>>> build/lib.linux-x86_64-2.7/lxml/includes
>>>
>>>
>>> creating build/lib.linux-x86_64-2.7/lxml/html
>>>
>>>
>>> copying src/lxml/html/html5parser.py ->
>>> build/lib.linux-x86_64-2.7/lxml/html
>>>
>>>
>>> copying src/lxml/html/builder.py -> build/lib.linux-x86_64-2.7/lxml/html
>>>
>>>
>>> copying src/lxml/html/_setmixin.py ->
>>> build/lib.linux-x86_64-2.7/lxml/html
>>>
>>>
>>> copying src/lxml/html/soupparser.py ->
>>> build/lib.linux-x86_64-2.7/lxml/html
>>>
>>>
>>> copying src/lxml/html/defs.py -> build/lib.linux-x86_64-2.7/lxml/html
>>>
>>>
>>> copying src/lxml/html/__init__.py -> build/lib.linux-x86_64-2.7/lxml/html
>>>
>>>
>>> copying src/lxml/html/diff.py -> build/lib.linux-x86_64-2.7/lxml/html
>>>
>>>
>>> copying src/lxml/html/usedoctest.py ->
>>> build/lib.linux-x86_64-2.7/lxml/html
>>>
>>>
>>> copying src/lxml/html/_diffcommand.py ->
>>> build/lib.linux-x86_64-2.7/lxml/html
>>>
>>>
>>> copying src/lxml/html/clean.py -> build/lib.linux-x86_64-2.7/lxml/html
>>>
>>>
>>> copying src/lxml/html/formfill.py -> build/lib.linux-x86_64-2.7/lxml/html
>>>
>>>
>>> copying src/lxml/html/_html5builder.py ->
>>> build/lib.linux-x86_64-2.7/lxml/html
>>>
>>>
>>> copying src/lxml/html/ElementSoup.py ->
>>> build/lib.linux-x86_64-2.7/lxml/html
>>>
>>>
>>> creating build/lib.linux-x86_64-2.7/lxml/isoschematron
>>>
>>>
>>> copying src/lxml/isoschematron/__init__.py ->
>>> build/lib.linux-x86_64-2.7/lxml/isoschematron
>>>
>>>
>>> copying src/lxml/lxml.etree.h -> build/lib.linux-x86_64-2.7/lxml
>>>
>>>
>>> copying src/lxml/lxml.etree_api.h -> build/lib.linux-x86_64-2.7/lxml
>>>
>>>
>>> copying src/lxml/includes/etreepublic.pxd ->
>>> build/lib.linux-x86_64-2.7/lxml/includes
>>>
>>>
>>> copying src/lxml/includes/uri.pxd ->
>>> build/lib.linux-x86_64-2.7/lxml/includes
>>>
>>>
>>> copying src/lxml/includes/relaxng.pxd ->
>>> build/lib.linux-x86_64-2.7/lxml/includes
>>>
>>>
>>> copying src/lxml/includes/tree.pxd ->
>>> build/lib.linux-x86_64-2.7/lxml/includes
>>>
>>>
>>> copying src/lxml/includes/c14n.pxd ->
>>> build/lib.linux-x86_64-2.7/lxml/includes
>>>
>>>
>>> copying src/lxml/includes/schematron.pxd ->
>>> build/lib.linux-x86_64-2.7/lxml/includes
>>>
>>>
>>> copying src/lxml/includes/config.pxd ->
>>> build/lib.linux-x86_64-2.7/lxml/includes
>>>
>>>
>>> copying src/lxml/includes/xmlparser.pxd ->
>>> build/lib.linux-x86_64-2.7/lxml/includes
>>>
>>>
>>> copying src/lxml/includes/dtdvalid.pxd ->
>>> build/lib.linux-x86_64-2.7/lxml/includes
>>>
>>>
>>> copying src/lxml/includes/htmlparser.pxd ->
>>> build/lib.linux-x86_64-2.7/lxml/includes
>>>
>>>
>>> copying src/lxml/includes/xinclude.pxd ->
>>> build/lib.linux-x86_64-2.7/lxml/includes
>>>
>>>
>>> copying src/lxml/includes/xmlerror.pxd ->
>>> build/lib.linux-x86_64-2.7/lxml/includes
>>>
>>>
>>> copying src/lxml/includes/xslt.pxd ->
>>> build/lib.linux-x86_64-2.7/lxml/includes
>>>
>>>
>>> copying src/lxml/includes/xpath.pxd ->
>>> build/lib.linux-x86_64-2.7/lxml/includes
>>>
>>>
>>> copying src/lxml/includes/xmlschema.pxd ->
>>> build/lib.linux-x86_64-2.7/lxml/includes
>>>
>>>
>>> copying src/lxml/includes/lxml-version.h ->
>>> build/lib.linux-x86_64-2.7/lxml/includes
>>>
>>>
>>> copying src/lxml/includes/etree_defs.h ->
>>> build/lib.linux-x86_64-2.7/lxml/includes
>>>
>>>
>>> creating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources
>>>
>>>
>>> creating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/rng
>>>
>>>
>>> copying src/lxml/isoschematron/resources/rng/iso-schematron.rng ->
>>> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/rng
>>>
>>>
>>> creating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl
>>>
>>>
>>> copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl ->
>>> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl
>>>
>>>
>>> copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl ->
>>> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl
>>>
>>>
>>> creating
>>> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
>>>
>>>
>>> copying
>>> src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl
>>> ->
>>> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
>>>
>>>
>>> copying
>>> src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl
>>> ->
>>> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
>>>
>>>
>>> copying
>>> src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl
>>> ->
>>> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
>>>
>>>
>>> copying
>>> src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl
>>> ->
>>> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
>>>
>>>
>>> copying
>>> src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl
>>> ->
>>> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
>>>
>>>
>>> copying
>>> src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt ->
>>> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
>>>
>>>
>>> running build_ext
>>>
>>>
>>> building 'lxml.etree' extension
>>>
>>>
>>> creating build/temp.linux-x86_64-2.7
>>>
>>>
>>> creating build/temp.linux-x86_64-2.7/src
>>>
>>>
>>> creating build/temp.linux-x86_64-2.7/src/lxml
>>>
>>>
>>> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
>>> -Wstrict-prototypes -fPIC -I/usr/include/libxml2
>>> -I/root/setup_file/frappe-bench/env/build/lxml/src/lxml/includes
>>> -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o
>>> build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w
>>>
>>>
>>> gcc: internal compiler error: Killed (program cc1)
>>>
>>>
>>> Please submit a full bug report,
>>>
>>>
>>> with preprocessed source if appropriate.
>>>
>>>
>>> See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
>>>
>>>
>>> error: command 'gcc' failed with exit status 4
>>>
>>>
>>> ----------------------------------------
>>>
>>> Cleaning up...
>>>
>>> Command /root/setup_file/frappe-bench/env/bin/python2.7 -c "import
>>> setuptools,
>>> tokenize;__file__=u'/root/setup_file/frappe-bench/env/build/lxml/setup.py';exec(compile(getattr(tokenize,
>>> 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
>>> install --record /tmp/pip-nFiMcL-record/install-record.txt
>>> --single-version-externally-managed --compile --install-headers
>>> /root/setup_file/frappe-bench/env/include/site/python2.7 failed with error
>>> code 1 in /root/setup_file/frappe-bench/env/build/lxml
>>>
>>> Storing debug log for failure in /root/.pip/pip.log
>>>
>>>
>>> Traceback (most recent call last):
>>>
>>>   File "./scripts/virtualenv.py", line 2365, in <module>
>>>
>>>     main()
>>>
>>>   File "./scripts/virtualenv.py", line 829, in main
>>>
>>>     after_install(options, home_dir)
>>>
>>>   File "./scripts/virtualenv.py", line 2355, in after_install
>>>
>>>     subprocess.check_output('/'.join([home_dir, 'bin', 'pip install -e
>>> {}/'.format(app['name'])]), shell=True)
>>>
>>>   File "/usr/lib/python2.7/subprocess.py", line 544, in check_output
>>>
>>>     raise CalledProcessError(retcode, cmd, output=output)
>>>
>>> subprocess.CalledProcessError: Command
>>> '/root/setup_file/frappe-bench/env/bin/pip install -e frappe/' returned
>>> non-zero exit status 1
>
> --
> Note:
>
> If you are posting an issue,
> 1. We should be able to replicate it at our end. So please give us as much
> information as you can. Please see it from the point of view of the person
> receiving the communication.
> 2. Paste your code at http://pastebin.com or http://gist.github.com and send
> only the URL via email
> 3. For sending images, use http://imgur.com or other similar services. Do
> not send images as attachments. Links are good. Same goes for any file you
> are going to send.
>
> End of Note
> ---
> You received this message because you are subscribed to the Google Groups
> "ERPNext Developer Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to erpnext-developer-forum+un...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/erpnext-developer-forum/866e7a5f-e090-49eb-8850-7127f9703b5f%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

lxml requires about 800M of free memory to build. Also, do not forget
to backup your database and upgrade to MariaDB.

Thanks,
--
Pratik
erpnext



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/765ae01b-9ba3-4708-a9e0-d465db27f3a9%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Hi Pratik, 

I passed that error after increase the instance memory to 1GB. 
Do I need to upgrade to MariaDB manually or the script will help me ? 

Currently, running the migrate command give me this error:

Executing erpnext.patches.4_0.split_email_settings in sdas
Traceback (innermost last):
  File "/root/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 65, in execute_patch
    frappe.get_attr(patchmodule + ".execute")()
  File "/root/frappe-bench/apps/erpnext/erpnext/patches/4_0/split_email_settings.py", line 11, in execute
    email_settings = frappe.get_doc("Email Settings")
  File "/root/frappe-bench/apps/frappe/frappe/__init__.py", line 319, in get_doc
    return frappe.model.document.get_doc(arg1, arg2)
  File "/root/frappe-bench/apps/frappe/frappe/model/document.py", line 23, in get_doc
    controller = get_controller(doctype)
  File "/root/frappe-bench/apps/frappe/frappe/model/document.py", line 33, in get_controller
    module = load_doctype_module(doctype)
  File "/root/frappe-bench/apps/frappe/frappe/modules/__init__.py", line 50, in load_doctype_module
    return frappe.get_module(get_module_name(doctype, module, prefix))
  File "/root/frappe-bench/apps/frappe/frappe/__init__.py", line 354, in get_module
    return importlib.import_module(modulename)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
 ImportError: No module named email_settings.email_settings
erpnext.patches.4_0.split_email_settings: failed: STOPPED
Traceback (most recent call last):
  File "scripts/3to4.py", line 33, in <module>
    migrate(args.site)
  File "scripts/3to4.py", line 27, in migrate
    latest()
  File "/root/frappe-bench/apps/frappe/frappe/cli.py", line 63, in new_fn
    return fn(*args, **new_kwargs)
  File "/root/frappe-bench/apps/frappe/frappe/cli.py", line 368, in latest
    frappe.modules.patch_handler.run_all()
  File "/root/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 27, in run_all
    raise PatchError(patch)
frappe.modules.patch_handler.PatchError: erpnext.patches.4_0.split_email_settings

 Can you help me take a look ? Thank you !!!



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/361b6e0b-7fbf-43ae-9e75-3d863ddd4706%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Hi Nguyen,

What is your setup for version 4? Are you using VM or bench?

-Anand


On Fri, May 23, 2014 at 2:26 PM, Nguyen Do Le Bao <na...@gmail.com> wrote:
Hi Pratik,

I passed that error after increase the instance memory to 1GB.

Do I need to upgrade to MariaDB manually or the script will help me ?


Currently, running the migrate command give me this error:

Executing erpnext.patches.4_0.split_email_settings in sdas

Traceback (innermost last):
File "/root/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 65, in execute_patch
frappe.get_attr(patchmodule + ".execute")()
File "/root/frappe-bench/apps/erpnext/erpnext/patches/4_0/split_email_settings.py", line 11, in execute

email_settings = frappe.get_doc(&quot;Email Settings&quot;)<br>  File &quot;/root/frappe-bench/apps/frappe/frappe/__init__.py&quot;, line 319, in get_doc<br>    return frappe.model.document.get_doc(arg1, arg2)<br>  File &quot;/root/frappe-bench/apps/frappe/frappe/model/document.py&quot;, line 23, in get_doc<br>

controller = get_controller(doctype)<br>  File &quot;/root/frappe-bench/apps/frappe/frappe/model/document.py&quot;, line 33, in get_controller<br>    module = load_doctype_module(doctype)<br>  File &quot;/root/frappe-bench/apps/frappe/frappe/modules/__init__.py&quot;, line 50, in load_doctype_module<br>

return frappe.get_module(get_module_name(doctype, module, prefix))<br>  File &quot;/root/frappe-bench/apps/frappe/frappe/__init__.py&quot;, line 354, in get_module<br>    return importlib.import_module(modulename)<br>

File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
ImportError: No module named email_settings.email_settings
erpnext.patches.4_0.split_email_settings: failed: STOPPED

Traceback (most recent call last):
File "scripts/3to4.py", line 33, in <module>
migrate(args.site)
File "scripts/3to4.py", line 27, in migrate
latest()
File "/root/frappe-bench/apps/frappe/frappe/cli.py", line 63, in new_fn

return fn(*args, **new_kwargs)<br>  File &quot;/root/frappe-bench/apps/frappe/frappe/cli.py&quot;, line 368, in latest<br>    frappe.modules.patch_handler.run_all()<br>  File &quot;/root/frappe-bench/apps/frappe/frappe/modules/patch_handler.py&quot;, line 27, in run_all<br>

raise PatchError(patch)<br>frappe.modules.patch_handler.PatchError: erpnext.patches.4_0.split_email_settings</blockquote></div></blockquote><div><br></div><div> Can you help me take a look ? Thank you !!!</div></div>



Note:



If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.



    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/361b6e0b-7fbf-43ae-9e75-3d863ddd4706%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.




Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAAQzbF1dH7iOiKOGdN%2BkctJV71SDw4wdBHzG6B9Y3SAm7KTLUg%40mail.gmail.com.

    For more options, visit https://groups.google.com/d/optout.
Hi Anand, 

So I was running version 3 on Digital Ocean's Ubuntu 12.04x64 VM. 
I replicated another instance and try migrate with frappe bench. 

Error occurs when running ./scripts/install.sh migrate_3_to_4 ...


On Friday, May 23, 2014 5:48:00 PM UTC+8, Anand Doshi wrote:
Hi Nguyen,

What is your setup for version 4? Are you using VM or bench?

-Anand


On Fri, May 23, 2014 at 2:26 PM, Nguyen Do Le Bao <na...@gmail.com> wrote:
Hi Pratik, 

I passed that error after increase the instance memory to 1GB. 

Do I need to upgrade to MariaDB manually or the script will help me ? 


Currently, running the migrate command give me this error:

Executing erpnext.patches.4_0.split_email_settings in sdas

Traceback (innermost last):
  File “/root/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 65, in execute_patch
    frappe.get_attr(patchmodule + “.execute”)()
  File “/root/frappe-bench/apps/erpnext/erpnext/patches/4_0/split_email_settings.py”, line 11, in execute

    email_settings = frappe.get_doc(“Email Settings”)
  File “/root/frappe-bench/apps/frappe/frappe/init.py”, line 319, in get_doc
    return frappe.model.document.get_doc(arg1, arg2)
  File “/root/frappe-bench/apps/frappe/frappe/model/document.py”, line 23, in get_doc

    controller = get_controller(doctype)
  File “/root/frappe-bench/apps/frappe/frappe/model/document.py”, line 33, in get_controller
    module = load_doctype_module(doctype)
  File “/root/frappe-bench/apps/frappe/frappe/modules/init.py”, line 50, in load_doctype_module

    return frappe.get_module(get_module_name(doctype, module, prefix))
  File “/root/frappe-bench/apps/frappe/frappe/init.py”, line 354, in get_module
    return importlib.import_module(modulename)

  File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
    import(name)
 ImportError: No module named email_settings.email_settings
erpnext.patches.4_0.split_email_settings: failed: STOPPED

Traceback (most recent call last):
  File “scripts/3to4.py”, line 33, in <module>
    migrate(args.site)
  File “scripts/3to4.py”, line 27, in migrate
    latest()
  File “/root/frappe-bench/apps/frappe/frappe/cli.py”, line 63, in new_fn

    return fn(*args, **new_kwargs)
  File “/root/frappe-bench/apps/frappe/frappe/cli.py”, line 368, in latest
    frappe.modules.patch_handler.run_all()
  File “/root/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 27, in run_all

    raise PatchError(patch)
frappe.modules.patch_handler.PatchError: erpnext.patches.4_0.split_email_settings


 Can you help me take a look ? Thank you !!!



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/361b6e0b-7fbf-43ae-9e75-3d863ddd4706%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.




Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/5677ff0b-14f0-4243-a3e8-989b6bceabdf%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Change repos in /apps to master branch and pull the latest git changes. Then try running migration again.

Thanks,
Anand.


On Fri, May 23, 2014 at 3:23 PM, Nguyen Do Le Bao <na…@gmail.com> wrote:

Hi Anand,

So I was running version 3 on Digital Ocean's Ubuntu 12.04x64 VM.
I replicated another instance and try migrate with frappe bench.

Error occurs when running ./scripts/install.sh migrate_3_to_4 ...


On Friday, May 23, 2014 5:48:00 PM UTC+8, Anand Doshi wrote:
Hi Nguyen,

What is your setup for version 4? Are you using VM or bench?

-Anand


On Fri, May 23, 2014 at 2:26 PM, Nguyen Do Le Bao <na...@gmail.com> wrote:
Hi Pratik,

I passed that error after increase the instance memory to 1GB.

Do I need to upgrade to MariaDB manually or the script will help me ?


Currently, running the migrate command give me this error:

Executing erpnext.patches.4_0.split_email_settings in sdas

Traceback (innermost last):
File "/root/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 65, in execute_patch
frappe.get_attr(patchmodule + ".execute")()
File "/root/frappe-bench/apps/erpnext/erpnext/patches/4_0/split_email_settings.py", line 11, in execute

email_settings = frappe.get_doc(&quot;Email Settings&quot;)<br>  File &quot;/root/frappe-bench/apps/<u></u>frappe/frappe/__init__.py&quot;, line 319, in get_doc<br>    return frappe.model.document.get_doc(<u></u>arg1, arg2)<br>

File "/root/frappe-bench/apps/frappe/frappe/model/document.py", line 23, in get_doc

controller = get_controller(doctype)<br>  File &quot;/root/frappe-bench/apps/<u></u>frappe/frappe/model/document.<u></u>py&quot;, line 33, in get_controller<br>    module = load_doctype_module(doctype)<br>  File &quot;/root/frappe-bench/apps/<u></u>frappe/frappe/modules/__init__<u></u>.py&quot;, line 50, in load_doctype_module<br>



return frappe.get_module(get_module_<u></u>name(doctype, module, prefix))<br>  File &quot;/root/frappe-bench/apps/<u></u>frappe/frappe/__init__.py&quot;, line 354, in get_module<br>    return importlib.import_module(<u></u>modulename)<br>

File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
ImportError: No module named email_settings.email_settings
erpnext.patches.4_0.split_email_settings: failed: STOPPED

Traceback (most recent call last):
File "scripts/3to4.py", line 33, in <module>
migrate(args.site)
File "scripts/3to4.py", line 27, in migrate
latest()
File "/root/frappe-bench/apps/frappe/frappe/cli.py", line 63, in new_fn

return fn(*args, **new_kwargs)<br>  File &quot;/root/frappe-bench/apps/<u></u>frappe/frappe/cli.py&quot;, line 368, in latest<br>    frappe.modules.patch_handler.<u></u>run_all()<br>  File &quot;/root/frappe-bench/apps/<u></u>frappe/frappe/modules/patch_<u></u>handler.py&quot;, line 27, in run_all<br>



raise PatchError(patch)<br>frappe.modules.patch_handler.<u></u>PatchError: erpnext.patches.4_0.split_<u></u>email_settings</blockquote></div></blockquote><div><br></div><div> Can you help me take a look ? Thank you !!!</div>



Note:



If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.



    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/361b6e0b-7fbf-43ae-9e75-3d863ddd4706%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.




Note:



If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.



    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/5677ff0b-14f0-4243-a3e8-989b6bceabdf%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAAQzbF37sXa6_ks9_Qk9eYfz4KD48tPNs1jgwsn5rKPM3WkV3Q%40mail.gmail.com.

    For more options, visit https://groups.google.com/d/optout.
HI Anand, 

Both repos in frappe-bench/apps and path/to/olderp/app are on master branch and up to date. 

Thanks.

On Friday, May 23, 2014 7:51:30 PM UTC+8, Anand Doshi wrote:
Change repos in /apps to master branch and pull the latest git changes. Then try running migration again.

Thanks,
Anand.


On Fri, May 23, 2014 at 3:23 PM, Nguyen Do Le Bao <na…@gmail.com> wrote:

Hi Anand, 

So I was running version 3 on Digital Ocean's Ubuntu 12.04x64 VM. 
I replicated another instance and try migrate with frappe bench. 

Error occurs when running ./scripts/install.sh migrate_3_to_4 ...


On Friday, May 23, 2014 5:48:00 PM UTC+8, Anand Doshi wrote:
Hi Nguyen,

What is your setup for version 4? Are you using VM or bench?

-Anand


On Fri, May 23, 2014 at 2:26 PM, Nguyen Do Le Bao <na...@gmail.com> wrote:
Hi Pratik, 

I passed that error after increase the instance memory to 1GB. 

Do I need to upgrade to MariaDB manually or the script will help me ? 


Currently, running the migrate command give me this error:

Executing erpnext.patches.4_0.split_email_settings in sdas

Traceback (innermost last):
  File “/root/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 65, in execute_patch
    frappe.get_attr(patchmodule + “.execute”)()
  File “/root/frappe-bench/apps/erpnext/erpnext/patches/4_0/split_email_settings.py”, line 11, in execute

    email_settings = frappe.get_doc(“Email Settings”)
  File “/root/frappe-bench/apps/frappe/frappe/init.py”, line 319, in get_doc
    return frappe.model.document.get_doc(arg1, arg2)

  File “/root/frappe-bench/apps/frappe/frappe/model/document.py”, line 23, in get_doc

    controller = get_controller(doctype)
  File “/root/frappe-bench/apps/frappe/frappe/model/document.py”, line 33, in get_controller
    module = load_doctype_module(doctype)
  File “/root/frappe-bench/apps/frappe/frappe/modules/init.py”, line 50, in load_doctype_module

    return frappe.get_module(get_module_name(doctype, module, prefix))
  File “/root/frappe-bench/apps/frappe/frappe/init.py”, line 354, in get_module
    return importlib.import_module(modulename)

  File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
    import(name)
 ImportError: No module named email_settings.email_settings
erpnext.patches.4_0.split_email_settings: failed: STOPPED

Traceback (most recent call last):
  File “scripts/3to4.py”, line 33, in <module>
    migrate(args.site)
  File “scripts/3to4.py”, line 27, in migrate
    latest()
  File “/root/frappe-bench/apps/frappe/frappe/cli.py”, line 63, in new_fn

    return fn(*args, **new_kwargs)
  File “/root/frappe-bench/apps/frappe/frappe/cli.py”, line 368, in latest
    frappe.modules.patch_handler.run_all()
  File “/root/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 27, in run_all

    raise PatchError(patch)
frappe.modules.patch_handler.PatchError: erpnext.patches.4_0.split_email_settings


 Can you help me take a look ? Thank you !!!



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsubscr…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/361b6e0b-7fbf-43ae-9e75-3d863ddd4706%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.




Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/5677ff0b-14f0-4243-a3e8-989b6bceabdf%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/e6a84a29-3934-4065-8095-9c74f8e2078c%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.