Try ERPNext 4 using frappe-bench

456 views
Skip to first unread message

Pratik Vyas

unread,
Mar 7, 2014, 2:18:39 AM3/7/14
to erpnext-dev...@googlegroups.com
Hi Community,

We've released a beta version of frappe-bench that installs ERPNext 4
by default.

https://github.com/frappe/frappe-bench

Thanks,
--
Pratik
erpnext

Gupteshwar Joshi

unread,
Mar 7, 2014, 9:22:11 AM3/7/14
to erpnext-dev...@googlegroups.com
Hi Pratik,
I was trying to install the same but it asks for the github username and password.
Once provided it halts saying https://github.com/frappe/shopping-cart not found.

Can you suggest a wayout.

I tried this in the https://github.com/frappe/shopping-cart.git in the folder still it looks online for the same and fails.

Thanks and Regards,

--
Gupteshwar Joshi | Head (Development)
Cell: +91 997 016 0421 | Off. : (20) 657 0800/ 25281316
New Indictrans Technologies Pvt Ltd | www.indictranstech.com


This e-mail has arrived in your e-mail Inbox from  New Indictrans Technologies Private Limited, Pune. Please do visit http://www.indictranstech.com/  to know more about New Indictrans Technologies Private Limited. This email is not spam. We follow 'US Unsolicited Electronic Mail Act of 2000', which states that an e-mail cannot be considered SPAM if it contains contact/removal information, which this e-mail does. This e-mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If, by an addressing or transmission error, this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or it's attachment(s) other than by its intended recipient(s) is strictly prohibited. Any opinions expressed in this email are those of the individual and not necessarily of the organisation. Before opening attachment(s), please scan the attachment for viruses.". In case & if you do not wish to receive e-mail (the way you have received it today for what so ever cause or reasons) in near future? Reply back to this email saying "Remove e-mail ID". Within two working days your ID will be removed.


--
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/CAG8U0E%3DQT4kH0-3GYyA2X5R_WNfM9enFSSeESNtmoTRrztGH-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

MP

unread,
Mar 7, 2014, 12:36:32 PM3/7/14
to erpnext-dev...@googlegroups.com
Hi Pratik,

I am getting below error when trying to migrate version 3 to 4 using ./scripts/install.sh migrate_3_to_4 /path/to/old/erpnext on a test server. Could you please let me know if I need to do anything at my end to rectify this error? Thanks.

Executing frappe.patches.4_0.private_backups in erp4_test
Traceback (innermost last):
  File "/var/www/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 65, in execute_patch
    frappe.get_attr(patchmodule + ".execute")()
  File "/var/www/frappe-bench/apps/frappe/frappe/patches/4_0/private_backups.py", line 11, in execute
    raise Exception, "Backups path in conf set to public directory"
 Exception: Backups path in conf set to public directory

frappe.patches.4_0.private_backups: 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 "/var/www/frappe-bench/apps/frappe/frappe/cli.py", line 63, in new_fn
    return fn(*args, **new_kwargs)
  File "/var/www/frappe-bench/apps/frappe/frappe/cli.py", line 311, in latest
    frappe.modules.patch_handler.run_all()
  File "/var/www/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 27, in run_all
    raise PatchError(patch)
frappe.modules.patch_handler.PatchError: frappe.patches.4_0.private_backups

Kind regards,
Mayur Patel

Pratik Vyas

unread,
Mar 7, 2014, 12:47:35 PM3/7/14
to erpnext-dev...@googlegroups.com
On Fri, Mar 7, 2014 at 7:52 PM, Gupteshwar Joshi <gupte...@indictranstech.com> wrote:
Hi Pratik,
I was trying to install the same but it asks for the github username and password.
Once provided it halts saying https://github.com/frappe/shopping-cart not found.

Can you suggest a wayout.

I tried this in the https://github.com/frappe/shopping-cart.git in the folder still it looks online for the same and fails.

This is strange. You can try to clone it manually in the apps directory (as shopping_cart) and run install.sh again.
```
cd apps
git clone https://github.com/frappe/shopping-cart.git --origin upstream shopping_cart
```
 

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



