ImportError: No module named web_form.web_form

11 views
Skip to first unread message

Brendan Kiu

unread,
Sep 4, 2014, 2:09:02 PM9/4/14
to erpnext-dev...@googlegroups.com
Hello, I'm doing an update on frappe-bench to migrate to the new bench, and I'm having some issues while running `./scripts/update.sh` The following error comes up:

ImportError: No module named web_form.web_form  

The full text of the error message is here: https://gist.github.com/bkiu/a201ac706772b279a28b

Any thoughts on how to fix it? Thanks.

Anand Doshi

unread,
Sep 4, 2014, 2:38:24 PM9/4/14
to ERPNext Developer's Forum
Brenden,

Thanks for reporting this.

I've pushed a fix. Can you update again and confirm if it works?

-Anand.


--
Note:
 
If you are posting an issue,
 
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
2. 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.
3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
4. 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/b6fb0f29-02f8-4f9d-85c5-1ebbd656259a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Brendan Kiu

unread,
Sep 4, 2014, 2:46:15 PM9/4/14
to erpnext-dev...@googlegroups.com
Looks like it's working. Thanks so much!


On Friday, September 5, 2014 12:08:24 AM UTC+5:30, Anand Doshi wrote:
Brenden,

Thanks for reporting this.

I've pushed a fix. Can you update again and confirm if it works?

-Anand.
On Thu, Sep 4, 2014 at 11:39 PM, Brendan Kiu <bren...@gmail.com> wrote:
Hello, I'm doing an update on frappe-bench to migrate to the new bench, and I'm having some issues while running `./scripts/update.sh` The following error comes up:

ImportError: No module named web_form.web_form  

The full text of the error message is here: https://gist.github.com/bkiu/a201ac706772b279a28b

Any thoughts on how to fix it? Thanks.

--
Note:
 
If you are posting an issue,
 
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
2. 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.
3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
4. 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+unsub...@googlegroups.com.

Brendan Kiu

unread,
Sep 4, 2014, 2:49:27 PM9/4/14
to erpnext-dev...@googlegroups.com
Sorry, another quick question. Maybe this legacy, but now the error is

IOError: ./apps.txt Not Found

I'm executing `./scripts/update.sh` from ~/frappe_bench so there isn't an apps.txt (which I confirmed is correctly in sites/). Should be executing from the sites directory?

Thanks.

Brendan Kiu

unread,
Sep 4, 2014, 2:53:18 PM9/4/14
to erpnext-dev...@googlegroups.com

Brendan Kiu

unread,
Sep 4, 2014, 3:30:44 PM9/4/14
to erpnext-dev...@googlegroups.com
This probably has to do with legacy bench code, but I ended up fixing it by explicitly specifying before line 408 in frappe/frappe/__init.py__

sites_path = "sites/"

and running the updater. I removed the line after the updater finished, and was able to use `frappe --serve` as usual. Somehow, sites_path wasn't being set correctly only when run through update.sh.
Reply all
Reply to author
Forward
0 new messages