Error While Installing Frappe

144 views
Skip to first unread message

Pranali Khatode

unread,
Jul 31, 2014, 9:40:27 AM7/31/14
to erpnext-dev...@googlegroups.com
Hello,
I am trying to install frappe but getting following error

  File "/home/indictrans/Desktop/newFrappe/frappe-bench/env/bin/frappe", line 9, in <module>
    load_entry_point('frappe==4.1.0', 'console_scripts', 'frappe')()
  File "/home/indictrans/Desktop/newFrappe/frappe-bench/apps/frappe/frappe/cli.py", line 53, in main
    return run(fn, parsed_args)
  File "/home/indictrans/Desktop/newFrappe/frappe-bench/apps/frappe/frappe/cli.py", line 81, in run
    out = globals().get(fn)(*args.get(fn), **args)
  File "/home/indictrans/Desktop/newFrappe/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
    return fn(*args, **new_kwargs)
  File "/home/indictrans/Desktop/newFrappe/frappe-bench/apps/frappe/frappe/cli.py", line 345, in install_app
    install_app(app_name, verbose=verbose)
  File "/home/indictrans/Desktop/newFrappe/frappe-bench/apps/frappe/frappe/installer.py", line 109, in install_app
    sync_for(name, force=True, sync_everything=True, verbose=verbose)
  File "/home/indictrans/Desktop/newFrappe/frappe-bench/apps/frappe/frappe/model/sync.py", line 34, in sync_for
    import_file_by_path(doc_path, force=force)
  File "/home/indictrans/Desktop/newFrappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 50, in import_file_by_path
    import_doc(doc, force=force)
  File "/home/indictrans/Desktop/newFrappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 111, in import_doc
    doc.insert()
  File "/home/indictrans/Desktop/newFrappe/frappe-bench/apps/frappe/frappe/model/document.py", line 150, in insert
    self.run_post_save_methods()
  File "/home/indictrans/Desktop/newFrappe/frappe-bench/apps/frappe/frappe/model/document.py", line 422, in run_post_save_methods
    self.run_method("on_update")
  File "/home/indictrans/Desktop/newFrappe/frappe-bench/apps/frappe/frappe/model/document.py", line 395, in run_method
    return Document.hook(fn)(self, *args, **kwargs)
  File "/home/indictrans/Desktop/newFrappe/frappe-bench/apps/frappe/frappe/model/document.py", line 471, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/indictrans/Desktop/newFrappe/frappe-bench/apps/frappe/frappe/model/document.py", line 454, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/home/indictrans/Desktop/newFrappe/frappe-bench/apps/frappe/frappe/model/document.py", line 389, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/home/indictrans/Desktop/newFrappe/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 100, in on_update
    module = load_doctype_module(self.name, self.module)
  File "/home/indictrans/Desktop/newFrappe/frappe-bench/apps/frappe/frappe/modules/__init__.py", line 57, in load_doctype_module
    doctype_python_modules[key] = frappe.get_module(get_module_name(doctype, module, prefix))
  File "/home/indictrans/Desktop/newFrappe/frappe-bench/apps/frappe/frappe/__init__.py", line 375, in get_module
    return importlib.import_module(modulename)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/home/indictrans/Desktop/newFrappe/frappe-bench/apps/erpnext/erpnext/support/doctype/newsletter/newsletter.py", line 11, in <module>
    import erpnext.tasks
  File "/home/indictrans/Desktop/newFrappe/frappe-bench/apps/erpnext/erpnext/tasks.py", line 8, in <module>
    @celery_task()
  File "/home/indictrans/Desktop/newFrappe/frappe-bench/apps/frappe/frappe/celery_app.py", line 85, in celery_task
    return get_celery().task(*args, **kwargs)
  File "/home/indictrans/Desktop/newFrappe/frappe-bench/apps/frappe/frappe/celery_app.py", line 34, in get_celery
    setup_celery(_app, conf)
  File "/home/indictrans/Desktop/newFrappe/frappe-bench/apps/frappe/frappe/celery_app.py", line 40, in setup_celery
    sites_path=SITES_PATH))
  File "/home/indictrans/Desktop/newFrappe/frappe-bench/apps/frappe/frappe/__init__.py", line 404, in get_all_apps
    apps = get_file_items(os.path.join(sites_path, "apps.txt"), raise_not_found=True)
  File "/home/indictrans/Desktop/newFrappe/frappe-bench/apps/frappe/frappe/__init__.py", line 489, in get_file_items
    content = read_file(path, raise_not_found=raise_not_found)
  File "/home/indictrans/Desktop/newFrappe/frappe-bench/apps/frappe/frappe/__init__.py", line 505, in read_file
    raise IOError("{} Not Found".format(path))