--
Pratik
erpnext

Pratik Vyas

unread,
Mar 7, 2014, 12:51:54 PM3/7/14
to erpnext-dev...@googlegroups.com
Hi Mayur,
Edit the sites/yoursite/site_config.json and either remove the
backups_path or change it to 'private/backups'. Then, run the update
command.
```
edit sites/yoursite/site_config.json
./scripts/update.sh
```

This is because with version 4, we authenticate backup downloads.
Will automate this in 3to4.py.

Thanks for reporting!

--
Pratik
erpnext

Gupteshwar Joshi

unread,
Mar 8, 2014, 6:23:39 AM3/8/14
to erpnext-dev...@googlegroups.com
Thanks Pratik,
But I couldn't find the apps folder in setup, so editing standard_apps.json and replacing the URL for shopping-cart with https://github.com/frappe/shopping-cart.git did the trick for me.

Regards,

--
Gupteshwar Joshi | Head (Development)
Cell: +91 997 016 0421 | Off. : (20) 657 0800/ 25281316
New Indictrans Technologies Pvt Ltd | www.indictranstech.com


This e-mail has arrived in your e-mail Inbox from  New Indictrans Technologies Private Limited, Pune. Please do visit http://www.indictranstech.com/  to know more about New Indictrans Technologies Private Limited. This email is not spam. We follow 'US Unsolicited Electronic Mail Act of 2000', which states that an e-mail cannot be considered SPAM if it contains contact/removal information, which this e-mail does. This e-mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If, by an addressing or transmission error, this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or it's attachment(s) other than by its intended recipient(s) is strictly prohibited. Any opinions expressed in this email are those of the individual and not necessarily of the organisation. Before opening attachment(s), please scan the attachment for viruses.". In case & if you do not wish to receive e-mail (the way you have received it today for what so ever cause or reasons) in near future? Reply back to this email saying "Remove e-mail ID". Within two working days your ID will be removed.


Pratik Vyas

unread,
Mar 9, 2014, 6:14:09 AM3/9/14
to erpnext-dev...@googlegroups.com
Hi Gupteshwar,


On Sat, Mar 8, 2014 at 4:53 PM, Gupteshwar Joshi <gupte...@indictranstech.com> wrote:
Thanks Pratik,
But I couldn't find the apps folder in setup, so editing standard_apps.json and replacing the URL for shopping-cart with https://github.com/frappe/shopping-cart.git did the trick for me.


Thanks for pointing out. Updated the script.
 
Regards,

--
Gupteshwar Joshi | Head (Development)
Cell: +91 997 016 0421 | Off. : (20) 657 0800/ 25281316
New Indictrans Technologies Pvt Ltd | www.indictranstech.com


This e-mail has arrived in your e-mail Inbox from  New Indictrans Technologies Private Limited, Pune. Please do visit http://www.indictranstech.com/  to know more about New Indictrans Technologies Private Limited. This email is not spam. We follow 'US Unsolicited Electronic Mail Act of 2000', which states that an e-mail cannot be considered SPAM if it contains contact/removal information, which this e-mail does. This e-mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If, by an addressing or transmission error, this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or it's attachment(s) other than by its intended recipient(s) is strictly prohibited. Any opinions expressed in this email are those of the individual and not necessarily of the organisation. Before opening attachment(s), please scan the attachment for viruses.". In case & if you do not wish to receive e-mail (the way you have received it today for what so ever cause or reasons) in near future? Reply back to this email saying "Remove e-mail ID". Within two working days your ID will be removed.


--
Pratik
erpnext

MP

unread,
Mar 10, 2014, 8:14:33 AM3/10/14
to erpnext-dev...@googlegroups.com
Thanks Pratik for your response.

Instead of doing what you had suggested. I started the whole process again on a separate clean server. This time before doing anything I changed the existing conf.py file of version 3 instance to have backup_path as backup_path = 'private/backups' before updating it.

Then I did below:

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


