Re: [Tutor] Python 3.2 Install Not Responding To Python Command!!

2011-04-09 Thread Nevins Duret

Hello Lie Ryan,

Thanks so much for your reply.  Well when I ran:

whereis python

I get this:

python: /usr/bin/python3.1-config /usr/bin/python2.6-dbg 
/usr/bin/python3.1 /usr/bin/python2.6-config /usr/bin/python2.7 
/usr/bin/python3.1-dbg-config /usr/bin/python2.6-dbg-config 
/usr/bin/python /usr/bin/python2.7-config /usr/bin/python3.1-dbg 
/usr/bin/python2.6 /etc/python3.1 /etc/python2.7 /etc/python 
/etc/python2.6 /usr/lib/python2.5 /usr/lib/python3.1 /usr/lib/python2.7 
/usr/lib/python /usr/lib/python2.6 /usr/local/bin/python3.2m-config 
/usr/local/bin/python3.2 /usr/local/bin/python3.2-config 
/usr/local/bin/python3.2m /usr/local/lib/python3.1 
/usr/local/lib/python2.7 /usr/local/lib/python3.2 
/usr/local/lib/python2.6 /usr/include/python2.5 /usr/include/python3.1 
/usr/include/python2.6_d /usr/include/python2.7 /usr/include/python3.1_d 
/usr/include/python2.6 /usr/share/python /opt/py31/bin/python3.1-config 
/opt/py31/bin/python3.1 /opt/py32/bin/python3.2m-config 
/opt/py32/bin/python3.2 /opt/py32/bin/python3.2m 
/opt/ActivePython-3.1/bin/python3.1-config 
/opt/ActivePython-3.1/bin/python3.1 
/opt/ActivePython-3.2/bin/python3.2m-config 
/opt/ActivePython-3.2/bin/python3.2 
/opt/ActivePython-3.2/bin/python3.2-config 
/opt/ActivePython-3.2/bin/python3.2m /usr/share/man/man1/python.1.gz


And, when I run:

echo $PATH

I get this:

/myhome/myname/.local/bin:/opt/ActivePython-3.2/bin:/myhome/myname/Komodo-IDE-6/bin:/myhome/myname/source/arduino-0022:/myhome/myname/qtsdk-2010.05/bin:/usr/bin//tclsh8.4:/usr/bin//tclsh8.5:/myhome/myname/source/Logic1.1.4:/myhome/myname/source/blender-2.56a-beta-linux-glibc27-i686:/myhome/myname/source/processing-1.2.1:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/blender-2.56-beta-linux-glibc27-i686/2.56/python/lib/python3.1


This is the link to the instructions that I followed to install 
Python3.2 on my system:


http://wiki.blender.org/index.php/Dev:2.5/Doc/Building_Blender/Linux/Troubleshooting


 Compiling with Ubuntu

# get required packages for build
sudo  apt-get  install  build-essential libncursesw5-dev libreadline5-dev 
libssl-dev libgdbm-dev libc6-dev libsqlite3-dev tk-dev

# get source
wget  http://www.python.org/ftp/python/3.2/Python-3.2.tgz&&;  tar  -xvf  
Python-3.2.tgz

# make install
./configure
make
sudo  make  altinstall

# make 3.2 the default python system wide (number 1 at the end stays there)
sudo  update-alternatives--install  /usr/bin/python pythonopt/py32/bin1

# ensure various versions of python play nice with each other
sudo  update-alternatives--config  python


Again I really appreciate your help, getting over this hurdle would help me be 
confident in what goes on under the hood.
At this point, it seems that I will need instructions on how to remove 
python3.2 in order to get a reattempt at installing it
properly.




Thanks again for all your help.

Best Regards,

freespark



On 04/09/2011 06:00 AM, tutor-requ...@python.org wrote:

Send Tutor mailing list submissions to
tutor@python.org

To subscribe or unsubscribe via the World Wide Web, visit
http://mail.python.org/mailman/listinfo/tutor
or, via email, send a message with subject or body 'help' to
tutor-requ...@python.org

You can reach the person managing the list at
tutor-ow...@python.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Tutor digest..."


Today's Topics:

1. Re: How to use a module when only import package (Karim)
2. Re: Sound question (Alan Gauld)
3. Python 3.2 Install Not Responding To Python Command!!
   (Nevins Duret)
4. Re: Sound question (Nick Stinemates)
5. Re: Python 3.2 Install Not Responding To Python Command!!
   (Lie Ryan)
