migration error

463 views
Skip to first unread message

Shameem Mohammed

unread,
Oct 27, 2013, 5:16:35 AM10/27/13
to erpnext-dev...@googlegroups.com
Hi ,

The following error is occurred when executing   ./lib/wnf.py --latest  command

 [root@localhost demo]# ./lib/wnf.py --latest
Traceback (most recent call last):
  File "./lib/wnf.py", line 12, in <module>
    import webnotes
  File "lib/webnotes/__init__.py", line 10, in <module>
    from werkzeug.local import Local
ImportError: No module named werkzeug.local


Maxwell Morais

unread,
Oct 27, 2013, 8:44:12 AM10/27/13
to erpnext-dev...@googlegroups.com
try install werkzeug wit pip or easy_install

pip install werkzeug
easy_install werkzeug


2013/10/27 Shameem Mohammed <sha...@malabaruae.com>
--
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.
For more options, visit https://groups.google.com/groups/opt_out.



--

Maxwell Morais
Tecnologia da Informação

Shameem Mohammed

unread,
Oct 27, 2013, 9:08:48 AM10/27/13
to erpnext-dev...@googlegroups.com
Hi Maxwell , 
Thanks for your help. I completed the steps mentioned in https://github.com/webnotes/erpnext/wiki/Migrating-your-erpnext-instance-to-wsgi , but when I am trying login to my instance ( which was previously running on port 88 ) i am getting Apache 2 test page instead of erpnext instance homepage !!  Please help me 

regards


On Sunday, October 27, 2013 4:44:12 PM UTC+4, Maxwell wrote:
try install werkzeug wit pip or easy_install

pip install werkzeug
easy_install werkzeug


2013/10/27 Shameem Mohammed <sha...@malabaruae.com>
Hi ,

The following error is occurred when executing   ./lib/wnf.py --latest  command

 [root@localhost demo]# ./lib/wnf.py --latest
Traceback (most recent call last):
  File "./lib/wnf.py", line 12, in <module>
    import webnotes
  File "lib/webnotes/__init__.py", line 10, in <module>
    from werkzeug.local import Local
ImportError: No module named werkzeug.local


--
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.

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

Maxwell Morais

unread,
Oct 27, 2013, 4:38:30 PM10/27/13
to erpnext-dev...@googlegroups.com
Hello, Shameem, first sorry for the delay in responding, but today was a day of national education test.
Secondif you do not want to see this[1] step as installing gunicorn passso and prefers to continue with apache you can run via apache with WSGI or CGIHandler.

CGIHandler it is very useful to maintain the compatibility of its previous application, but with this you will lose all the performance improvements attributed to WSGITo use it, just use the CGIHandler.py ApacheCGI.conf of the of the gist [2]

In the case of WSGI, if you do not want to install gunicorn, which is the wsgi server that delivers the best performance, you can continue with apache, for this you will have to install and enable mod_wsgi of your apache.

And second use WSGIHandler.wsgi ApacheWSGI.conf of the of the gist [2].




2013/10/27 Shameem Mohammed <sha...@malabaruae.com>
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.

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

Shameem Mohammed

unread,
Oct 28, 2013, 4:02:35 AM10/28/13
to erpnext-dev...@googlegroups.com
Hai, Maxwell  ,

I followed option [2](use WSGIHandler.wsgi ApacheWSGI.conf ) and got the following error when trying to connect 

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.



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/OdD7dD55bvo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to erpnext-developer...@googlegroups.com.

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



--
Shameem N. Mohammed
Finance  Manager 
Malabar Gen. Trdg. L.L.C,
P.O.Box 234478 , Dubai , U.A.E


Maxwell Morais

unread,
Oct 28, 2013, 4:13:23 AM10/28/13
to erpnext-dev...@googlegroups.com
Shameem, the mod_wsgi is already installed and enabled?
You can see it on /etc/apache2/mods-enabled/

Check if wsgi.load already exists on the path


2013/10/28 Shameem Mohammed <sha...@malabaruae.com>

Shameem Mohammed

unread,
Oct 28, 2013, 4:31:51 AM10/28/13
to erpnext-developer-forum
Mr. Maxwell , thanks for your quick reply .I am using centos 6.4 .  I installed mod_wsgi .   .Folder  /etc/apache2/mods-enabled/ doesn't exist on my system .Where to check wsgi.load . My linux knowledge is very low 

regards

Maxwell Morais

unread,
Oct 28, 2013, 5:05:05 AM10/28/13
to erpnext-dev...@googlegroups.com
In terminal logged as root, run this: "a2enmod wsgi", its activate the mod_wsgi, if it isn't activated, and restart apache, in cent-os is httpd, run in terminal as root, service httpd restart


2013/10/28 Shameem Mohammed <sha...@malabaruae.com>

Pratik Vyas

unread,
Oct 28, 2013, 5:24:31 AM10/28/13
to erpnext-dev...@googlegroups.com
Hi Shameem,

Sorry, I forgot to add a line about installing new requirements,
updated https://github.com/webnotes/erpnext/wiki/Migrating-your-erpnext-instance-to-wsgi
> --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.



--
Pratik Vyas
Ph: +919925239915
Google Profile : http://www.google.com/profiles/pdvyas
Reply all
Reply to author
Forward
0 new messages