Now I get below error message. Please note that we have a lot of users whose profile has been disabled since they are no longer working for the company. Please suggest what should I do to rectify this issue. Thanks.

Executing erpnext.patches.4_0.update_user_properties in erp4_test

Traceback (innermost last):
  File "/var/www/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 65, in execute_patch
    frappe.get_attr(patchmodule + ".execute")()
  File "/var/www/frappe-bench/apps/erpnext/erpnext/patches/4_0/update_user_properties.py", line 14, in execute
    add_employee_restrictions_to_leave_approver()
  File "/var/www/frappe-bench/apps/erpnext/erpnext/patches/4_0/update_user_properties.py", line 90, in add_employee_restrictions_to_leave_approver
    frappe.bean("Employee", employee).save()
  File "/var/www/frappe-bench/apps/frappe/frappe/model/bean.py", line 310, in save
    self.run_method('validate')
  File "/var/www/frappe-bench/apps/frappe/frappe/model/bean.py", line 237, in run_method
    frappe.call(getattr(self.controller, method), *args, **kwargs))
  File "/var/www/frappe-bench/apps/frappe/frappe/__init__.py", line 503, in call
    return fn(*args, **newargs)
  File "/var/www/frappe-bench/apps/erpnext/erpnext/hr/doctype/employee/employee.py", line 38, in validate
    self.validate_for_enabled_user_id()
  File "/var/www/frappe-bench/apps/erpnext/erpnext/hr/doctype/employee/employee.py", line 152, in validate_for_enabled_user_id
    "msg": _("is disabled.")
  File "/var/www/frappe-bench/apps/frappe/frappe/__init__.py", line 212, in throw
    msgprint(msg, raise_exception=exc)
  File "/var/www/frappe-bench/apps/frappe/frappe/__init__.py", line 209, in msgprint
    _raise_exception()
  File "/var/www/frappe-bench/apps/frappe/frappe/__init__.py", line 193, in _raise_exception
    raise raise_exception, msg
 ValidationError: User ID: john....@company.com is disabled.

erpnext.patches.4_0.update_user_properties: 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 "/var/www/frappe-bench/apps/frappe/frappe/cli.py", line 63, in new_fn
    return fn(*args, **new_kwargs)
  File "/var/www/frappe-bench/apps/frappe/frappe/cli.py", line 311, in latest
    frappe.modules.patch_handler.run_all()
  File "/var/www/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.update_user_properties

Kind regards,
Mayur

Pratik Vyas

unread,
Mar 11, 2014, 2:56:43 AM3/11/14
to erpnext-dev...@googlegroups.com
Hi Mayur,
yes, we are able to replicate this issue. Will push a fix soon.

> Kind regards,
> Mayur
>
>
>
>
>
>
>
>
>
>
>>
>> Edit the sites/yoursite/site_config.json and either remove the
>> backups_path or change it to 'private/backups'. Then, run the update
>> command.
>> ```
>> edit sites/yoursite/site_config.json
>> ./scripts/update.sh
>> ```
>>
>> This is because with version 4, we authenticate backup downloads.
>> Will automate this in 3to4.py.
>>
>> Thanks for reporting!
>>
>> --
>> 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...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/erpnext-developer-forum/90ed59e3-8c32-48c4-8ee7-02bb5c71bd61%40googlegroups.com.

MP

unread,
Mar 11, 2014, 8:21:21 AM3/11/14
to erpnext-dev...@googlegroups.com
Thanks Pratik.

Please let us know once the fix has been pushed. Thanks.

Kind regards,
Mayur Patel

Pratik Vyas

unread,
Mar 14, 2014, 5:02:55 AM3/14/14
to erpnext-dev...@googlegroups.com
Hi Mayur,

On Tue, Mar 11, 2014 at 5:51 PM, MP <mayur....@gmail.com> wrote:
> Thanks Pratik.
>
> Please let us know once the fix has been pushed. Thanks.
>

The fix was pushed yesterday. Sorry for the late reply.

> Kind regards,
> Mayur Patel

