Could not initilalize crash reporting DB

2021-09-25 Thread Sir Real via Python-list
I have a script that chooses a paragraph at random from a text file then uses that paragraph to generate and send an email message. It's set up to run on Windows 7 startup. It has run without issue more than 400 times. Recently two consecutive runs produced the following messages... Could

Re: Can a print overwrite a previous print ?

2020-05-08 Thread Sir Real via Python-list
On Fri, 8 May 2020 16:25:52 +0200, ast wrote: >Hello > > >Suppose we want that: > >print("abcdef"); print("ghi") > >produces: > >ghidef > >The 2nd print overwrites the first one. >Is it feasible ? > >It should since the progress bar tdqh seems to do that > >try: > >from tkdm import tkdm > >for i

Re: help me ?

2018-02-27 Thread Sir Real
On Mon, 26 Feb 2018 01:40:16 -0800 (PST), sotaro...@gmail.com wrote: >Define 2 lists. The first one must contain the integer values 1, 2 and 3 and >the second one the string values a, b and c. Iterate through both lists to >create another list that contains all the combinations of the A and B >

How to import sqlite3 in my python3.4 successfully?

2014-12-14 Thread sir
There are two python version in my debian7, one is python2.7 the system default version, the other is python3.4 which compiled to install this way. | apt-get update apt-get upgrade apt-get install build-essential wget http://www.python.org/ftp/python/3.4.0/Python-3.4.0.tgz tar-zxvfPython

which is the right file path format in python3.4 ?

2014-12-14 Thread sir
My system is :win7+python3.4 . I want to write a new file "named names.txt" in disk f: >>> ff=open(r"F:\names.txt","w") Traceback (most recent call last): File "", line 1, in OSError: [Errno 22] Invalid argument: 'F:\\names.txt' >>> ff=open(r"F:/names.txt","w") Traceback (most recent call

how to install paramiko correctly?

2014-12-07 Thread sir
My system:win7+python3.4 . I have installed Crypto and Paramiko . C:\Windows\system32>pip3.4 install Crypto Requirement already satisfied (use --upgrade to upgrade): Crypto in d:\python34\ lib\site-packages Cleaning up... C:\Windows\system32>pip3.4 install Paramiko Requ

Subclassing datetime.date

2010-02-06 Thread Sir Wilhelm the Sturdy
Hi all, I recently attempted to subclass the datetime.date object resulting in horror and confusion, before submitting to a has-a relationship. That's all fine and dandy, but out of curiosity I'd like to know what I'm missing. I was attempting to allow more flexible instancing of an object, like

Re: Calendar GUI

2010-02-06 Thread Sir Wilhelm the Sturdy
On Feb 6, 12:59 am, Michael Torrie wrote: > Gabriel wrote: > > On Fri, Feb 5, 2010 at 9:08 PM, William Gaggioli > > wrote: > >> I'm working on setting up some software for a Peruvian non-profit to help > >> them organize their incoming volunteers. One of the features I'd like to > >> add > >> i

Web Hosting

2006-10-14 Thread Sir Psycho
Hi, With web hosting, does the ISP you chose have to support the framework you work with as well? Im looking at making a site in Python, however, Im lost as to what ISPs actually support. Some ISPs say they support Python so does that mean if I wanted to use TurboGears It would just work anyway?

RE: Some general questions about using "stdin","stdout"....

2006-02-17 Thread asdsd sir
thank you very much for your help... my big mistake,was to believe that "|" is the pipe symbol for both,unix and python... it is really annoying,how such a simple thing can mess things Thank you for clearing this out. _ Free bloggin

Some general questions about using "stdin","stdout"....

2006-02-16 Thread asdsd sir
Hi!I'm new in Python and i'd like to ask some general questions about stdin,stdout... Firstly... if we type like something like : cat "file.txt"|python somefile.py #somefile.py import sys text=sys.stdin.read() ...then "sys.stdin.read()" will read from "cat"s stdout... However,if i

Re: Reading and Writing

2004-12-23 Thread Sir Galahad the chaste
Hi, [EMAIL PROTECTED] wrote: How should I: Open a Text file, read from it, modify it, print to another .txt? For instance: Read a string, sort it, write the sorted string. What do you mean by "sorting"? If you want to sort the lines contained in a file, you could do something like this. $ cat in.