Ok, this may have been a fatal error on my part but I decided to start
fresh and uninstalled my old version of Python. Now when I try to reinstall
I get these error messages..
Setup failed
one or more issues caused the setup to fail. Please fix the issues and then
retry setup. For more informati
Thank you all. I will start in small steps. First Pygame and Ubuntu. I will
add any errors I get.
On Sun, Aug 12, 2018 at 11:51 AM, Mats Wichmann wrote:
>
> > Start with checking that pip is there (or installing it if not)
> > Then do PyGae
> > Then do Matplotlib
>
> For this, please note that t
I bought two books to help me learn Python. "Python Crash Course" and
"Python for Informatics". I have done all of the basic lessons in "Python
Crash Course", but it has two additional sections to help instill what I
have learned To do those sections I need to install Pygame and make sure I
ha
and flexible enough to cover different application types.
Regards,
Carlos Daniel Ruvalcaba Valenzuela
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
n in their desktop. The
problem with this approach is that it results in a huge bundle, updates are
a pain too. Any ideas or experience with this (not precisely this combo but
the packaging in general)?
Regards,
Carlos Ruvalcaba
PD: I'm looking for the actual state of things right now as I'm su
e root directory
entirely (your hard disk).
You may want to use os.popen or one of the many process modules to
call 'df', then parse each line by spliting the spaces or tabs, then
the rest is more or less what you are doing right now.
Regards,
Carlos Ruvalcaba
On Fri, Nov 5, 2010 at 5:
I did a "pastebin.com" fork in Django (python web framework) if anyone
interested on join using it or improving it, can find the code at:
http://gitorious.org/aprendiendo-django/aprendiendo-django
Also see it working at http://notas.canaima.softwarelibre.gob.ve/
Best Regards
--
Atte
mming is a lot more involved than
> desktop programming. I think it would be really a fun challenge to put
> together a great soup-to-nuts tutorial on this (but I am far from the one
> to do it!), since it incorporates so many elements. I wish you luck on
> the Py3 tutorial and and web app tutorial work when you have the chance.
>
> Thanks,
> Che
>
>
> ___
> Tutor maillist - Tutor@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>
--
Atte:
Carlos A. Guerrero M.
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
er to convert the format, lets see how they take that.
Regards,
Carlos Ruvalcaba
On Tue, Jun 22, 2010 at 10:44 PM, Lang Hurst wrote:
> Carlos Daniel Ruvalcaba Valenzuela wrote:
>>
>> Hello list,
>>
>> I was wondering if anyone has worked with excel 2007 files (importing
&
later.
Has anyone had to deal with something like this recently?, I'm
thinking as last resort just work with the underlying XML files of the
format, but it would be nice to have an already working module.
Regards,
Carlos Ruvalcaba
___
Tutor mai
Dear Python,
I am trying to learn Python to experience my
computer programming knowledge. I am working through the online
textbook How to Think Like A Computer Scientist. I have made it through
chapters 1-5 and completed the exercises at the end. Now I am on
chapter 6 and I am having a lot of tro
On Sat, Jun 13, 2009 at 7:57 PM, Wayne wrote:
> On Sat, Jun 13, 2009 at 7:40 PM, Mike Hoy wrote:
>>
>> Try out Vim. It may take you a week to get used to it. Best thing I ever
>> did was finally get started on Vim. Once I got used to it I was very happy.
>> Google around for Vim tutorials. There i
Hello list,
I have been coding in python a short while and I have been wondering
which approach should I take on documentation (API docs) for a python
library I have been working on, there is currently code docstrings,
docstrings with some markup (epydoc, etc), or external programs such
as Sphinx
_option("-q", ...
The arguments are everything left over. In this case, they are not
used, but they are required. The following runs without issue:
$ python parser.py junk
$ python parser.py -v junk
reading None...
The bottom line is the example is just an example, not something you
)-1, -1, -1)
>>> i
[0, 1, 2]
>>> j
[2, 1, 0]
Theoretically, I could then just iterate over range(len(M)) and grab
M[i[N]j[N]], but that's not legal. What would be the right way of doing
this?
Thanks in advance,
Carlos
___
T
gt;>
>> Does this help?
>
> Another approach is to use dictionaries for string
> replacement.
>
>>>> subst = {'some': 'thing'}
>>>> print "%(some)s%(some)s%(some)s" % subst
> thingthingthing
>
As an alternate to r
t if [theme in VALID_THEMES] becomes an index to the tuple:
--> (VALID_THEMES[0], theme1)[1]
'moon'
--> (VALID_THEMES[0], theme1)[0]
'sun'
But we got [True] and [False]:
--> True == 1
True
--> False == 0
True
So in words, the code returns the
n.dll"
I suggest you to consult the Apache configuration documentation on Windows.
Regards,
Carlos
On Tue, Apr 22, 2008 at 4:18 PM, SwartMumba snake <[EMAIL PROTECTED]> wrote:
> Hello Python Mailing List
>
> I am trying to set up mod python 3.3.1. I have python 2.5.1, apache 2
g modules for python (profile, hotshot, etc).
Forwarded to Tutor list, I forgot it sorry!
Regards,
Carlos Daniel Ruvalcaba Valenzuela
On 9/16/07, Jeff Peery <[EMAIL PROTECTED]> wrote:
> Hello,
> I've got a quick question regarding performance of lists. I am taking
> measuremen
Yes is very possible to do this with python.
Checkout the os.system and os.popen functions to run external commands
(chmod, chown).
Reading the list of users and groups should be easy, just open the
file and read line by line and parse, you can do it as simple as
splitting the line on colon chara
/
http://www.ibm.com/developerworks/linux/library/l-python6.html
Checkout window objects, there is functions for all that you want to
do (move cursor, print, read, etc).
Good Luck!
Carlos Ruvalcaba Valenzuela
On 8/1/07, Robert William Hanks <[EMAIL PROTECTED]> wrote:
>
> hi folks,
, this may not be what you want.
Spawn will create a subprocess, you can wait for it to finish or let
it run free knowing its process id to check it latter, it is roughly
similar to fork.
Good luck!
Regards,
Carlos Daniel Ruvalcaba
On 7/20/07, Chris Smith <[EMAIL PROTECTED]> wrote:
> Howdy,
wxGlade is a good GUI builder, very much like Glade, however it may o
may not integrate with your coding style but you should definitively
give it a try.
PythonCard is a nice concept I personally do something similar but
with XML, parse and build the GUI from it, then tweak the layout
manually, wi
Hello,
If I have a dictionary like:
inventory = {'apples': 430, 'bananas': 312, 'oranges': 525, 'pears': 217}
How can I get the item with the largest quantity? I tried:
max(inventory)
but got:
'pears'
What I would like to get is
for i in range(objcts):
instance = 'myInst%i' %(i)
objecList.append(instance)
for i in range(objcts):
i = objct(objecList[i], i)
print i.name
print i.val
myC = collection(10)
Regards,
Carlos
___
That depends very much on how you are running both scripts in
parallel, if you are using Threads or process.
If using threads you can share a variable or object between the
scripts read it on A to check for updates and lock and update on B
(using semaphores for examples), there is an Event object
thinking in mentioning those of you who helped me, but really fear to
miss someone, so thanks to all of you who contributed. Thank you very much.
This doesnt means that you will get rid of me, I want to get into OO
now. :)
Cheers,
Carlos
___
Tutor
[96, 46, [12, 13], 23, [34, 32]]
I would like to give it a try because I have the impression that it can
be helpful too. My problem now is the lambda function, I was wondering
if someone could be so kind as to give me an example that could work in
my list with nested tuples.
Thanks again!
Ca
region. Is this possible? and if yes, how canI do it? I ask this because
as you know my python skills are not that great :)
Thanks in advance for your help,
Carlos
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Hello Again,
Looks like Im getting there now. I did this inside the GA module:
def update(self):
return self.entities
now Im putting it in my code:
def my_fitness(entity):
x = ga.update()
print 'X', x
fitness = 0.0
for i in entity:
if i == 1:
python_ai/
If you can help me please do it, this is critical for my project :(
Thanks for helping
Carlos
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Hi,
Just in case that the info that I provided is not enough, I posted the
code in a python forum, hope that somebody can take a look.
http://python-forum.org/py/viewtopic.php?p=11063#11063
Regards,
Carlos
___
Tutor maillist - Tutor@python.org
http
you can see there is a for loop and I need the info every time that it
gets updated by the loop.
Hopefully I'm making myself clear and the info is enough.
Thanks for your help in advance
Carlos
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Hello,
Well seems like Danny was right, the backslashes were the problem! This
really got an 11 in my frustration meter.
Thanks for your help
Carlos
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
solve problems but this is... well. I searched the web for
help, but nothing.
This is how I am doing it
from PIL import Image
import sys
sys.path.append('D:\MASTER THESIS\Branch_01\Thesis B_01\images\tmp')
im = Image.open("Wind_Test_01")
Thanks and sorry for bothering you with
help,
Carlos
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Kent,
Will give this a try.
Thanks for your help,
Carlos
Kent Johnson wrote:
> OK, off the top of my head (not tested) here are some things to get
> you started.
>
> You could write a function that would retrieve a coordinate value
> given an index number, for example:
>
Hi Kent,
I have yet to get into OO, and the GA that I'm using was done in this
way, so I can't mess with it that much. So for now yes, the list has to
be a flat element containing all this info.
I have been reading about OO lately and a element class seems to be a
good idea, I'm working on it
s a little messy but this is because
List [0] = Tens X position
List [1] = Units X position
List [2] = Decimals X position
List [3] = If < than 5 the number is negative, else is positive
Then if the result is List = [6, 1, 2, 3] the X position equals -612.3.
This is the same for the Y position. If there are 10 elements the list
is going to be 80 integers long and if there are 100 elements, well you
get a very long list...
With this in mind my question would be, how can I keep track of this
information? I mean how can I assign this List positions to each
element? This is needed because this is going to be a long list and the
GA needs to evaluate the position of each element with respect to the
position of the other elements. So it needs to know that certain numbers
are related to certain element and it needs to have access to the size,
level, name and parent information... I hope that this is clear enough.
Thanks in advance,
Carlos
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Chris,
Sheesh, that solved it, guess that I got to learn OO next. Unles it is
not related... :-[
Thanks a lot!
Carlos
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
solve this problem?
Regards,
Carlos
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
hashing with md5, most sites or systems
authenticates against the hash, never use the clear password, a hash
is better and can be faster.
http://docs.python.org/lib/module-md5.html
Regards,
Carlos Daniel Ruvalcaba Valenzuela
On 12/24/06, Adam Bark <[EMAIL PROTECTED]> wrote:
> I
# Append Element to corresponding Level
for Element in Elements:
Lev_List['Level_%i' % (Element['Level'])].append(Element['Name'])
print Lev_List
And this is the result:
Lev_List = {
'Level_1': ['Access', 'Circulation_01',
'Int_Circ_01', 'Int_Circ_02'],
'Level_2': ['Circulation_02', 'Int_Circ_03',
'Int_Circ_04'],
'Level_3': ['Circulation_03', 'Int_Circ_05',
'Int_Circ_06']
}
It works fine, as far as I can tell. I mean, no matter how many 'Levels'
it will allways get them right (levels so far are only integers).
Probably the first loop is a little redundant, but performance is not
one of my concerns now, but in the future the project will not be
composed by a handful of spaces, probably by hundreds or more.
Regards,
Carlos
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Kent,
Thanks a lot, that solves it... again
Carlos
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Is this possible?
Thanks in advance,
And Merry Christmas,
Carlos
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
ck it here
<http://en.wikipedia.org/wiki/Master%27s_degree#MArch_I..2C_MArch_II.>.
Just to clarify :-)
Cheers
Carlos
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Kent,
Yes it is a little longer than that, let me see how can I make it more
compact and will get back to the list with a URL.
Thanks!!!
Carlos
Kent Johnson wrote:
> Carlos wrote:
>> Hello,
>>
>> I have been working in a script for my master thesis project (M Arch)
>
sible for someone to take a look and spot my errors, but I
really can't think of a better way.
Best regards,
Carlos
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Thanks Kent,
That solves it pretty well.
Carlos
Kent Johnson wrote:
> Yes, count() is looking for exact matches. You can make a new list
> with just the circulation names and take the length of that; something
> like this:
> len([name for name in built_Objects if nam
name, etc
The thing is that there can only be a "Circulation" by story, so I am
thinking in adding each created object to a built_Objects list and
appending the created object to the list, like:
for element in elements:
create element
append element['Name'] to built_O
lem?
Thanks for your help,
Carlos
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Thanks Terry and Roel,
I got it working now, the problem was a sign situation. I fixed it this way:
from math import *
def Az(Lat, Dec, H_Ang):
lat_R = radians(Lat)
decl_R = radians(Dec)
hour_R = radians(H_Ang)
x_azm = sin(hour_R) * cos(decl_R)
ls/vrsolar/frameset.html
Thanks in advance for your help,
Carlos
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Hi,
> What?
> I think you're talking to someone else here, cause I have no idea what
> you mean.
> Copy binary numbers from memory?
> You mean from any arbitrary memory location you want?
> That sounds a lot like C++ pointers to me.
That was based on this:
> Hi Ca
ore it is posted on
the list and because in this way is easier to keep track of the info
that is useful for me. The question is: is this a personal option from
the person who replys? I would like to have all my answers this way, is
it possible?
Thanks a lot for your help.
Happy coding,
Carlos
n < 8:
bin[0:0] = [0]
b_len = len(bin)
print bin
tobinary(30)
Is this a good way to proceed?
Alan, about going 3D, I agree a normal 2D list will do, but I'm really
afraid of the list wrapping, this time squared (or is it cubed?). I'm
going to nee
port scipy
a1 = scipy.zeros((4,5))
print a1
[[ 0. 0. 0. 0. 0.]
[ 0. 0. 0. 0. 0.]
[ 0. 0. 0. 0. 0.]
[ 0. 0. 0. 0. 0.]]
Thats it for now.
Thanks again,
Carlos
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
the following error:
c = A_List[i+1]
IndexError: list index out of range
I have the impression that this can be done in a less clunky way.
Again thanks for your comments. : )
Best Regards,
Carlos.
___
Tutor maillist - Tutor@python.org
http://mail.python.
hod that I have chosen?
And what about the if and else that are right after the two loops? they
are there because if not when the loop gets to the last number an
exception arises.
Thanks a lot
Carlos
Here is the code:
Note: Right now maya is not needed to run the code.
#My first try at Cellula
test.py
>
> This is clearly executable by brian, and clearly being executed by
> brian. The shebang line is correct (#!/usr/bin/python).
>
[...]
Good call. I jumped on the answer without making sure I clearly read
all the information provided.
--
Carlos Hanson
>
> Carlos Han
is not executable, you would execute it as
follows:
$ python shebangtest.py
As you found with `which python`, python is in /usr/bin, so executing
the script is actually
$ /usr/bin/python shebangtest.py
Therefore, the shebang line needs to be as follows:
#! /usr/bin/pyth
wxPython is good for cross-platform stuff and has a few gui designers
(Boa Constructor and others comes to mind), I don't know much about
PyQT state in this, but PyGtk + Glade (Gui Designer) is a very good
combo.
Is about choise, I suggest you to do some simple tests with everything
until you find
ation and get a result in the end, forgetting a little
about the process itself. Dont think me lazy is just that I'm new to
python and my time is limited.
By the way, do you think that a GA solution is good for this project,
maybe someone has a better idea.
Than
a second may be present if the system clock provides
them.
>>> t1 = time()
>>> t2 = t1 + 120*24*60*60
>>> now = time()
>>> now > t1 and now < t2
True
>>> ctime(t1)
'Fri Oct 20 09:09:26 2006'
>>> ctime(t2)
'Sat Feb 17 08:09:2
member.size, member.mtime, member.name)
...
420 chanson/chanson 0 1160505068 file.1
420 chanson/chanson 0 1160505071 file.2
420 chanson/chanson 0 1160505075 file.3
--
Carlos Hanson
Web and System Administrator
Tigard-Tualatin School District
503.431.4053
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
n file object:
for i in routers:
f = file(i, 'w')
f.close()
> Thanks for your time.
> _______
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
--
Carlos Hanson
Web Specialist
Tigard-Tualatin School District
503.4
nce anyone has some experience that can share
I would be grateful.
I know that this is a little off topic, in the future I will try to keep
this more centered on python.
Best Regards
Carlos
___
Tutor maillist - Tutor@python.org
http://mail.python.o
ct file is located). If
everything went fine, the result will be in the bin subdirectory (the
file will be called sourcepy.mll or sourcepy.so) from where you can copy
it to any convenient place where Maya is able to find it."
I hope that someone can tell me how to do this.
Carlos
""
Boost. I have been
trying to install this things but still have no clue at how.
Thanks for your help
Carlos
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
is the mistake?
By the way, has someone managed to install CGKit and can guide me in the
process? I'm having a lot of trouble with it.
This is the page, just in case http://cgkit.sourceforge.net
Thanks
Carlos
___
Tutor maillist - T
peed it up.
Good Luck!
Regards
Carlos Daniel Ruvalcaba Valenzuela
On 7/4/06, Kent Johnson <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > 2. Seeing Python hailed as a good language for learning programming,
> > how do you
> > rate it as a lifetime language?
Carlos Daniel Ruvalcaba
On 6/27/06, Magnus Wirström <[EMAIL PROTECTED]> wrote:
> Hi Everyone
>
> I'm starting to python and i need to write a program that are able to
> compress a high amount of files and directories into a single file that
> is later going to be transfe
By the way, when do you get this warning? while starting the python
interpreter (python.exe)?, it's IDLE which gives you that warning? or
could it be some code? if it is code then send it to the list, i'm
sure will be able to help you more that way :)
Regards,
Carlos Daniel
Most probably you are using Python on Windows, on Unix-like system
there is a "home" for each user where the user files reside, normally
HOME on windows must point to something like c:\Documents and
Settings\Username, are you using Python on Windows 98?
Otherwise it may be a problem with the envir
There is a PyGTK package for win32, don't know if it uses cygwin or
mingw but works pretty well on windows, it only needs the gtk runtime.
http://www.pcpm.ucl.ac.be/~gustin/win32_ports/
Altough I might been misunderstanding your question ;)
On 6/8/06, Christopher Spears <[EMAIL PROTECTED]> wrote
From: Carlos Daniel Ruvalcaba Valenzuela <[EMAIL PROTECTED]>
Date: Jun 2, 2006 11:10 PM
Subject: Re: [Tutor] Trouble with os.path.isfile
To: "Carroll, Barry" <[EMAIL PROTECTED]>
Here is the problem IMO:
I did some modifications to your code (very minimal on ifs) and it w
ction.username)
All nodes are objects, converting them to strings gets you the
content, you can also access the atributes as normal object
attributes.
This code can be useful for what you want, take a look.
Regards
Carlos Daniel Ruvalcaba Valenzuela
On 6/1/06, Tracy R Reed <[EMAIL PROTECTED]>
Depends, you can pickle the list, but all objects need to be
pickleable, maybe you can put up with this requeriment by changing
your events to be pickleable?, but i don't know what data you store in
a event or what kind of data is it.
Regards
On 5/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrot
Hello!
At my university we are creating a Wiki with information about the
careers and articles, one of the most important section is the Systems
Engineering, which sports a Python section :)
Spanish Python Tutorials at:
http://wikitec.itnogales.edu.mx/index.php/Python
Saludos!
_
All,
I have a problem/question I'd like to pose to you guys on how best to
accomplish the following. I have a string that will vary in size, what
I would like to do is split into n size chunks. I am also not sure how
best to represent the chunks. For example, say I have a len(s) = 200
chars
Hi,
Can someone tell me what the r before the expression means, as in
"re.compile(r'(\.exe|\.zip|\.pif|\.scr|\.ps|\.pdf|\.ppt)$')"?
I've seen regular expressions both ways, and I've seen them work with or
without the r. Just wondering what it does, or if it makes a difference.
Thanks.
___
co.uk/hp/alan.gauld
> _______
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
--
Atentamente:
** ,= ,-_-. =.
|Carlos E. Sotelo Pinto(KrLoS) | ((_/)o o(\_))
|GNU/Linu
82 matches
Mail list logo