Thanks,
--
Pratik
erpnext

MP

unread,
Mar 17, 2014, 11:47:10 AM3/17/14
to erpnext-dev...@googlegroups.com

Hi Pratik,

Now I am getting below error message. Could you please look into this? Thanks.

Executing frappe.patches.4_0.remove_old_parent in erp4_test
Success
Executing frappe.patches.4_0.rename_profile_to_user in erp4_test

Traceback (innermost last):
  File "/var/www/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 65, in execute_patch
    frappe.get_attr(patchmodule + ".execute")()
  File "/var/www/frappe-bench/apps/frappe/frappe/patches/4_0/rename_profile_to_user.py", line 12, in execute
    rename_field("Website Route Permission", "profile", "user")
  File "/var/www/frappe-bench/apps/frappe/frappe/model/__init__.py", line 110, in rename_field
    (doctype, new_fieldname, old_fieldname))
  File "/var/www/frappe-bench/apps/frappe/frappe/database.py", line 112, in sql
    self._cursor.execute(query)
  File "/var/www/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
    self.errorhandler(self, exc, value)
  File "/var/www/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
    raise errorclass, errorvalue
 OperationalError: (1054, "Unknown column 'profile' in 'field list'")

frappe.patches.4_0.rename_profile_to_user: 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 "/var/www/frappe-bench/apps/frappe/frappe/cli.py", line 63, in new_fn
    return fn(*args, **new_kwargs)
  File "/var/www/frappe-bench/apps/frappe/frappe/cli.py", line 326, in latest

    frappe.modules.patch_handler.run_all()
  File "/var/www/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 27, in run_all
    raise PatchError(patch)
frappe.modules.patch_handler.PatchError: frappe.patches.4_0.rename_profile_to_user


Kind regards,
MP

Pratik Vyas

unread,
Mar 18, 2014, 1:22:43 AM3/18/14
to erpnext-dev...@googlegroups.com
Hi Mayur,
We updated the patch to handle this case. Please update and try again.
Thanks for reporting!
>
> Kind regards,
> MP
>
> --
> 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/3ea714e7-7c16-49f0-84cc-60b0aa635236%40googlegroups.com.

MP

unread,
Mar 18, 2014, 10:01:12 AM3/18/14
to erpnext-dev...@googlegroups.com
Hi Pratik,

I am getting below error now. Could you please look into it? Thanks.

Executing frappe.patches.4_0.rename_sitemap_to_route in erp4_test
Success
Executing frappe.patches.4_0.set_website_route_idx in erp4_test

Traceback (innermost last):
  File "/var/www/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 65, in execute_patch
    frappe.get_attr(patchmodule + ".execute")()
  File "/var/www/frappe-bench/apps/frappe/frappe/patches/4_0/set_website_route_idx.py", line 23, in execute
    rebuild_website_template()
  File "/var/www/frappe-bench/apps/frappe/frappe/website/doctype/website_template/website_template.py", line 55, in rebuild_website_template
    build_website_template(app)
  File "/var/www/frappe-bench/apps/frappe/frappe/website/doctype/website_template/website_template.py", line 73, in build_website_template
    add_website_template(**args)
  File "/var/www/frappe-bench/apps/frappe/frappe/website/doctype/website_template/website_template.py", line 130, in add_website_template
    frappe.bean(wsc).insert()
  File "/var/www/frappe-bench/apps/frappe/frappe/model/bean.py", line 265, in insert
    return self.save()
  File "/var/www/frappe-bench/apps/frappe/frappe/model/bean.py", line 323, in save
    self.run_method("after_insert")
  File "/var/www/frappe-bench/apps/frappe/frappe/model/bean.py", line 238, in run_method
    frappe.call(getattr(self.controller, method), *args, **kwargs))
  File "/var/www/frappe-bench/apps/frappe/frappe/__init__.py", line 489, in call
    return fn(*args, **newargs)
  File "/var/www/frappe-bench/apps/frappe/frappe/website/doctype/website_template/website_template.py", line 29, in after_insert
    add_to_sitemap(opts)
  File "/var/www/frappe-bench/apps/frappe/frappe/website/doctype/website_route/website_route.py", line 149, in add_to_sitemap
    bean.doc.page_name = options.link_name
 AttributeError: 'dict' object has no attribute 'link_name'

frappe.patches.4_0.set_website_route_idx: 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 "/var/www/frappe-bench/apps/frappe/frappe/cli.py", line 63, in new_fn
    return fn(*args, **new_kwargs)
  File "/var/www/frappe-bench/apps/frappe/frappe/cli.py", line 326, in latest
    frappe.modules.patch_handler.run_all()
  File "/var/www/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 27, in run_all
    raise PatchError(patch)
frappe.modules.patch_handler.PatchError: frappe.patches.4_0.set_website_route_idx

Kind regards,
Mayur Patel

Mohd Ariff Kamal Abdullah Sany

unread,
Mar 18, 2014, 6:30:26 PM3/18/14
to erpnext-dev...@googlegroups.com
Pratik Bhai,

The last 8 hours (GMT +08:00 MYT) after WebNotes submitted the changes, the bench repo broke fresh installation on OS X:

Traceback (most recent call last):
  File "/Users/jarvis/frappe-bench/env/bin/frappe", line 9, in <module>
    load_entry_point('frappe==4.0.0-beta', 'console_scripts', 'frappe')()
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/cli.py", line 49, in main
    run(fn, parsed_args)
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/cli.py", line 70, in run
    out = globals().get(fn)(*args.get(fn), **args)
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/cli.py", line 63, in new_fn
    return fn(*args, **new_kwargs)
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/cli.py", line 269, in install_app
    install_app(app_name, verbose=verbose)
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/installer.py", line 106, in install_app
    add_to_installed_apps(name)
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/installer.py", line 125, in add_to_installed_apps
    rebuild_website_template()
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/website/doctype/website_template/website_template.py", line 55, in rebuild_website_template
    build_website_template(app)
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/website/doctype/website_template/website_template.py", line 73, in build_website_template
    add_website_template(**args)
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/website/doctype/website_template/website_template.py", line 130, in add_website_template
    frappe.bean(wsc).insert()
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/model/bean.py", line 265, in insert
    return self.save()
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/model/bean.py", line 323, in save
    self.run_method("after_insert")
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/model/bean.py", line 238, in run_method
    frappe.call(getattr(self.controller, method), *args, **kwargs))
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/__init__.py", line 489, in call
    return fn(*args, **newargs)
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/website/doctype/website_template/website_template.py", line 27, in after_insert
    update_sitemap(website_route, opts)
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/website/doctype/website_route/website_route.py", line 164, in update_sitemap
    bean.doc.page_name = options.link_name
AttributeError: 'dict' object has no attribute 'link_name'

Traceback (most recent call last):
  File "/Users/jarvis/frappe-bench/env/bin/frappe", line 9, in <module>
    load_entry_point('frappe==4.0.0-beta', 'console_scripts', 'frappe')()
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/cli.py", line 49, in main
    run(fn, parsed_args)
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/cli.py", line 70, in run
    out = globals().get(fn)(*args.get(fn), **args)
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/cli.py", line 63, in new_fn
    return fn(*args, **new_kwargs)
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/cli.py", line 269, in install_app
    install_app(app_name, verbose=verbose)
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/installer.py", line 106, in install_app
    add_to_installed_apps(name)
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/installer.py", line 125, in add_to_installed_apps
    rebuild_website_template()
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/website/doctype/website_template/website_template.py", line 55, in rebuild_website_template
    build_website_template(app)
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/website/doctype/website_template/website_template.py", line 73, in build_website_template
    add_website_template(**args)
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/website/doctype/website_template/website_template.py", line 130, in add_website_template
    frappe.bean(wsc).insert()
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/model/bean.py", line 265, in insert
    return self.save()
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/model/bean.py", line 323, in save
    self.run_method("after_insert")
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/model/bean.py", line 238, in run_method
    frappe.call(getattr(self.controller, method), *args, **kwargs))
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/__init__.py", line 489, in call
    return fn(*args, **newargs)
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/website/doctype/website_template/website_template.py", line 27, in after_insert
    update_sitemap(website_route, opts)
  File "/Users/jarvis/frappe-bench/apps/frappe/frappe/website/doctype/website_route/website_route.py", line 164, in update_sitemap
    bean.doc.page_name = options.link_name