6. Re: Evaluating program running time? (Lie Ryan)


--

Message: 1
Date: Fri, 08 Apr 2011 23:44:06 +0200
From: Karim
To: leechau
Cc: Python Tutor Maillist
Subject: Re: [Tutor] How to use a module when only import package
Message-ID:<4d9f81a6.2060...@free.fr>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 04/08/2011 11:13 AM, leechau wrote:

Steven wrote:

leechau wrote:

I wrote module1 in package1, and want to use a method named
'method1' in
module1, the caller(test.py) is like this:

import package1
package1.module1.method1()

[...]

When i run test.py, the output is:
AttributeError: 'module' object has no attribute 'module1'
File "e:\MyDoc\GODU_BVT\test.py", line 2, in
   package1.module1.method1()

If test.py is modified to:
import package1.module1
...
then everything goes well.

Yes, that is correct, and that is a deliberate design.

What if your package had a 1000 sub-modules, each of which were big? You
wouldn't want loading the main package to automatically load all 1000
sub-modules, if you only needed 1.

You either import the sub-module by hand:

import package1.module1

and now you can use package1.

Re: [Tutor] Python 3.2 Install Not Responding To Python Command!!

2011-04-09 Thread Walter Prins
On 9 April 2011 17:44, Nevins Duret  wrote:

> Compiling with Ubuntu
>
> # get required packages for buildsudo apt-get install build-essential 
> libncursesw5-dev libreadline5-dev libssl-dev libgdbm-dev libc6-dev 
> libsqlite3-dev tk-dev
>  # get sourcewget http://www.python.org/ftp/python/3.2/Python-3.2.tgz && tar 
> -xvf Python-3.2.tgz
>  # make install
> ./configuremakesudo make altinstall
>  # make 3.2 the default python system wide (number 1 at the end stays 
> there)sudo update-alternatives --install /usr/bin/python python opt/py32/bin 1
>  # ensure various versions of python play nice with each othersudo 
> update-alternatives --config python
>
>
> Again I really appreciate your help, getting over this hurdle would help me 
> be confident in what goes on under the hood.
> At this point, it seems that I will need instructions on how to remove 
> python3.2 in order to get a reattempt at installing it
> properly.
>
>
>
OK... It's usually preferable if at all possible to install things using the
system's package manager -- is there any particular reason that you must use
Python 3.2 and can't install Python 3.1.2, which is available in the
repositories? It may be installed by simply doing:

sudo apt-get install python3-all

As for fixing/undoing any problems in your system -- I'm reluctant to try
and fix that via this list and without more information.  I'd therefore
suggest asking on the Ubuntu community forums programming sub-forum.
http://ubuntuforums.org/forumdisplay.php?f=310

Walter
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Python 3.2 Install Not Responding To Python Command!!

2011-04-09 Thread Nevins Duret

On 04/09/2011 02:32 PM, Walter Prins wrote:



On 9 April 2011 17:44, Nevins Duret > wrote:


Compiling with Ubuntu

# get required packages for build
sudo  apt-get  install  build-essential libncursesw5-dev libreadline5-dev 
libssl-dev libgdbm-dev libc6-dev libsqlite3-dev tk-dev

# get source
wget  http://www.python.org  
/ftp/python/3.2/Python-3.2.tgz&&  tar  -xvf  
Python-3.2.tgz

# make install
./configure
make
sudo  make  altinstall

# make 3.2 the default python system wide (number 1 at the end stays there)
sudo  update-alternatives--install  /usr/bin/python pythonopt/py32/bin1

# ensure various versions of python play nice with each other
sudo  update-alternatives--config  python


Again I really appreciate your help, getting over this hurdle would help me 
be confident in what goes on under the hood.
At this point, it seems that I will need instructions on how to remove 
python3.2 in order to get a reattempt at installing it
properly.




OK... It's usually preferable if at all possible to install things 
using the system's package manager -- is there any particular reason 
that you must use Python 3.2 and can't install Python 3.1.2, which is 
available in the repositories? It may be installed by simply doing:


sudo apt-get install python3-all

As for fixing/undoing any problems in your system -- I'm reluctant to 
try and fix that via this list and without more information.  I'd 
therefore suggest asking on the Ubuntu community forums programming 
sub-forum. http://ubuntuforums.org/forumdisplay.php?f=310


Walter



Hello Walter,

