Re: [web2py] Re: web2py doesn't start!

2013-05-04 Thread Nader Emami
Thank you for your advice. I would explain what I have done to set-off the
IPV6 option.

Firstly I have uncomment the statement alias net-pf-10 off #
IPv6 in  the file /etc/modprobe.d/aliases.conf and then run python
web2py.py. Unfortunately without any result, I got the same error.

Then I have recompile the kernel and set-off the IPV6 kernel.

less /usr/src/linux/.config | grep -i ipv6
# CONFIG_IPV6 is not set

Once again I tried to start web2py.py in recompiled kernel (without IPV6
option + alias net-pf-10 off # IPv6et in config file). It
didn't and I have gotten the same error.  I would probably say that the
problem is not the IPV6. Naturally I am not sure!

With regards,
Nader


On 4 May 2013 01:30, 黄祥 steve.van.chris...@gmail.com wrote:

 I think you need to edit /etc/modprobe.d/modprobe.conf and
 /etc/modprobe.d/aliases.conf. In the files I found out this:
 *Code:*
 # Uncomment the network protocols you don't want loaded:
 # alias net-pf-2 off# IPv4
 alias net-pf-10 off   # IPv6

 after that please restart your network service and run python web2py.py
 again
 not tested, because i'm don't have gentoo machine, hope this can help

 ref:

 http://forums.gentoo.org/viewtopic-t-880109-view-next.html?sid=690f3daa672e303e6c7588a3b6b1591d

  --

 ---
 You received this message because you are subscribed to a topic in the
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/web2py/t_11PX-hYt0/unsubscribe?hl=en.
 To unsubscribe from this group and all its topics, send an email to
 web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
Nader

-- 

--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: web2py doesn't start!

2013-05-04 Thread Nader Emami
On 4 May 2013 11:09, Nader Emami n.em...@gmail.com wrote:

 Thank you for your advice. I would explain what I have done to set-off the
 IPV6 option.

 Firstly I have uncomment the statement alias net-pf-10 off #
 IPv6 in  the file /etc/modprobe.d/aliases.conf and then run python
 web2py.py. Unfortunately without any result, I got the same error.

 Then I have recompile the kernel and set-off the IPV6 kernel.

 less /usr/src/linux/.config | grep -i ipv6
 # CONFIG_IPV6 is not set

 Once again I tried to start web2py.py in recompiled kernel (without IPV6
 option + alias net-pf-10 off # IPv6et in config file). It
 didn't and I have gotten the same error.  I would probably say that the
 problem is not the IPV6. Naturally I am not sure!

 With regards,
 Nader


 On 4 May 2013 01:30, 黄祥 steve.van.chris...@gmail.com wrote:

 I think you need to edit /etc/modprobe.d/modprobe.conf and
 /etc/modprobe.d/aliases.conf. In the files I found out this:
 *Code:*
 # Uncomment the network protocols you don't want loaded:
 # alias net-pf-2 off# IPv4
 alias net-pf-10 off   # IPv6

 after that please restart your network service and run python web2py.py
 again
 not tested, because i'm don't have gentoo machine, hope this can help

 ref:

 http://forums.gentoo.org/viewtopic-t-880109-view-next.html?sid=690f3daa672e303e6c7588a3b6b1591d

  --

 ---
 You received this message because you are subscribed to a topic in the
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/web2py/t_11PX-hYt0/unsubscribe?hl=en.
 To unsubscribe from this group and all its topics, send an email to
 web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






 --
 Nader


-- 

--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: web2py doesn't start!

2013-05-04 Thread Nader Emami
which trunk? I don't see any one!


On 4 May 2013 16:10, Jonathan Lundell jlund...@pobox.com wrote:

 On 4 May 2013, at 2:09 AM, Nader Emami n.em...@gmail.com wrote:

 Thank you for your advice. I would explain what I have done to set-off the
 IPV6 option.

 Firstly I have uncomment the statement alias net-pf-10 off #
 IPv6 in  the file /etc/modprobe.d/aliases.conf and then run python
 web2py.py. Unfortunately without any result, I got the same error.

 Then I have recompile the kernel and set-off the IPV6 kernel.

 less /usr/src/linux/.config | grep -i ipv6
 # CONFIG_IPV6 is not set

 Once again I tried to start web2py.py in recompiled kernel (without IPV6
 option + alias net-pf-10 off # IPv6et in config file). It
 didn't and I have gotten the same error.  I would probably say that the
 problem is not the IPV6. Naturally I am not sure!


 If you can, please try the current trunk; it has a patch that should fix
 the problem.

 --

 ---
 You received this message because you are subscribed to a topic in the
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/web2py/t_11PX-hYt0/unsubscribe?hl=en.
 To unsubscribe from this group and all its topics, send an email to
 web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
Nader

-- 

--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] web2py doesn't start!

2013-05-03 Thread Nader Emami

I would like to use the web2py framework. When I tried to run *python 
web2py*, I got the next error: 

Traceback (most recent call last):
  File web2py.py, line 27, in module
gluon.widget.start(cron=True)
  File /home/nader/web2py/gluon/widget.py, line 1054, in start
(options, args) = console()
  File /home/nader/web2py/gluon/widget.py, line 921, in console
if not is_loopback_ip_address(ip[4][0])]))
  File /home/nader/web2py/gluon/utils.py, line 306, in 