AttributeError: 'dict' object has no attribute 'link_name'

Before that changes, I've found out & suspected that the newest XCode CommandLine Tools 5.1 (March 2014) has been updated with the new CLang "clang: Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)". This broke the fresh install of the bench repo. The old CLT 5.0.2 (Sept 2013) works perfectly i.e zero error before the last 8 hours of changes.


Please verify



Anand Doshi

unread,
Mar 18, 2014, 11:25:00 PM3/18/14
to ERPNext Developer's Forum
Hi.

This was an uncaught bug. We have fixed this. Please update.

We will add this to our automatic testing system on github so that it can be one less area where bugs get introduced:
https://github.com/frappe/frappe/issues/474

Thanks,
Anand.


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/f51cd51e-3411-4879-a564-7162e3523698%40googlegroups.com.

MP

unread,
Mar 21, 2014, 8:13:48 AM3/21/14
to erpnext-dev...@googlegroups.com
Hi Pratik and Anand,

I am still getting below error message which I have reported earlier. Please help.


Executing frappe.patches.4_0.remove_old_parent in erp4_test
Success
Executing frappe.patches.4_0.rename_profile_to_user in erp4_test
Traceback (innermost last):
  File "/var/www/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 65, in execute_patch
    frappe.get_attr(patchmodule + ".execute")()
  File "/var/www/frappe-bench/apps/frappe/frappe/patches/4_0/rename_profile_to_user.py", line 12, in execute
    rename_field("Website Route Permission", "profile", "user")
  File "/var/www/frappe-bench/apps/frappe/frappe/model/__init__.py", line 108, in rename_field
    (doctype, new_fieldname, old_fieldname))
  File "/var/www/frappe-bench/apps/frappe/frappe/database.py", line 114, in sql

    self._cursor.execute(query)
  File "/var/www/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
    self.errorhandler(self, exc, value)
  File "/var/www/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
    raise errorclass, errorvalue
 OperationalError: (1054, "Unknown column 'profile' in 'field list'")

frappe.patches.4_0.rename_profile_to_user: 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 "/var/www/frappe-bench/apps/frappe/frappe/cli.py", line 63, in new_fn
    return fn(*args, **new_kwargs)
  File "/var/www/frappe-bench/apps/frappe/frappe/cli.py", line 326, in latest
    frappe.modules.patch_handler.run_all()
  File "/var/www/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 27, in run_all
    raise PatchError(patch)
frappe.modules.patch_handler.PatchError: frappe.patches.4_0.rename_profile_to_user

Kind regards,
Mayur Patel

MP

unread,
Mar 25, 2014, 6:04:51 AM3/25/14
to erpnext-dev...@googlegroups.com
Hi Guys,

Any update?

Kind regards,
MP

Pratik Vyas

unread,
Mar 25, 2014, 6:49:08 AM3/25/14
to erpnext-dev...@googlegroups.com
Hi Mayur,
>
> Any update?
>

We are in middle of Model changes (merging of doc, controller and
bean), https://github.com/frappe/frappe/issues/478. For that we've
merged Nabin's work for chart of accounts. Build is broken at the
moment :(


> Kind regards,
> MP
>
> --
> 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/e59d4d4b-ae32-4df1-b3d0-872672c122e8%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.


Thanks,
--
Pratik
erpnext

MP

unread,
Mar 25, 2014, 10:06:25 AM3/25/14
to erpnext-dev...@googlegroups.com
Thanks Pratik for an update.

I will wait until next update. Please keep us informed. Thanks.

Kind regards,
Mayur Patel
Reply all
Reply to author
Forward
0 new messages