I can't thank you enough for your help.  Yes, I usually use the 
Synaptic Package Manager, however in this case, Python version 3.2 is 
not on the Synaptic package Manager.  This is why I chose to build it 
from source.  As far as what I think is causing this when I go in the 
Terminal and type:

p me out.
sudo update-alternatives --install /usr/bin/python/python3.2 python 
/opt/py32/bin/python3.2 1


I get this as an error message:

update-alternatives: renaming python link from /usr/bin/python to 
/usr/bin/python/python3.2.
update-alternatives: warning: forcing reinstallation of alternative 
/opt/py32/bin because link group python is broken.
update-alternatives: error: unable to make 
/usr/bin/python/python3.2.dpkg-tmp a symlink to 
/etc/alternatives/python: No such file or directory


I must add that I am running this in the Terminal under the Python-3.2 
directory that I uncompressed after I downloaded it.  The reason why I'm 
using this version of Python is because Blender2.5, a 3D animation open 
source program is built on Python3.2 and requires it if I am to develop 
it using CMAKE.  And, so far, I have blender installed on /opt/py32.


I really appreciate your help, and am learning tons by going 
through this.  I understand that posting this question here may not be 
suitable, but I'm confident someone will be able to help me out.

Thanks so much.

Best Regards,

Nevins Duret
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Cherrypy HtmlArea

2011-04-09 Thread Andrés Chandía


I have put a textarea at a web generated by cherrypy, but I would like to add  
some user
editing tool like HtmlArea, I've been sufing arround but I haven't found clear 
information.

I would appreciate your help!
___
andrés
chandía

P No imprima
innecesariamente. ¡Cuide el medio ambiente!


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Cherrypy and Iframes (or how to insert a file in a page)

2011-04-09 Thread Andrés Chandía


the codes
return ""

file.txt is genereated by a
previous python script and I need to display it at the web generated by 
cherrypy, but it gives
me this error:


Traceback (most recent call last):
  File
"/usr/lib/pymodules/python2.6/cherrypy/_cprequest.py", line 606, in respond
   
cherrypy.response.body = self.handler()
  File
"/usr/lib/pymodules/python2.6/cherrypy/_cperror.py", line 227, in __call__
   
raise self
NotFound: (404, "The path '/file.txt' was not found.")





I tryed changing the path with no success, so I guess is something
different

Maybe there is another way to do this


___
andrés
chandía

P No imprima
innecesariamente. ¡Cuide el medio ambiente!


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Invisible Characters in Fortran/Python

2011-04-09 Thread Tyler Glembo
Hi All,
So I have a ~3000 line fortran code that needs to be updated to run new
files by simply updating a few lines in the code (~10 lines).  I thought
python would be a great way to do so since I know a little python but not
fortran.  So, my plan was to read in each line, and then at a certain line
number, write out the changed code.  A short snippet is as follows:

dest= open( f1, "w" )
source= open( f2, "r" )
for line in source:
   if X:
  dest.write( newline + "\n" )
   else:
  dest.write( line )
dest.close()
source.close()

The problem I am having is with hidden/invisible character.  In the fortran
code, there are line indents which are denoted with an invisible character
^I.  When I write with python, there is no ^I at the beginning of the line
and the fortran code no longer compiles.  I know how to put in the invisible
line return character (\n), but how can I put in other invisible characters?

Thank you kindly,
Tyler

P.S. In VI when I "set invlist" the hidden character ^I shows up in blue at
the beginning of the line in place of 4 red spaces that are normally there.
I'm assuming it is like a tab indent, but I don't know what it is.
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Invisible Characters in Fortran/Python

2011-04-09 Thread xDog Walker
On Saturday 2011 April 09 15:12, Tyler Glembo wrote:
> Hi All,
> So I have a ~3000 line fortran code that needs to be updated to run new
> files by simply updating a few lines in the code (~10 lines).  I thought
> python would be a great way to do so since I know a little python but not
> fortran.  So, my plan was to read in each line, and then at a certain line
> number, write out the changed code.  A short snippet is as follows:
>
> dest= open( f1, "w" )
> source= open( f2, "r" )
> for line in source:
>if X:
>   dest.write( newline + "\n" )
>else:
>   dest.write( line )
> dest.close()
> source.close()
>
> The problem I am having is with hidden/invisible character.  In the fortran
> code, there are line indents which are denoted with an invisible character
> ^I.  When I write with python, there is no ^I at the beginning of the line
> and the fortran code no longer compiles.  I know how to put in the
> invisible line return character (\n), but how can I put in other invisible
> characters?
>
> Thank you kindly,
> Tyler
>
> P.S. In VI when I "set invlist" the hidden character ^I shows up in blue at
> the beginning of the line in place of 4 red spaces that are normally there.
> I'm assuming it is like a tab indent, but I don't know what it is.

