Upgrading from 3.14.4 to 4

Using the information here: https://github.com/frappe/frappe-bench/blob/master/Readme.md

I have added MariaDB repos and installed all dependencies.

This is as far as I got:


er...@erpnext:~/frappe-bench$ ./scripts/install.sh migrate_3_to_4 /home/erpnext/
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.
remote: Reusing existing pack: 112688, done.
remote: Counting objects: 183, done.
remote: Compressing objects: 100% (181/181), done.
remote: Total 112871 (delta 87), reused 4 (delta 2)
Receiving objects: 100% (112871/112871), 35.11 MiB | 2.25 MiB/s, done.
Resolving deltas: 100% (80258/80258), done.
remote: Reusing existing pack: 833, done.
remote: Counting objects: 31, done.
remote: Compressing objects: 100% (27/27), done.
remote: Total 864 (delta 15), reused 0 (delta 0)
Receiving objects: 100% (864/864), 252.09 KiB | 267 KiB/s, done.
Resolving deltas: 100% (592/592), done.
Traceback (most recent call last):
  File "scripts/3to4.py", line 33, in <module>
    migrate(args.site)
  File "scripts/3to4.py", line 21, in migrate
    validate(site)
  File "scripts/3to4.py", line 15, in validate
    if not executed(last_3_patch):
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 89, in executed
    done = frappe.db.get_value("Patch Log", {"patch": patchmodule})
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/database.py", line 300, in get_value
    ret = self.get_values(doctype, filters, fieldname, ignore, as_dict, debug)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/database.py", line 317, in get_values
    return self.get_values_from_table(fields, filters, doctype, as_dict, debug, order_by, update)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/database.py", line 390, in get_values_from_table
    conditions, order_by), filters, as_dict=as_dict, debug=debug, update=update)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/database.py", line 76, in sql
    self.connect()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/database.py", line 47, in connect
    use_unicode=True, charset='utf8')
  File "/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/__init__.py", line 81, in Connect
    return Connection(*args, **kwargs)
  File "/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 193, in __init__
    super(Connection, self).__init__(*args, **kwargs2)
TypeError: connect() argument 2 must be string, not None
er...@erpnext:~/frappe-bench$ 



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/6d28a001-0bea-4b64-affb-78e241ed6d3a%40googlegroups.com.

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

On Fri, Jun 6, 2014 at 6:11 PM, me...@gmail.com wrote:

Using the information here:
https://github.com/frappe/frappe-bench/blob/master/Readme.md

I have added MariaDB repos and installed all dependencies.

This is as far as I got:

er…@erpnext:~/frappe-bench$ ./scripts/install.sh migrate_3_to_4
/home/erpnext/
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.
remote: Reusing existing pack: 112688, done.
remote: Counting objects: 183, done.
remote: Compressing objects: 100% (181/181), done.
remote: Total 112871 (delta 87), reused 4 (delta 2)
Receiving objects: 100% (112871/112871), 35.11 MiB | 2.25 MiB/s, done.
Resolving deltas: 100% (80258/80258), done.
remote: Reusing existing pack: 833, done.
remote: Counting objects: 31, done.
remote: Compressing objects: 100% (27/27), done.
remote: Total 864 (delta 15), reused 0 (delta 0)
Receiving objects: 100% (864/864), 252.09 KiB | 267 KiB/s, done.
Resolving deltas: 100% (592/592), done.
Traceback (most recent call last):
File “scripts/3to4.py”, line 33, in
migrate(args.site)
File “scripts/3to4.py”, line 21, in migrate
validate(site)
File “scripts/3to4.py”, line 15, in validate
if not executed(last_3_patch):
File
“/home/erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”,
line 89, in executed
done = frappe.db.get_value(“Patch Log”, {“patch”: patchmodule})
File “/home/erpnext/frappe-bench/apps/frappe/frappe/database.py”, line
300, in get_value
ret = self.get_values(doctype, filters, fieldname, ignore, as_dict,
debug)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/database.py”, line
317, in get_values
return self.get_values_from_table(fields, filters, doctype, as_dict,
debug, order_by, update)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/database.py”, line
390, in get_values_from_table
conditions, order_by), filters, as_dict=as_dict, debug=debug,
update=update)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/database.py”, line
76, in sql
self.connect()
File “/home/erpnext/frappe-bench/apps/frappe/frappe/database.py”, line
47, in connect
use_unicode=True, charset=‘utf8’)
File
“/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/init.py”,
line 81, in Connect
return Connection(*args, **kwargs)
File
“/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py”,
line 193, in init
super(Connection, self).init(*args, **kwargs2)
TypeError: connect() argument 2 must be string, not None
er…@erpnext:~/frappe-bench$


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/6d28a001-0bea-4b64-affb-78e241ed6d3a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi,
You have to pass the path to old erpnext directory to the command.
Please remove the site directory and try running the command again.