Pratik Vyas

unread,
Jul 31, 2014, 9:49:03 AM7/31/14
to erpnext-dev...@googlegroups.com
> --
> 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/36582fdb-67c9-4bdd-acc4-8e21fef17255%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.


Seems that either you're running it from a wrong directory or apps.txt
doesn't exist. Are you running the new bench?

https://github.com/frappe/bench

Thanks,
--
Pratik
erpnext
Message has been deleted

Pranali Khatode

unread,
Aug 1, 2014, 4:46:53 AM8/1/14
to erpnext-dev...@googlegroups.com

Hello
I am using following link for installation

Pratik Vyas

unread,
Aug 1, 2014, 4:49:29 AM8/1/14
to erpnext-dev...@googlegroups.com
The new bench is at

https://github.com/frappe/bench
>
> --
> 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/5bfe8638-bd25-4dad-9e6e-7685fb4fdce6%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.



--
Pratik
erpnext

Pranali Khatode

unread,
Aug 4, 2014, 1:34:39 AM8/4/14
to erpnext-dev...@googlegroups.com
Hello

I have followed all steps in https://github.com/frappe/bench, upto following command

bench start or frappe --serve

but after this I am getting following error and in browser it shows Not Found


indictrans@indictrans-Lenovo-G560:~/frappe-bench$ bench start
17:12:02 web.1        | started with pid 19628
17:12:02 worker.1     | started with pid 19630
17:12:02 workerbeat.1 | started with pid 19631
17:12:02 web.1        |  * Running on http://0.0.0.0:8000/
17:12:02 web.1        |  * Restarting with reloader
17:12:02 workerbeat.1 | [2014-08-01 17:12:02,964: INFO/MainProcess] beat: Starting...
17:12:03 workerbeat.1 | [2014-08-01 17:12:03,007: INFO/MainProcess] Scheduler: Sending due task scheduler (frappe.tasks.enqueue_scheduler_events)
17:12:04 worker.1     | [2014-08-01 17:12:03,991: WARNING/MainProcess] celery@indictrans-Lenovo-G560 ready.
17:12:10 web.1        | 127.0.0.1 - - [01/Aug/2014 17:12:10] "GET / HTTP/1.1" 404 -
17:12:16 web.1        | 127.0.0.1 - - [01/Aug/2014 17:12:16] "GET / HTTP/1.1" 404 -
17:12:17 web.1        | 127.0.0.1 - - [01/Aug/2014 17:12:17] "GET / HTTP/1.1" 404 -
17:12:18 web.1        | 127.0.0.1 - - [01/Aug/2014 17:12:18] "GET / HTTP/1.1" 404 -
17:12:19 web.1        | 127.0.0.1 - - [01/Aug/2014 17:12:19] "GET / HTTP/1.1" 404 -
17:12:20 web.1        | 127.0.0.1 - - [01/Aug/2014 17:12:20] "GET / HTTP/1.1" 404 -


You received this message because you are subscribed to a topic in the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/erpnext-developer-forum/mhfl2loSB9E/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAG8U0EmtZ-NH3VPhCH3dHSRFGP5hN1YcBiat1v5AhyOoG2oyrA%40mail.gmail.com.

Rushabh Mehta

unread,
Aug 4, 2014, 3:04:29 AM8/4/14
to erpnext-dev...@googlegroups.com

Pratik Vyas

unread,
Aug 4, 2014, 3:20:27 AM8/4/14
to erpnext-dev...@googlegroups.com
On Mon, Aug 4, 2014 at 11:04 AM, Pranali Khatode
<pranali.k...@gmail.com> wrote:
> Hello
>
Did you add a site with `bench new-site`?



--
Pratik
erpnext

Pranali Khatode

unread,
Aug 4, 2014, 3:32:11 AM8/4/14
to erpnext-dev...@googlegroups.com
Hello
The url is http://localhost:8000/  ,It was giving problem for the site which was created while installation,
But for  New Site, it is working properly.

Thanks




Reply all
Reply to author
Forward
0 new messages