It is a tab.
-- 
I have seen the future and I am not in it.
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Cherrypy and Iframes (or how to insert a file in a, page)

2011-04-09 Thread Alan Harris-Reid


Andreas...

>  NotFound: (404, "The path '/file.txt' was not found.")

This error message often occurs because file.txt is a static file and 
you have not told CherryPy where to look for static files.  From the 
look of the error I am guessing that file.txt is in your root directory, 
in which case you need the following in your configuration file.


[/]
tools.staticdir.root = '/path/to/root/folder' # no trailing backslash
tools.staticdir.on = True
tools.staticdir.dir = ""   # necessary 
to serve static files in home folder


Hope this helps.
Alan Harris-Reid

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Virtualenv Error

2011-04-09 Thread Malcolm Newsome
Hey All,

I installed virtualenv and am getting this error when trying to create one.
I'm running Windows 7.  Can anyone help??

Thanks!


Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Malcolm>virtualenv chipysite
New python executable in chipysite\Scripts\python.exe
Installing setuptoolsdone.
  Complete output from command C:\Users\Malcolm\chipysite\Scr...n.exe
C:\Users\Malcolm\chipysite\Scr...pt.py
C:\Users\Malcolm\Python26\lib\...ar.gz:
  Traceback (most recent call last):
  File "C:\Users\Malcolm\chipysite\Scripts\easy_install-script.py", line 8,
in 
load_entry_point('setuptools==0.6c11', 'console_scripts',
'easy_install')()
  File
"C:\Users\Malcolm\chipysite\lib\site-packages\setuptools-0.6c11-py2.6.egg\pk
g_resources.py", line 318, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
  File
"C:\Users\Malcolm\chipysite\lib\site-packages\setuptools-0.6c11-py2.6.egg\pk
g_resources.py", line 2221, in load_entry_point
return ep.load()
  File
"C:\Users\Malcolm\chipysite\lib\site-packages\setuptools-0.6c11-py2.6.egg\pk
g_resources.py", line 1954, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File
"C:\Users\Malcolm\chipysite\lib\site-packages\setuptools-0.6c11-py2.6.egg\se
tuptools\command\easy_install.py", line 21, in 

  File
"C:\Users\Malcolm\chipysite\lib\site-packages\setuptools-0.6c11-py2.6.egg\se
tuptools\package_index.py", line 2, in 
  File "C:\Users\Malcolm\Python26\lib\urllib2.py", line 92, in 
import httplib
  File "C:\Users\Malcolm\Python26\lib\httplib.py", line 70, in 
import socket
  File "C:\Users\Malcolm\Python26\lib\socket.py", line 46, in 
import _socket
ImportError: No module named _socket

Traceback (most recent call last):
  File "C:\Users\Malcolm\Python26\Scripts\virtualenv-script.py", line 8, in

load_entry_point('virtualenv==1.5.2', 'console_scripts', 'virtualenv')()
  File
"C:\Users\Malcolm\Python26\lib\site-packages\virtualenv-1.5.2-py2.6.egg\virt
ualenv.py", line 558, in main
prompt=options.prompt)
  File
"C:\Users\Malcolm\Python26\lib\site-packages\virtualenv-1.5.2-py2.6.egg\virt
ualenv.py", line 656, in create_environment
   install_pip(py_executable)
  File
"C:\Users\Malcolm\Python26\lib\site-packages\virtualenv-1.5.2-py2.6.egg\virt
ualenv.py", line 415, in install_pip
filter_stdout=_filter_setup)
  File
"C:\Users\Malcolm\Python26\lib\site-packages\virtualenv-1.5.2-py2.6.egg\virt
ualenv.py", line 624, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command C:\Users\Malcolm\chipysite\Scr...n.exe
C:\Users\Malcolm\chipysite\Scr...pt.py
C:\Users\Malcolm\Python26\lib\...ar.gz failed with error code 1

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Invisible Characters in Fortran/Python

2011-04-09 Thread Steven D'Aprano

Tyler Glembo wrote:


