The following is on Linux.
I'd like to build python with ./configure --enable-shared. And
install in a non-standard place (an nfs-mounted directory).
However, the binary is then not usable, since it can't find the
library. I can fix this by defining LD_LIBRARY_PATH, but I don't want
to do that.
d d gmail.com> writes:
> I found this:
>
http://koansys.com/tech/building-python-with-enable-shared-in-non-standard-location
> It recommends LDFLAGS="-rpath ", and mentions that you
> get a "compiler cannot create executables" error unless you first
> creat
Hi, I currently have a Python app with a Tkinter GUI frontend that I
use for system administration. Everytime it launches, it reads a text
file which contains info about each host I wish to monitor - each field
(such as IP, hostname, etc.) is delimited by !!. Now, I want to be
able to edit host i
t big of a deal..
[EMAIL PROTECTED] wrote:
> D wrote:
> > Hi, I currently have a Python app with a Tkinter GUI frontend that I
> > use for system administration. Everytime it launches, it reads a text
> > file which contains info about each host I wish to monitor - each field
>
Thanks to all for the suggestions - I am going to give them a try this
afternoon. I am still fairly new to Python, so this will definitely be
a good learning experience. :)
Maric Michaud wrote:
> Le mercredi 12 juillet 2006 17:00, D a écrit :
> > Thanks, guys. So overall, would i
I would like to create a script for Windows 2000 that will create a
Standard TCP/IP printer port and install a printer (I have the
applicable printer drivers needed for the install on a network share).
My plan is to use py2exe and distribute (also via network share) the
script so that administrator
Hello, I apologize in advance for the vague description, but as of now
I only have an idea of what I'd like to do, and need some guidance as
to if it is feasible, and where to begin. Basically, I'd like to
create a web-based "job jar", that users in my office can access in
order to view, and "take
Thanks, Fredrik - but could I adapt them so that, instead of using them
for bug tracking (don't need version control, etc.), they're just used
for keeping track of simple tasks?
Fredrik Lundh wrote:
> D wrote:
>
> > Hello, I apologize in advance for the vague description, bu
Hello, I need to write a server program that performs the following
tasks:
1) Listens on TCP port for a connection
2) When client connects, launches application (for example, vi), then
closes connection with client
3) Goes back to listening on TCP port for an incoming connection
The
Thanks, Jean-Paul - is there any way to do it without using Twisted,
since I am not very familiar with it? (i.e. just using the os library)
Thanks.
Jean-Paul Calderone wrote:
> On 1 Jun 2006 07:34:23 -0700, D <[EMAIL PROTECTED]> wrote:
> >Hello, I need to write a server program th
Sorry, I should've specified - I'm familiar with sockets, but I was
referring to spawning a 'vi' process independent of my Python app..
Carl wrote:
> D wrote:
>
> > Thanks, Jean-Paul - is there any way to do it without using Twisted,
> > since I am not very
Sorry to bring it back up, but is there a way to spawn the process
without Twisted?
--
http://mail.python.org/mailman/listinfo/python-list
I would like to write a program that will automate the configuation of
a firewall or router via HTTPS. So, I need to import the applicable
certificate, and be able to configure the unit as if I was
typing/selecting the appropriate fields manually using a web browser.
If there is a command-line bas
Thanks! Now, I'm a bit confused as to exactly how it works - will it
display the output of what it executes on the target system? I would
like to create a window in Tktinker to where a user can select options
(such as run scan on remote system) - it would then run the
command-line based scan and
I've used os.popen() before, but if I execute it on a remote system how
could I get the output back to the requesting machine?
--
http://mail.python.org/mailman/listinfo/python-list
Hi all .. how could one test to see if an open relay exists on a
specific email server?
--
http://mail.python.org/mailman/listinfo/python-list
Is it possible to write a Python script to modify/configure a SonicWALL
firewall? Or, has anyone written any useful utilities for the units
(i.e. parsing the TSR reports, etc.)? Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
Nope, quite the contrary..I'm looking to write a simple program for a
client of mine that will, among other things, verify that their
clients' email servers do not have open relays.
--
http://mail.python.org/mailman/listinfo/python-list
Thanks guys for the info..the DSBL client app is exactly what I
need..unfortunately the app I'm writing will be for Windows (the only
client I saw was for Linux). Do you know if there's a Windows command
line port?
--
http://mail.python.org/mailman/listinfo/python-list
Thanks, Christoph..in order to automate this in a program (so the test
can be initiated from a system other than the mail server), I'm
thinking it could be automated (via pstools) to run on the system in
question. I'll give it a try!
Cheers,
Doug
--
http://mail.python.org/mailman/listinfo/pyth
Ok, I'm sure this is something extremely simple that I'm missing,
but..how do I set a variable in a Tkinter Checkbox? i.e. I have a
variable "test" - if the checkbox is selected, I want to set test=1,
otherwise 0. Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
Thank, Mikael..after messing with it for quite awhile, I finally found
out I need the .get()! Appreciate the help..
Doug
--
http://mail.python.org/mailman/listinfo/python-list
I am trying to do the following using Python and Tkinter:
1) Display a window with 1 button
2) When user clicks the button, Python attempts to call a function
that opens a socket and listens for a connection - what I want to do
is, if the socket has been successfully opened and the system is
wai
Thanks Kent! update_idletasks() does exactly what I needed, which as
you mentioned was just to give it enough time to reconfigure the
button.
Doug
--
http://mail.python.org/mailman/listinfo/python-list
I have a client application that I want (behind the scenes) to check
and make sure a remote host is up (i.e. by ping or TCP connect). I'm
assuming that, since I want this to go on "unknowingly" to the user,
that I would put this in a thread. My question is, how would I go
about creating the threa
Thanks, Grant. I apologize for not being clear on what I meant by
using "classes". This is an example of what I was referring to:
http://www.wellho.net/solutions/python-python-threads-a-first-example.html
See the second (threaded) example.
Doug
--
http://mail.python.org/mailman/listinfo/pyt
Guys - I appreciate the clarification. So it looks like they used a
class for the ping thread because they were a) running multiple
instances of the thread concurrently and b) needing to keep track of
the state of each instance, correct? I believe that in my case, since
I will be just running on
I have a simple client/server file server app that I would like to
convert to a single .exe. The client is just uses Tkinter and displays
a simple GUI. The server has no GUI and just listens for and processes
connections. How can I convert these 2 files to an .exe, while
enabling the server app
Jay - what I'm not sure of is the syntax to use. I have downloaded and
installed py2exe.
--
http://mail.python.org/mailman/listinfo/python-list
Thanks Larry - that is exactly what I needed! I do have the program
written to be a service, and now plan to use py2exe and Inno Setup to
package it up.
Doug
--
http://mail.python.org/mailman/listinfo/python-list
I have a simple file server utility that I wish to configure as a
Windows service - using the examples of the Python Win32 book, I
configured a class for the service, along with the main class functions
__init__, SvcStop, and SvcDoRun (which contains my server code). After
registering the service,
Yep, that should work. Just keep in mind that if python.exe is not in
your path, you will need to either specify the entire path to it
(i.e. 'C:\python24\python C:\path\to\script\myscript.py'), or cd into
its directory first (i.e. if you want to just run 'python
C:\path\to\script\myscript.py').
D
Thanks guys. Larry - I inserted the rc lines right after I do the
listen() and the service is not functioning properly (service is
terminating). Where am I going wrong here?
Doug
--
http://mail.python.org/mailman/listinfo/python-list
I must be missing something..in my SvcDoRun function, first line is
"self.timeout=1" , followed by my "while 1:" loop which listens for
the connection, processes the data, etc. Where should I place the
"rc=win32event.." and "if rc" lines? I have a feeling I'm pretty close
here.. :) Thanks ve
Sorry for the many messages, but I've been looking into it further -
since I have the server services listening and waiting for incoming
connections, how would I interrupt it to let the program know that a
stop request has been issued? For example, if I put the stop check
before it listens, I woul
Okay, so I need to find out what version of wxPython is being used on a
companies computer. I figured I can do this through IDLE, but I cant
find the proper commands. Any help would be appriciated.
--
http://mail.python.org/mailman/listinfo/python-list
nvm, i found the wxPython directory with __version__.py which told me
everything i need to know.
--
http://mail.python.org/mailman/listinfo/python-list
Is there a Python library available that will allow you to read/write
from the database of an iPod 3G and 5G? Basically, I'm sick of iTunes
and would much rather write a simple program myself. Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
I'm sure this is a simple question to the Tkinter experts - I have a
very basic Tkinter application that consists of 1 master window and
buttons within that window. My problem is that, I need to be able to
scroll (up and down) when I get to the point that the buttons go off
the screen. What's the
Bob Greschke wrote:
> On 2007-02-01 05:35:30 -0700, "D" <[EMAIL PROTECTED]> said:
>
> > I'm sure this is a simple question to the Tkinter experts - I have a
> > very basic Tkinter application that consists of 1 master window and
> > buttons within t
> Here you are:
>
> ---
> from Tkinter import *
>
> ## Main window
> root = Tk()
> ## Grid sizing behavior in window
> root.grid_rowconfigure(0, weight=1)
> root.grid_columnconfigure(0, weight=1)
> ## Canvas
> cnv = Canvas(root)
> cnv.grid(ro
Is it possible to have Python authenticate with Active Directory?
Specifically what I'd like to do is have a user enter a
username/password, then have Python check the credentials with AD - if
what they entered is valid, for example, it returns a 1, otherwise a
0.. Thanks!
--
http://mail.python.
Thanks to everyone for your help..I'm not familiar with the packages
mentioned, so this will definitely be a learning experience!
--
http://mail.python.org/mailman/listinfo/python-list
I'm sure this is an easy question for most here, but it's throwing me
for a loop at the moment - I need to upgrade RHEL 3 with the latest
version of Python. I downloaded the source and installed, but we're
still having problems (i.e. some Python apps don't work, Add/Remove
Applications console err
Thanks, Paul - do you know where I can get the RPM? I only see the
source on the Python website. Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
Thanks guys - I will give it another go!
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
How can one exclude a directory (and all its subdirectories) when
running os.walk()?
Thanks,
Doug
--
http://mail.python.org/mailman/listinfo/python-list
Ok, my brain's apparently not working right today.. what I'd like to
do is allow the user to specify a directory to exclude (ex- "C:\temp
\test") - then, when os.walk gets to "C:\temp\test", it excludes that
directory and all its subdirectories (so, "C:\temp\mytest\test" should
still be recursed).
On Oct 21, 1:46 pm, "Orestis Markou" <[EMAIL PROTECTED]> wrote:
> You then have to also check the base:
>
> for d in dirs[:]:
> if os.path.join(base, d) == EXCLUDED_DIR
> dirs.remove(d)
>
> or
>
> if base == EXCLUDED_DIR
> while dirs: dirs.pop(
Hello - has anyone written a Python script to backup VMWare servers?
If so, I'd appreciate any pointers as to how to go about doing so.
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I would like to be able to spawn a new CMD window (specifing size,
color and placement of the window), and write to it separately.
Specifically, I have a backup program that displays each file backed
up in the main window, and I would like to spawn and continually
update a second CMD windo
On Oct 16, 5:26 pm, TerryP wrote:
> On Oct 16, 8:15 pm, D wrote:
>
> > Hello,
>
> > I would like to be able to spawn a new CMD window (specifing size,
> > color and placement of the window), and write to it separately.
> > Specifically, I have a backup progr
mes to use, and
You can post multiple times in a row.
nimsg can be used as an alternative for IRC, for those times that you just want
to have a small, local chat room.
nimsg was written in Python 2.7.3, and does not require any non-standard
libraries or modules.
Happy hacking!
Hu
If you have any suggestions for features, bugs that you want to report, or just
comments on the program in general, feel free to reply here.
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I am using Python with Bots(EDI translator)
But i am getting the following error:
MappingFormatError: must be dicts in tuple: get((({'BOTSID': 'HEADER'},),))
Can anyone pls help me with it.
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
Hi there.
Im using windows 7 64bit
I have installed python 3.3.2 in C:\Python33
and then easy_install , pip, and virtualenv.
But i do not know if the virtualenv installation is correct as i cant seem to
be able to create any virtual enviroment yet.
How can i check if everything is correct? What e
Yeah trying to run virtualenv under IDLE was a desperate move as i couldnt make
anything work under cmd.
Apparently my problem was that i did not have correctly setup the new path..
Solution for me was the following from
"http://forums.udacity.com/questions/100064678/pip-installation-instructi
I tried to install SIP and PyQt5 using the pip install command but it didnt
work on both cases (i was getting errors), so i finally installed them using
the windows installers provided in riverbankcomputing website.
My problem though here is that whenever i try to create a new virtualenv
envirom
Answer here:
http://stackoverflow.com/questions/1961997/is-it-possible-to-add-pyqt4-pyside-packages-on-a-virtualenv-sandbox
--
http://mail.python.org/mailman/listinfo/python-list
Could you help me install PyQt5 properly in my Virtualenv folder and not only
globally?
I tried installing PyQt5 and sip with the use of pip but i was getting errors
all the time (Why is that? Are there any known pip issues along with PyQt5 and
sip?), so in the end i had to install it with the
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I'm trying to instantiate a class object repeated times, dynamically for as
many times as are required, storing each class object in a container to later
write out to a database. It kind of looks like what's needed is a
two-dimensional class object, but I can't quite conceptualize how to do
On Monday, January 21, 2013 8:29:50 PM UTC-6, MRAB wrote:
> On 2013-01-22 01:56, Brian D wrote:
>
> > Hi,
>
> >
>
> > I'm trying to instantiate a class object repeated times, dynamically for as
> > many times as are required, storing each class object
folks
hi,
I am going to learn python for some plot issues. which book or sources, do you
recommend please?
Cheers,
Dave
--
http://mail.python.org/mailman/listinfo/python-list
On Wednesday, May 9, 2012 7:13:54 AM UTC-7, Miki Tebeka wrote:
> > I am going to learn python for some plot issues. which book or sources, do
> > you recommend please?
> The tutorial is pretty good if you already know how to program.
> I also heard a lot of good things on "Python Essential Referen
In a program I'm converting to Python 3 I'm examining a list of divisor values,
some of which can be None, to find the first with a value greater than 1.
Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more i
Thanks for the replies. My example seems to be from the fairly harmless end of
a wedge of behaviours that are being handled much more sensibly in Python 3.
--
https://mail.python.org/mailman/listinfo/python-list
I am creating a parent class and a child class. I am inheriting from the
parent with an additional attribute in the child class. I am using __str__ to
return the information. When I run the code, it does exactly what I want, it
returns the __str__ information. This all works great.
BUT
1)
Hii
I have a directory. In that folder .msg files . How can I extract those
files.
Thanks & regards
Mahesh
--
https://mail.python.org/mailman/listinfo/python-list
Hii.
I have folder.in that folder some files .txt and some files .msg files. .
My requirement is reading those file contents . Extract data in that files .
--
https://mail.python.org/mailman/listinfo/python-list
import glob,os
import errno
path = 'C:/Users/A-7993\Desktop/task11/sample emails/'
files = glob.glob(path)
'''for name in files:
print(str(name))
if name.endswith(".txt"):
print(name)'''
for file in os.listdir(path):
print(file)
if file.endswith(".txt"):
import glob
import win32com.client
files = glob.glob('C:/Users/A-7993/Desktop/task11/sample emails/*.msg')
for file in files:
print(file)
with open(file) as f:
msg=f.read()
print(msg)
outlook =
win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI"
Is there a SIMPLE method that I can have a TIMER count down at a user input
prompt - if the user doesn't enter information within a 15 second period, it
times out. I am going to be using pycharm and not the shell. Thanks in
advance.
--
https://mail.python.org/mailman/listinfo/python-list
This works, but does not do exactly what I want. What I want to happen is :
when the user enters in a correct answer, the program and threading stops. Any
ideas on what I should change?
import time
from threading import Thread
class Answer(Thread):
def run(self):
a=input("What
This works, but does not do exactly what I want. When the user enters in a
correct answer, the program and threading stops. Any ideas on what I should
change?
import time
from threading import Thread
class Answer(Thread):
def run(self):
a=input("What is your answer:")
if a=
I have some success with this. I am not sure if this would work longer term,
as in restarting it, but so far so good. Any issue with this new code?
import time
from threading import Thread
th=Thread()
class Answer(Thread):
def run(self):
a=input("What is your answer:")
if a
.
How to write the query in python by using mongoengine
Thanks
Mahesh D.
--
https://mail.python.org/mailman/listinfo/python-list
Thanks!
On Fri 24 Aug, 2018, 9:01 PM Kunal Jamdade,
wrote:
> Hi Mahesh,
>
> Import Q from queryset.
>
> from mongoengine.queryset.visitor import Q
>
> ProcessedEmails.objects(Q(first_date) & Q(second_date))
>
>
>
> On Fri, Aug 24, 2018 at 12:41 PM mahesh
On Tuesday, 2 August 2016 16:13:01 UTC+1, Robin Becker wrote:
> A reportlab user found he was doing the wrong thing by calling canvas.save
> repeatedly, our documentation says you should not use Canvas objects after
> the
> save method has been used. The user had mixed results :(
>
> It would
[EMAIL PROTECTED] wrote:
> After recently getting excited about the possibilities that stackless
> python has to offer
> (http://harkal.sylphis3d.com/2005/08/10/multithreaded-game-scripting-with-stackless-python/)
> and then discovering that the most recent version of stackless
> available on stack
Jaroslaw Zabiello wrote:
> Dnia 24 Sep 2005 22:48:40 -0700, [EMAIL PROTECTED] napisał(a):
>
>
>>You should give TurboGears a try.
>
> This project is good only for fun and playing not for enterprise.
That's my kind of project :)
--
http://mail.python.org/mailman/listinfo/python-list
Igor V. Rafienko wrote:
> This gave me the desired behaviour, but:
>
> * It looks *very* ugly
> * It's twice as slow as version which sees 'end'-events only.
>
> Now, there *has* to be a better way. What am I missing?
>
Try emailing the author for support.
--
http://mail.python.org/mailman/lis
Reinhold Birkenfeld wrote:
> D H wrote:
>
>>Igor V. Rafienko wrote:
>>
>>>This gave me the desired behaviour, but:
>>>
>>>* It looks *very* ugly
>>>* It's twice as slow as version which sees 'end'-events only.
>>>
&g
Reinhold Birkenfeld wrote:
>
> Well, if I had e.g. a question about Boo, I would of course first ask
> here because I know the expert writes here.
>
> Reinhold
Reinhold Birkenfeld also wrote:
> If I had wanted to say "you have opinions? fuck off!", I would have said
>"you have opinions? fuck
D H wrote:
> Reinhold Birkenfeld wrote:
>
>>
>> Well, if I had e.g. a question about Boo, I would of course first ask
>> here because I know the expert writes here.
>>
>> Reinhold
>
>
> Reinhold Birkenfeld also wrote:
> > If I had wanted to sa
Reinhold Birkenfeld wrote:
> D H wrote:
>
>>D H wrote:
>>
>>>Reinhold Birkenfeld wrote:
>>>
>>>
>>>>Well, if I had e.g. a question about Boo, I would of course first ask
>>>>here because I know the expert writes here.
>&g
Reinhold Birkenfeld wrote:
> D H wrote:
>
>>Reinhold Birkenfeld wrote:
>>
>>>D H wrote:
>>>
>>>
>>>>D H wrote:
>>>>
>>>>
>>>>>Reinhold Birkenfeld wrote:
>>>>>
>>>>>
>
Fredrik Lundh wrote:
> Doug Holton wrote:
>
>
>>You're the only one making any association between this thread about
>>celementree and boo.
>
>
> really? judging from the Original-From header in your posts, your internet
> provider is sure making the same association...
You seriously need som
Grant Edwards wrote:
> On 2005-09-25, D H <[EMAIL PROTECTED]> wrote:
>
>>>>Igor V. Rafienko wrote:
>>>>
>>>>
>>>>>This gave me the desired behaviour, but:
>>>>>
>>>>>* It looks *very* ugly
>>&
Fredrik Lundh wrote:
> Paul Boddie wrote:
>
>
>>Regardless of anyone's alleged connection with Boo or newsgroup
>>participation level, the advice to contact the package
>>author/maintainer is sound. It happens every now and again that people
>>post questions to comp.lang.python about fairly speci
Grant Edwards wrote:
> On 2005-09-25, D H <[EMAIL PROTECTED]> wrote:
>
>
>>>>I would recommend emailing the author of a library when you
>>>>have a question about that library. You should know that
>>>>yourself as well.
>>>
>>
James A. Donald wrote:
> I am contemplating getting into Python, which is used by engineers I
> admire - google and Bram Cohen, but was horrified to read
>
> "no variable or argument declarations are necessary."
>
> Surely that means that if I misspell a variable name, my program will
> mysteriou
Do Re Mi chel La Si Do wrote:
> Hi !
>
> On the site of Amber : http://xamber.org/index.html
> We can to view the sentence : "Parrot version of Python"
> Question : what is "Parrot version of Python" ?
>
Parrot is a virtual machine runtime, like the java vm or .NET CLR.
http://www.parrotcode.o
spiffo wrote:
> Ok, I LOVE python, so that is not the issue, but, I am getting very worried
> about it's growth. I recently re-visted the web looking at alot of projects
> I assumed would be up and running by now from over a year ago, such as Boa
> Constructor, Iron Python etc... it seems all these
Istvan Albert wrote:
> Disclaimer: this is not a flame against Boo.
>
> It just boggles my mind that a language that describes itself as
> "python inspired syntax" keeps being touted as:
>
>
>>Luis M. Gonzalez wrote:
>>Boo (which could be considered almost an static version of Python for .NET)
>
Fredrik Lundh wrote:
> Joerg Schuster wrote:
>
>
>>>if you want to know why 100 is a reasonable and non-random choice, I
>>>suggest checking the RE documentation for "99 groups" and the special
>>>meaning of group 0.
>>
>>I have read everything I found about Python regular expressions. But I
>>am
[EMAIL PROTECTED] wrote:
> brenden wrote:
>
>>hey everyonei'm new to all this programming and all this stuff and
>>i just wanted to learn how to do it...
>>
>>does anyone think they can teach me how to work with python?
>
>
> Don't waste readers' time with such vague and broad requests. Inst
Ask wrote:
>
> I found a link to this newsgroup, downloaded 1000 messages,
You might check out the python-tutor list if you have beginner
questions: http://mail.python.org/mailman/listinfo/tutor
> I must admit to much confusion regarding some of the basics, but I'm sure
> time, reading, and
On Mon, 2005-11-07 at 07:57 -0800, john boy wrote:
> I am having trouble with the following example used in a tutorial:
>
> print "Halt !"
> s = raw_input ("Who Goes there? ")
> print "You may pass,", s
at this print line you need to do
print "you may pass, %s" % s
this will allow you to enter
to implement DCC support.
Please check in when we have added that feature, we might have added some
threading.
Thanks,
Nick D.
http://circe.nick125.com
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 538 matches
Mail list logo