"ImportError: No module named meta" in Installation from frappe Bench

882 views
Skip to first unread message

Lukas Wagner

unread,
Apr 1, 2014, 12:56:19 AM4/1/14
to erpnext-dev...@googlegroups.com
Hey guys,

I have a fresh install of Debian 7.4.
When I run the install-script via "./scripts/install.sh single ERPNext ERPNext" I get following Error:

Traceback (most recent call last):
File "/srv/frappe-bench/env/bin/frappe", line 9, in <module>
load_entry_point('frappe==4.0.0-beta', 'console_scripts', 'frappe')()
File "/srv/frappe-bench/apps/frappe/frappe/cli.py", line 49, in main
run(fn, parsed_args)
File "/srv/frappe-bench/apps/frappe/frappe/cli.py", line 70, in run
out = globals().get(fn)(*args.get(fn), **args)
File "/srv/frappe-bench/apps/frappe/frappe/cli.py", line 63, in new_fn
return fn(*args, **new_kwargs)
File "/srv/frappe-bench/apps/frappe/frappe/cli.py", line 269, in install_app
install_app(app_name, verbose=verbose)
File "/srv/frappe-bench/apps/frappe/frappe/installer.py", line 106, in install_app
add_to_installed_apps(name)
File "/srv/frappe-bench/apps/frappe/frappe/installer.py", line 125, in add_to_installed_apps
rebuild_website_template()
File "/srv/frappe-bench/apps/frappe/frappe/website/doctype/website_template/website_template.py", line 55, in rebuild_website_template
build_website_template(app)
File "/srv/frappe-bench/apps/frappe/frappe/website/doctype/website_template/website_template.py", line 73, in build_website_template
add_website_template(**args)
File "/srv/frappe-bench/apps/frappe/frappe/website/doctype/website_template/website_template.py", line 114, in add_website_template
module = frappe.get_module(wsc.controller)
File "/srv/frappe-bench/apps/frappe/frappe/__init__.py", line 380, in get_module
return importlib.import_module(modulename)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/srv/frappe-bench/apps/shopping_cart/shopping_cart/templates/pages/address.py", line 9, in <module>
from frappe.widgets.form.meta import get_meta
ImportError: No module named meta


If you need any more Information feel free to ask.

Thanks in Advance
Lukas

Lukas Wagner

unread,
Apr 1, 2014, 1:20:34 AM4/1/14
to erpnext-dev...@googlegroups.com
By the way: meta is installed via pip. I tried to do an extra install from inside the virtualenv, too, but it tells me it's already there.

Thanks again
Lukas

Lukas Wagner

unread,
Apr 1, 2014, 2:23:11 AM4/1/14
to erpnext-dev...@googlegroups.com
Hey again,

I get the same error I tried it a few days ago. Back then it was perfectly working.

Greetings and thanks in advance
Lukas

Lukas Wagner

unread,
Apr 1, 2014, 2:54:00 AM4/1/14
to erpnext-dev...@googlegroups.com
Hey again,

I also deleted the "tag"-Lines in standard_apps.json in order to get the most recent versions but the error still remains.
Sorry for me annoying you, I just think more input is better than less.

Greetings and thanks
Lukas

Pratik Vyas

unread,
Apr 1, 2014, 3:02:17 AM4/1/14
to erpnext-dev...@googlegroups.com
Hey Lucas!

On Tue, Apr 1, 2014 at 12:24 PM, Lukas Wagner
<appdev.lu...@gmail.com> wrote:
> Hey again,
>
> I also deleted the "tag"-Lines in standard_apps.json in order to get the
> most recent versions but the error still remains.
> Sorry for me annoying you, I just think more input is better than less.
>

The meta errors is due to instablity of the develop branch. The more
stable points in time are tagged as v4-beta2 at the moment.

Can you run `git reset --hard v4-beta2` in all directories in apps.
The tag lines in standard_apps is meant for this. But as the apps are
already cloned, they don't run.

Then, try a fresh install.

> Greetings and thanks
> Lukas
>
> --
> 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/5bb99d1e-37ca-4dca-a6c9-cc0fb6d9abba%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.


Thanks,
--
Pratik
erpnext

Lukas Wagner

unread,
Apr 1, 2014, 3:26:19 AM4/1/14
to erpnext-dev...@googlegroups.com
Hey Pratik,

I first encountered this error at a fresh install with v4-beta2 as tags
(with the original standard_apps.json).
At that time I just followed the installation instructions in Readme.md.
I also tried it on another system with a fresh install where a fresh
install worked two weeks ago. It's the same on that one. the current
frappe bench without modification throws this error as far as I can tell
on any current (fully upgraded) Debian 7.4 system I have at my disposal.

Greetings and thanks
Lukas

Lukas Wagner

unread,
Apr 1, 2014, 8:23:48 AM4/1/14
to erpnext-dev...@googlegroups.com
Hello again,

I just tried a fresh install again. Here's the complete console output from cloning up to the error without additions or deletions: http://pastebin.com/PUgbUHVt
I hope that helps :)

Thanks
Lukas

Pratik Vyas

unread,
Apr 1, 2014, 3:11:45 PM4/1/14
to erpnext-dev...@googlegroups.com
Hey Lucas,
That helps and I realized the mistake. I forgot to tag shopping-cart
in apps.json. Can you,

Can you run `git reset --hard v1-beta1` in apps/shopping-cart

and try the install again?

Sorry for the agony this has caused.

> Thanks
> Lukas
>
> --
> 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/58c28f27-ce7d-4251-9c05-1a6ada785542%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.


Thanks,
--
Pratik
erpnext

Lukas Wagner

unread,
Apr 1, 2014, 4:07:33 PM4/1/14
to erpnext-dev...@googlegroups.com
Hey Pratik,

thanks a lot! It works like a charm now.
Isn't it possible to test the bench installation with a CI every time a
push or commit is made? I do this with my projects in GitLab.

Best regards
Lukas

Pratik Vyas

unread,
Apr 1, 2014, 4:12:02 PM4/1/14
to erpnext-dev...@googlegroups.com

Yes, I should add travis. Also, once we release v4.0) could do it with every release of any of the apps in apps.json to catch installation issues.

We already have CI setup for frappe/frappe and frappe/erpnext

sent from phone


Thanks,

--
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+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/533B1C85.2030905%40gmail.com.

Maxwell Morais

unread,
Apr 6, 2014, 9:03:54 PM4/6/14
to erpnext-dev...@googlegroups.com
Pratik, this can not be adjusted within the installation script?


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/CAG8U0EmXr2WhmVLXECWYOS3zLVpOKx2w8wTTaLhtY0_%2B3cnQNw%40mail.gmail.com.

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



--

Best Regards.

Maxwell Morais
Python Developer powered by Webnotes framework <3

Lukas Wagner

unread,
Apr 6, 2014, 10:18:02 PM4/6/14
to erpnext-dev...@googlegroups.com

It can, this is also what I did. Just add the tag to the shopping cart in the apps config file.

Reply all
Reply to author
Forward
0 new messages