The problem I am having is with hidden/invisible character.  In the fortran
code, there are line indents which are denoted with an invisible character
^I.  When I write with python, there is no ^I at the beginning of the line


^I is a tab character, which you can include in Python strings using \t



and the fortran code no longer compiles.  I know how to put in the invisible
line return character (\n), but how can I put in other invisible characters?


In byte strings:

\a  ASCII BEL
\b  ASCII BACKSPACE
\0  ASCII NULL
\n  linefeed
\v  vertical tab
\t  horizontal tab
\r  carriage return
\f  formfeed
\xDDcharacter with hexadecimal value DD
\XDDsame as above
\0DDcharacter with octal value DD

In Unicode strings, all of the above, plus:

\u  unicode character with hex value  (four bytes)
\U
unicode character with hex value  (eight bytes)
\N{NAME}
unicode character named NAME


Note that in Python 3, octal escape sequences no longer use \0 
(backslash-zero), but \o (backslash-o).


See http://docs.python.org/reference/lexical_analysis.html#strings for 
more details.





--
Steven
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Python 3.2 Install Not Responding To Python Command!!

2011-04-09 Thread Rohan Sachdeva
Just so you know there is a PPA for 3.2 -
https://launchpad.net/~irie/+archive/python3.2

Should make things a lot easier.

Rohan

On Sat, Apr 9, 2011 at 11:45 AM, Nevins Duret  wrote:

>  On 04/09/2011 02:32 PM, Walter Prins wrote:
>
>
>
> On 9 April 2011 17:44, Nevins Duret  wrote:
>
>>  Compiling with Ubuntu
>>
>> # get required packages for buildsudo apt-get install build-essential 
>> libncursesw5-dev libreadline5-dev libssl-dev libgdbm-dev libc6-dev 
>> libsqlite3-dev tk-dev
>>  # get sourcewget http://www.python.org/ftp/python/3.2/Python-3.2.tgz && tar 
>> -xvf Python-3.2.tgz
>>  # make install
>> ./configuremakesudo make altinstall
>>  # make 3.2 the default python system wide (number 1 at the end stays 
>> there)sudo update-alternatives --install /usr/bin/python python opt/py32/bin 
>> 1
>>  # ensure various versions of python play nice with each othersudo 
>> update-alternatives --config python
>>
>>
>> Again I really appreciate your help, getting over this hurdle would help me 
>> be confident in what goes on under the hood.
>> At this point, it seems that I will need instructions on how to remove 
>> python3.2 in order to get a reattempt at installing it
>> properly.
>>
>>
>>
>>
> OK... It's usually preferable if at all possible to install things using
> the system's package manager -- is there any particular reason that you must
> use Python 3.2 and can't install Python 3.1.2, which is available in the
> repositories? It may be installed by simply doing:
>
> sudo apt-get install python3-all
>
> As for fixing/undoing any problems in your system -- I'm reluctant to try
> and fix that via this list and without more information.  I'd therefore
> suggest asking on the Ubuntu community forums programming sub-forum.
> http://ubuntuforums.org/forumdisplay.php?f=310
>
> Walter
>
>
>  Hello Walter,
>
> I can't thank you enough for your help.  Yes, I usually use the
> Synaptic Package Manager, however in this case, Python version 3.2 is not on
> the Synaptic package Manager.  This is why I chose to build it from source.
> As far as what I think is causing this when I go in the Terminal and type:
> p me out.
> sudo update-alternatives --install /usr/bin/python/python3.2 python
> /opt/py32/bin/python3.2 1
>
> I get this as an error message:
>
> update-alternatives: renaming python link from /usr/bin/python to
> /usr/bin/python/python3.2.
> update-alternatives: warning: forcing reinstallation of alternative
> /opt/py32/bin because link group python is broken.
> update-alternatives: error: unable to make
> /usr/bin/python/python3.2.dpkg-tmp a symlink to /etc/alternatives/python: No
> such file or directory
>
> I must add that I am running this in the Terminal under the Python-3.2
> directory that I uncompressed after I downloaded it.  The reason why I'm
> using this version of Python is because Blender2.5, a 3D animation open
> source program is built on Python3.2 and requires it if I am to develop it
> using CMAKE.  And, so far, I have blender installed on /opt/py32.
>
> I really appreciate your help, and am learning tons by going through
> this.  I understand that posting this question here may not be suitable, but
> I'm confident someone will be able to help me out.
> Thanks so much.
>
> Best Regards,
>
> Nevins Duret
>
> ___
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Python 3.2 Install Not Responding To Python Command!!