Will add a validation for this.

Thanks,

Pratik
erpnext

Sorry, i don't understand. Which directory do i remove?





Am Freitag, 6. Juni 2014 15:45:41 UTC+2 schrieb Pratik Vyas:
On Fri, Jun 6, 2014 at 6:11 PM,  <me...@gmail.com> wrote:
> Using the information here:
> https://github.com/frappe/frappe-bench/blob/master/Readme.md
>
> I have added MariaDB repos and installed all dependencies.
>
> This is as far as I got:
>
>
>> er...@erpnext:~/frappe-bench$ ./scripts/install.sh migrate_3_to_4
>> /home/erpnext/
>> 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.
>> remote: Reusing existing pack: 112688, done.
>> remote: Counting objects: 183, done.
>> remote: Compressing objects: 100% (181/181), done.
>> remote: Total 112871 (delta 87), reused 4 (delta 2)
>> Receiving objects: 100% (112871/112871), 35.11 MiB | 2.25 MiB/s, done.
>> Resolving deltas: 100% (80258/80258), done.
>> remote: Reusing existing pack: 833, done.
>> remote: Counting objects: 31, done.
>> remote: Compressing objects: 100% (27/27), done.
>> remote: Total 864 (delta 15), reused 0 (delta 0)
>> Receiving objects: 100% (864/864), 252.09 KiB | 267 KiB/s, done.
>> Resolving deltas: 100% (592/592), done.
>> Traceback (most recent call last):
>>   File "scripts/3to4.py", line 33, in <module>
>>     migrate(args.site)
>>   File "scripts/3to4.py", line 21, in migrate
>>     validate(site)
>>   File "scripts/3to4.py", line 15, in validate
>>     if not executed(last_3_patch):
>>   File
>> "/home/erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py",
>> line 89, in executed
>>     done = frappe.db.get_value("Patch Log", {"patch": patchmodule})
>>   File "/home/erpnext/frappe-bench/apps/frappe/frappe/database.py", line
>> 300, in get_value
>>     ret = self.get_values(doctype, filters, fieldname, ignore, as_dict,
>> debug)
>>   File "/home/erpnext/frappe-bench/apps/frappe/frappe/database.py", line
>> 317, in get_values
>>     return self.get_values_from_table(fields, filters, doctype, as_dict,
>> debug, order_by, update)
>>   File "/home/erpnext/frappe-bench/apps/frappe/frappe/database.py", line
>> 390, in get_values_from_table
>>     conditions, order_by), filters, as_dict=as_dict, debug=debug,
>> update=update)
>>   File "/home/erpnext/frappe-bench/apps/frappe/frappe/database.py", line
>> 76, in sql
>>     self.connect()
>>   File "/home/erpnext/frappe-bench/apps/frappe/frappe/database.py", line
>> 47, in connect
>>     use_unicode=True, charset='utf8')
>>   File
>> "/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/__init__.py",
>> line 81, in Connect
>>     return Connection(*args, **kwargs)
>>   File
>> "/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py",
>> line 193, in __init__
>>     super(Connection, self).__init__(*args, **kwargs2)
>> TypeError: connect() argument 2 must be string, not None
>> er...@erpnext:~/frappe-bench$
>
>
> --
> 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/6d28a001-0bea-4b64-affb-78e241ed6d3a%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.


Hi,
You have to pass the path to old erpnext directory to the command.
Please remove the site directory and try running the command again.

Will add a validation for this.

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/2839327b-629f-45f1-b9a2-66f1506946f9%40googlegroups.com.

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