is_loopback_ip_address
if ip.count('.') == 3:  # IPv4
AttributeError: 'int' object has no attribute 'count'

Would somebody help me to solve this problem?

Best regards,
 
Nader

-- 

--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: web2py doesn't start!

2013-05-03 Thread Nader Emami
Thank for your email. I use Linux (gentoo) with Python-2.7.3. I have got
yesterday the web2py_src.zip:
(Version 2.4.6-stable+timestamp.2013.04.06.17.37.38)

Nader


On 3 May 2013 13:10, 黄祥 steve.van.chris...@gmail.com wrote:

 what kind of os did you use and what version of web2py did you use?


 On Friday, May 3, 2013 3:30:01 AM UTC-4, Nader Emami wrote:


 I would like to use the web2py framework. When I tried to run *python
 web2py*, I got the next error:

 Traceback (most recent call last):
   File web2py.py, line 27, in module
 gluon.widget.start(cron=True)
   File /home/nader/web2py/gluon/widg**et.py, line 1054, in start
 (options, args) = console()
   File /home/nader/web2py/gluon/widg**et.py, line 921, in console
 if not is_loopback_ip_address(ip[4][0**])]))
   File /home/nader/web2py/gluon/util**s.py, line 306, in
 is_loopback_ip_address
 if ip.count('.') == 3:  # IPv4
 AttributeError: 'int' object has no attribute 'count'

 Would somebody help me to solve this problem?

 Best regards,

 Nader

  --

 ---
 You received this message because you are subscribed to a topic in the
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/web2py/t_11PX-hYt0/unsubscribe?hl=en.
 To unsubscribe from this group and all its topics, send an email to
 web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
Nader

-- 

--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: web2py doesn't start!

2013-05-03 Thread Nader Emami
I did the second one: python web2py.py. 

On Friday, May 3, 2013 9:30:01 AM UTC+2, Nader Emami wrote:


 I would like to use the web2py framework. When I tried to run *python 
 web2py*, I got the next error: 

 Traceback (most recent call last):
   File web2py.py, line 27, in module
 gluon.widget.start(cron=True)
   File /home/nader/web2py/gluon/widget.py, line 1054, in start
 (options, args) = console()
   File /home/nader/web2py/gluon/widget.py, line 921, in console
 if not is_loopback_ip_address(ip[4][0])]))
   File /home/nader/web2py/gluon/utils.py, line 306, in 
 is_loopback_ip_address
 if ip.count('.') == 3:  # IPv4
 AttributeError: 'int' object has no attribute 'count'

 Would somebody help me to solve this problem?

 Best regards,
  
 Nader

-- 

--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: web2py doesn't start!

2013-05-03 Thread Nader Emami
I didn't install python from source, Gentoo did it. 

On Friday, May 3, 2013 2:00:39 PM UTC+2, 黄祥 wrote:

 i ran it on python 2.7.3 on lubuntu 12.10  and on centos 6.4 never get any 
 problems. did you installed python from souce?

 On Friday, May 3, 2013 7:49:34 AM UTC-4, Nader Emami wrote:

 Thank for your email. I use Linux (gentoo) with Python-2.7.3. I have got 
 yesterday the web2py_src.zip:
 (Version 2.4.6-stable+timestamp.2013.04.06.17.37.38)

 Nader


 On 3 May 2013 13:10, 黄祥 steve.van...@gmail.com wrote:

 what kind of os did you use and what version of web2py did you use?


 On Friday, May 3, 2013 3:30:01 AM UTC-4, Nader Emami wrote:


 I would like to use the web2py framework. When I tried to run *python 
 web2py*, I got the next error: 

 Traceback (most recent call last):
   File web2py.py, line 27, in module
 gluon.widget.start(cron=True)
   File /home/nader/web2py/gluon/widg**et.py, line 1054, in start
 (options, args) = console()
   File /home/nader/web2py/gluon/widg**et.py, line 921, in console
 if not is_loopback_ip_address(ip[4][0**])]))
   File /home/nader/web2py/gluon/util**s.py, line 306, in 
 is_loopback_ip_address
 if ip.count('.') == 3:  # IPv4
 AttributeError: 'int' object has no attribute 'count'

 Would somebody help me to solve this problem?

 Best regards,
  
 Nader

  -- 
  
 --- 
 You received this message because you are subscribed to a topic in the 
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/web2py/t_11PX-hYt0/unsubscribe?hl=en.
 To unsubscribe from this group and all its topics, send an email to 
 web2py+un...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




 -- 
 Nader 



-- 

--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: web2py doesn't start!

2013-05-03 Thread Nader Emami
The output of print socket.getaddrinfo(socket.getfqdn(), 0) is:


[(10, 1, 6, '', (10,
'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')), (10, 2, 17,
'', (10, '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')), (10,
3, 0, '', (10,
'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')), (2, 1, 6, '',
('127.0.0.1', 0)), (2, 2, 17, '', ('127.0.0.1', 0)), (2, 3, 0, '',
('127.0.0.1', 0))]


On 3 May 2013 16:36, Massimo Di Pierro massimo.dipie...@gmail.com wrote:

 Can you please run a test for me?

 python
  import socket
  print socket.getaddrinfo(socket.getfqdn(), 0)

 what's the output?

 Anyway you can run it with web2py.py --nogui
 It is failing when making a guess for all your IP addresses.

 On Friday, 3 May 2013 02:30:01 UTC-5, Nader Emami wrote:


 I would like to use the web2py framework. When I tried to run *python
 web2py*, I got the next error:

 Traceback (most recent call last):
   File web2py.py, line 27, in module
 gluon.widget.start(cron=True)
   File /home/nader/web2py/gluon/widg**et.py, line 1054, in start
 (options, args) = console()
   File /home/nader/web2py/gluon/widg**et.py, line 921, in console
 if not is_loopback_ip_address(ip[4][0**])]))
   File /home/nader/web2py/gluon/util**s.py, line 306, in
 is_loopback_ip_address
 if ip.count('.') == 3:  # IPv4
 AttributeError: 'int' object has no attribute 'count'

 Would somebody help me to solve this problem?

 Best regards,

 Nader

  --

 ---
 You received this message because you are subscribed to a topic in the
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/web2py/t_11PX-hYt0/unsubscribe?hl=en.
 To unsubscribe from this group and all its topics, send an email to
 web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
Nader

-- 

--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: web2py doesn't start!

2013-05-03 Thread Nader Emami
No! Because I don't know how I can do it.

Cheers!


On 3 May 2013 20:53, 黄祥 steve.van.chris...@gmail.com wrote:

 had you already try disable the ipv6 in your network configuration?


 On Friday, May 3, 2013 1:02:21 PM UTC-4, Nader Emami wrote:

 The output of print socket.getaddrinfo(**socket.getfqdn(), 0) is:


 [(10, 1, 6, '', (10, '\x00\x00\x00\x00\x00\x00\x00\**
 x00\x00\x00\x00\x00\x00\x00'))**, (10, 2, 17, '', (10,
 '\x00\x00\x00\x00\x00\x00\x00\**x00\x00\x00\x00\x00\x00\x00'))**, (10,
 3, 0, '', (10, '\x00\x00\x00\x00\x00\x00\x00\**
 x00\x00\x00\x00\x00\x00\x00'))**, (2, 1, 6, '', ('127.0.0.1', 0)), (2,
 2, 17, '', ('127.0.0.1', 0)), (2, 3, 0, '', ('127.0.0.1', 0))]


 On 3 May 2013 16:36, Massimo Di Pierro massimo@gmail.com wrote:

 Can you please run a test for me?

 python
  import socket
  print socket.getaddrinfo(**socket.getfqdn(), 0)

 what's the output?

 Anyway you can run it with web2py.py --nogui
 It is failing when making a guess for all your IP addresses.

 On Friday, 3 May 2013 02:30:01 UTC-5, Nader Emami wrote:


 I would like to use the web2py framework. When I tried to run *python
 web2py*, I got the next error:

 Traceback (most recent call last):
   File web2py.py, line 27, in module
 gluon.widget.start(cron=True)
   File /home/nader/web2py/gluon/widget.py, line 1054, in start
 (options, args) = console()
   File /home/nader/web2py/gluon/widget.py, line 921, in console
 if not is_loopback_ip_address(ip[4][0])]))
   File /home/nader/web2py/gluon/utils.py, line 306, in
 is_loopback_ip_address
 if ip.count('.') == 3:  # IPv4
 AttributeError: 'int' object has no attribute 'count'

 Would somebody help me to solve this problem?

 Best regards,

 Nader

  --

 ---
 You received this message because you are subscribed to a topic in the
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit https://groups.google.com/d/**
 topic/web2py/t_11PX-hYt0/**unsubscribe?hl=enhttps://groups.google.com/d/topic/web2py/t_11PX-hYt0/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 web2py+un...@**googlegroups.com.

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






 --
 Nader

  --

 ---
 You received this message because you are subscribed to a topic in the
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/web2py/t_11PX-hYt0/unsubscribe?hl=en.
 To unsubscribe from this group and all its topics, send an email to
 web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
Nader

-- 

--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] web2py gives some error

2013-05-02 Thread Nader Emami
I tried to run the web2py but I get the next error. 
Traceback (most recent call last):
  File web2py.py, line 27, in module
gluon.widget.start(cron=True)
  File /home/nader/web2py/gluon/widget.py, line 1054, in start
(options, args) = console()
  File /home/nader/web2py/gluon/widget.py, line 921, in console
if not is_loopback_ip_address(ip[4][0])]))
  File /home/nader/web2py/gluon/utils.py, line 306, in 
is_loopback_ip_address
if ip.count('.') == 3:  # IPv4
AttributeError: 'int' object has no attribute 'count'

Would somebody to help me to solve this problem?
Regards,
 
Nader

-- 

--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] error of python web2py

2013-05-02 Thread Nader Emami
I would use the web2py framework, with some knowledge of python, but 
after unzip the web2py_src.zip, I get the next error:
 -
Traceback (most recent call last):
  File web2py.py, line 27, in module
gluon.widget.start(cron=True)
  File /home/nader/myenv/web2py/gluon/widget.py, line 1054, in start
(options, args) = console()
  File /home/nader/myenv/web2py/gluon/widget.py, line 921, in console
if not is_loopback_ip_address(ip[4][0])]))
  File /home/nader/myenv/web2py/gluon/utils.py, line 306, in 
is_loopback_ip_address
if ip.count('.') == 3:  # IPv4
AttributeError: 'int' object has no attribute 'count'
-
 Would somebody help me to solve this problem?

Cheers,
Nader 

 

-- 

--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.