2011-04-09 Thread Nevins Duret

On 04/09/2011 06:12 PM, Rohan Sachdeva wrote:
Just so you know there is a PPA for 3.2 - 
https://launchpad.net/~irie/+archive/python3.2 



Should make things a lot easier.

Rohan

On Sat, Apr 9, 2011 at 11:45 AM, Nevins Duret > wrote:


On 04/09/2011 02:32 PM, Walter Prins wrote:



On 9 April 2011 17:44, Nevins Duret mailto:dur...@bellsouth.net>> wrote:

Compiling with Ubuntu

# get required packages for build
sudo  apt-get  install  build-essential libncursesw5-dev 
libreadline5-dev libssl-dev libgdbm-dev libc6-dev libsqlite3-dev tk-dev

# get source
wget  http://www.python.org  
/ftp/python/3.2/Python-3.2.tgz&&  tar  -xvf  
Python-3.2.tgz

# make install
./configure
make
sudo  make  altinstall

# make 3.2 the default python system wide (number 1 at the end stays 
there)
sudo  update-alternatives--install  /usr/bin/python pythonopt/py32/bin1

# ensure various versions of python play nice with each other
sudo  update-alternatives--config  python


Again I really appreciate your help, getting over this hurdle would 
help me be confident in what goes on under the hood.
At this point, it seems that I will need instructions on how to remove 
python3.2 in order to get a reattempt at installing it
properly.




OK... It's usually preferable if at all possible to install
things using the system's package manager -- is there any
particular reason that you must use Python 3.2 and can't install
Python 3.1.2, which is available in the repositories? It may be
installed by simply doing:

sudo apt-get install python3-all

As for fixing/undoing any problems in your system -- I'm
reluctant to try and fix that via this list and without more
information.  I'd therefore suggest asking on the Ubuntu
community forums programming sub-forum.
http://ubuntuforums.org/forumdisplay.php?f=310

Walter



Hello Walter,

I can't thank you enough for your help.  Yes, I usually use
the Synaptic Package Manager, however in this case, Python version
3.2 is not on the Synaptic package Manager.  This is why I chose
to build it from source.  As far as what I think is causing this
when I go in the Terminal and type:
p me out.
sudo update-alternatives --install /usr/bin/python/python3.2
python /opt/py32/bin/python3.2 1

I get this as an error message:

update-alternatives: renaming python link from /usr/bin/python to
/usr/bin/python/python3.2.
update-alternatives: warning: forcing reinstallation of
alternative /opt/py32/bin because link group python is broken.
update-alternatives: error: unable to make
/usr/bin/python/python3.2.dpkg-tmp a symlink to
/etc/alternatives/python: No such file or directory

I must add that I am running this in the Terminal under the
Python-3.2 directory that I uncompressed after I downloaded it. 
The reason why I'm using this version of Python is because

Blender2.5, a 3D animation open source program is built on
Python3.2 and requires it if I am to develop it using CMAKE.  And,
so far, I have blender installed on /opt/py32.

I really appreciate your help, and am learning tons by going
through this.  I understand that posting this question here may
not be suitable, but I'm confident someone will be able to help me
out.
Thanks so much.

Best Regards,

Nevins Duret

___
Tutor maillist  - Tutor@python.org 
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor



Hello Rohan,

With that said, how do I go about adding this link to my list of 
repositories?  Before, I would just have to go to the Update Manager, 
and then I would just add the link, now, as a result of not being able 
to launch Update Manager as result of the bad Python3.2 install, I am 
not able to successfully add the link to my list of repositories.  
Again, I thank you for your help.


Best Regards,

Nevins Duret
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Cherrypy HtmlArea

2011-04-09 Thread Evans Anyokwu
Hi Andrés,

I'm not sure a lot of people on this list use Cheerypy - I use django
myself.
I would suggest you check cherrypy website, there's an IRC link at the top
of the page.

Good luck

2011/4/9 "Andrés Chandía" 

>
>
> I have put a textarea at a web generated by cherrypy, but I would like to
> add  some user
> editing tool like HtmlArea, I've been sufing arround but I haven't found
> clear information.
>
> I would appreciate your help!
> ___
> andrés
> chandía
>
> P No imprima
> innecesariamente. ¡Cuide el medio ambiente!
>
>
> ___
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor