Migration error from 3 to 4

104 views
Skip to first unread message

aliosman20

unread,
Apr 24, 2014, 7:45:07 AM4/24/14
to erpnext-dev...@googlegroups.com
Hi,

I followed migration instruction on https://github.com/frappe/frappe-bench .

I upload last erpnext 3 version and there is no problem.

My erpnext installation directory is /var/www/erpnext in virtualbox image elemantary OS.

In  /var/www   directory I used migration command.

git clone https://github.com/frappe/frappe-bench
cd frappe-bench
./scripts/install.sh migrate_3_to_4 /var/www/erpnext
Bur I got this error. How can I solve this error


 Running setup.py install for termcolor

  Running setup.py install for werkzeug

    warning: no files found matching '*' under directory 'werkzeug/debug/templates'
    warning: no files found matching '*' under directory 'tests'
    warning: no previously-included files matching '*.pyc' found under directory 'docs'
    warning: no previously-included files matching '*.pyo' found under directory 'docs'
    warning: no previously-included files matching '*.pyc' found under directory 'tests'
    warning: no previously-included files matching '*.pyo' found under directory 'tests'
    warning: no previously-included files matching '*.pyc' found under directory 'examples'
    warning: no previously-included files matching '*.pyo' found under directory 'examples'
    no previously-included directories found matching 'docs/_build'
  Running setup.py install for semantic-version

    no previously-included directories found matching 'docs/_build'
  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.
    ERROR: /bin/sh: 1: xslt-config: not found

    ** make sure the development packages of libxml2 and libxslt are installed **

    Using build configuration of libxslt
    building 'lxml.etree' extension
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/var/www/frappe-bench/env/build/lxml/src/lxml/includes -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-i686-2.7/src/lxml/lxml.etree.o -w
    In file included from src/lxml/lxml.etree.c:346:0:
    /var/www/frappe-bench/env/build/lxml/src/lxml/includes/etree_defs.h:9:31: fatal error: libxml/xmlversion.h: No such file or directory
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    Complete output from command /var/www/frappe-bench/env/bin/python2.7 -c "import setuptools, tokenize;__file__=u'/var/www/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-9EnQSd-record/install-record.txt --single-version-externally-managed --compile --install-headers /var/www/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.

ERROR: /bin/sh: 1: xslt-config: not found



** make sure the development packages of libxml2 and libxslt are installed **



Using build configuration of libxslt

running install

running build

running build_py

creating build

creating build/lib.linux-i686-2.7

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

creating build/lib.linux-i686-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-i686-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-i686-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-i686-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-i686-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-i686-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1

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

running build_ext

building 'lxml.etree' extension

creating build/temp.linux-i686-2.7

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

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

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

In file included from src/lxml/lxml.etree.c:346:0:

/var/www/frappe-bench/env/build/lxml/src/lxml/includes/etree_defs.h:9:31: fatal error: libxml/xmlversion.h: No such file or directory

compilation terminated.

error: command 'gcc' failed with exit status 1

----------------------------------------
Cleaning up...
Command /var/www/frappe-bench/env/bin/python2.7 -c "import setuptools, tokenize;__file__=u'/var/www/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-9EnQSd-record/install-record.txt --single-version-externally-managed --compile --install-headers /var/www/frappe-bench/env/include/site/python2.7 failed with error code 1 in /var/www/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 '/var/www/frappe-bench/env/bin/pip install -e frappe/' returned non-zero exit status 1
root@erpnext-VirtualBox:/var/www/frappe-bench#

Pratik Vyas

unread,
Apr 24, 2014, 7:48:02 AM4/24/14
to erpnext-dev...@googlegroups.com
From your log, :)

ERROR: /bin/sh: 1: xslt-config: not found



** make sure the development packages of libxml2 and libxslt are installed **

These should have been installed by the "sudo apt-get install..." line
in frappe-bench's README.
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/erpnext-developer-forum/eca0c32d-b013-4f7b-ab9f-dda0c59dcb5f%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Pratik
erpnext

Ali Osman TEKKANAT

unread,
Apr 24, 2014, 10:33:57 AM4/24/14
to erpnext-dev...@googlegroups.com
Hi Pratik,
Now installed all Pre-requisites using 
sudo apt-get install python-dev build-essential python-mysqldb git memcached ntp vim screen htop mariadb-server mariadb-common libmariadbclient-dev  libxslt1.1 libxslt1-dev redis-server
and used migration command. There is no problem now.

I already installed nginx and supervisor before. But when I enter this command now

  • cp config/nginx.conf /etc/nginx/conf.d/frappe.conf
  • cp config/supervisor.conf /etc/supervisor/conf.d/frappe.conf

I got following error now.
cp: cannot stat `config/nginx.conf': No such file or directory
cp: cannot stat `config/supervisor.conf': No such file or directory.

In config directory there is no nginx.conf and supervisor.conf.


Ali Osman Tekkanat


Ali Osman TEKKANAT

unread,
Apr 25, 2014, 7:00:38 AM4/25/14
to erpnext-dev...@googlegroups.com
Hi Pratik,

Could you see my previous email about migration error?

Thanks,

Ali 

Ali Osman Tekkanat


2014-04-24 14:48 GMT+03:00 Pratik Vyas <pdv...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages