[web2py] Re: Unable to detect your browser

2010-12-24 Thread greenpoise
I did not know that. Is that a web2py common practice? last time I
read anything similar was in TGears.

Thanks again, appreciate it!


d


On Dec 23, 2:38 pm, Branko Vukelić stu...@brankovukelic.com wrote:
 2010/12/23 greenpoise danel.sega...@gmail.com:

  brilliant!! THANKS SO MUCH!

 You're welcome. It also helps if you build a virtual environment for
 developing your apps. Keeps things clean.

 First you get virtualenv package with:

 $ easy_install-2.7 virtualenv

 Then you just run this:

 $ virtualenv --no-site-packages /path/to/my/env
 $ cd /path/to/my/env
 $ source bin/activate
 (env) $ python

 You'll notice that the interpreter version is now 2.7.x within the
 env, and that '(env)' is printed before your prompt. As far as I know,
 you cannot exit the environment other than by exiting the shell
 altogether.

 The environment is sealed off from your local Python install, so
 anything that you install within your environment is available only
 within the environment and if you use the ``--no-site-packages`` flag,
 no packages installed in your local Python path will not be accessible
 within the environment. Now, to develop with web2py within the
 virtualenv, you just copy web2py dir into the virtualenv dir, and
 that's it. Now you can run ``./web2py.py`` normally and web2py will
 use the interpreter installed in the env.

 --
 Branko Vukelic

 stu...@brankovukelic.comhttp://www.brankovukelic.com/


[web2py] Re: Unable to detect your browser

2010-12-23 Thread greenpoise
when I issue echo $BROWSER I get firefox. I have not used web2py in a
long time, since I have ArchLinux because of this problem. Is there a
way to change web2py as to where it does not launches any browser
I have no plans of changing my system distribution.


THanks


dan




On Dec 18, 9:57 pm, sushanth sushant...@gmail.com wrote:
 On ubuntu you can change your defualt browser with below steps

 susha...@ubuntu:~$ sudo update-alternatives --config x-www-browser
 [sudo] password for sushanth:
 There are 2 choices for the alternative x-www-browser (providing
 /usr/bin/x-www-browser).

   Selection    Path                    Priority   Status
 
 * 0            /usr/bin/google-chrome   150       auto mode
   1            /usr/bin/firefox         40        manual mode
   2            /usr/bin/google-chrome   150       manual mode

 Press enter to keep the current choice[*], or type selection number:


[web2py] Re: Unable to detect your browser

2010-12-23 Thread greenpoise
Funny cuz when I try this: webbrowser.get()  I get 'webbrowser' is not
defined


agh





On Dec 23, 1:22 pm, greenpoise danel.sega...@gmail.com wrote:
 when I issue echo $BROWSER I get firefox. I have not used web2py in a
 long time, since I have ArchLinux because of this problem. Is there a
 way to change web2py as to where it does not launches any browser
 I have no plans of changing my system distribution.

 THanks

 dan

 On Dec 18, 9:57 pm, sushanth sushant...@gmail.com wrote:



  On ubuntu you can change your defualt browser with below steps

  susha...@ubuntu:~$ sudo update-alternatives --config x-www-browser
  [sudo] password for sushanth:
  There are 2 choices for the alternative x-www-browser (providing
  /usr/bin/x-www-browser).

    Selection    Path                    Priority   Status
  
  * 0            /usr/bin/google-chrome   150       auto mode
    1            /usr/bin/firefox         40        manual mode
    2            /usr/bin/google-chrome   150       manual mode

  Press enter to keep the current choice[*], or type selection number:


Re: [web2py] Re: Unable to detect your browser

2010-12-23 Thread Branko Vukelić
On Thu, Dec 23, 2010 at 10:22 PM, greenpoise danel.sega...@gmail.com wrote:
 when I issue echo $BROWSER I get firefox. I have not used web2py in a
 long time, since I have ArchLinux because of this problem. Is there a
 way to change web2py as to where it does not launches any browser
 I have no plans of changing my system distribution.

Arch is defaulting to Py3k. Just run into this minutes ago. :D

Try this:

$ export PYTHON='/usr/bin/python2'; python2 ./web2py

You can add an alias for this in your ~/.bashrc


-- 
Branko Vukelic

stu...@brankovukelic.com
http://www.brankovukelic.com/


[web2py] Re: Unable to detect your browser

2010-12-23 Thread greenpoise
brilliant!! THANKS SO MUCH!




On Dec 23, 1:33 pm, Branko Vukelić stu...@brankovukelic.com wrote:
 On Thu, Dec 23, 2010 at 10:22 PM, greenpoise danel.sega...@gmail.com wrote:
  when I issue echo $BROWSER I get firefox. I have not used web2py in a
  long time, since I have ArchLinux because of this problem. Is there a
  way to change web2py as to where it does not launches any browser
  I have no plans of changing my system distribution.

 Arch is defaulting to Py3k. Just run into this minutes ago. :D

 Try this:

 $ export PYTHON='/usr/bin/python2'; python2 ./web2py

 You can add an alias for this in your ~/.bashrc

 --
 Branko Vukelic

 stu...@brankovukelic.comhttp://www.brankovukelic.com/


Re: [web2py] Re: Unable to detect your browser

2010-12-23 Thread Branko Vukelić
2010/12/23 greenpoise danel.sega...@gmail.com:
 brilliant!! THANKS SO MUCH!

You're welcome. It also helps if you build a virtual environment for
developing your apps. Keeps things clean.

First you get virtualenv package with:

$ easy_install-2.7 virtualenv

Then you just run this:

$ virtualenv --no-site-packages /path/to/my/env
$ cd /path/to/my/env
$ source bin/activate
(env) $ python

You'll notice that the interpreter version is now 2.7.x within the
env, and that '(env)' is printed before your prompt. As far as I know,
you cannot exit the environment other than by exiting the shell
altogether.

The environment is sealed off from your local Python install, so
anything that you install within your environment is available only
within the environment and if you use the ``--no-site-packages`` flag,
no packages installed in your local Python path will not be accessible
within the environment. Now, to develop with web2py within the
virtualenv, you just copy web2py dir into the virtualenv dir, and
that's it. Now you can run ``./web2py.py`` normally and web2py will
use the interpreter installed in the env.


-- 
Branko Vukelic

stu...@brankovukelic.com
http://www.brankovukelic.com/


[web2py] Re: Unable to detect your browser

2010-12-18 Thread greenpoise
this never worked for me. Under ArchLinux, I cant start web2py and
chromium is indeed my default browser. This is what I tried:

https://wiki.archlinux.org/index.php/Chromium#Default_browser




On Nov 17, 3:35 pm, mdipierro mdipie...@cs.depaul.edu wrote:
 you should set the environment variableBROWSER

 http://docs.python.org/library/webbrowser.html

 On Nov 17, 5:31 pm, greenpoise danel.sega...@gmail.com wrote:



  Ok, I must admit, I am one of those with a weird setup. I dont have
  firefox, seamonkey, IExplorer. I just happen to have Chromium and
  Opera as my two browsers. When I try to load web2py I get this error:

  Traceback (most recent call last):
    File web2py.py, line 20, in module
      import gluon.widget
    File /home/danel/Applications/web2py/gluon/widget.py, line 85
      print 'warning: unable todetectyourbrowser'

  Thanks


[web2py] Re: Unable to detect your browser

2010-12-18 Thread sushanth
On ubuntu you can change your defualt browser with below steps

susha...@ubuntu:~$ sudo update-alternatives --config x-www-browser 
[sudo] password for sushanth: 
There are 2 choices for the alternative x-www-browser (providing 
/usr/bin/x-www-browser).

  SelectionPathPriority   Status

* 0/usr/bin/google-chrome   150   auto mode
  1/usr/bin/firefox 40manual mode
  2/usr/bin/google-chrome   150   manual mode

Press enter to keep the current choice[*], or type selection number:


[web2py] Re: Unable to detect your browser

2010-11-17 Thread mdipierro
you should set the environment variable BROWSER

http://docs.python.org/library/webbrowser.html

On Nov 17, 5:31 pm, greenpoise danel.sega...@gmail.com wrote:
 Ok, I must admit, I am one of those with a weird setup. I dont have
 firefox, seamonkey, IExplorer. I just happen to have Chromium and
 Opera as my two browsers. When I try to load web2py I get this error:

 Traceback (most recent call last):
   File web2py.py, line 20, in module
     import gluon.widget
   File /home/danel/Applications/web2py/gluon/widget.py, line 85
     print 'warning: unable to detect your browser'

 Thanks