making a class callable

2011-03-03 Thread dude
I've been struggling with getting my class to behave the way I want
it.

I have python module called ohYeah.py, defined as follows...
#File Begin
class foo:

def __init__(self, arg1):
print arg1
self.ohYeah = arg1

def whatwhat(self):
return self.ohYeah
#EOF

My goal is to be able to instantiate the class foo from another python
module, like so:

# Example Usage
f = foo("wow")
j = foo("amazing")
f.whatwhat()
wow
j.whatwhat()
amazing
#

However, I always get the "module not callable" error.  After entering
a "def __call__" method in class foo, still get the same problem.  Can
someone please point me in the right direction for being able to
achieve the Example Usage above?  I'm sure there is something trivial
I'm missing, but after digging around online for a day, I couldn't
find the missing piece.  Thanks in advance.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: making a class callable

2011-03-03 Thread dude
On Mar 3, 6:07 pm, MRAB  wrote:
> On 04/03/2011 01:45, dude wrote:
>
>
>
> > I've been struggling with getting my class to behave the way I want
> > it.
>
> > I have python module called ohYeah.py, defined as follows...
> > #File Begin
> > class foo:
>
> >      def __init__(self, arg1):
> >          print arg1
> >          self.ohYeah = arg1
>
> >      def whatwhat(self):
> >          return self.ohYeah
> > #EOF
>
> > My goal is to be able to instantiate the class foo from another python
> > module, like so:
>
> > # Example Usage
> > f = foo("wow")
> > j = foo("amazing")
> > f.whatwhat()
> > wow
> > j.whatwhat()
> > amazing
> > #
>
> > However, I always get the "module not callable" error.  After entering
> > a "def __call__" method in class foo, still get the same problem.  Can
> > someone please point me in the right direction for being able to
> > achieve the Example Usage above?  I'm sure there is something trivial
> > I'm missing, but after digging around online for a day, I couldn't
> > find the missing piece.  Thanks in advance.
>
> How are you importing it?
>
> It should be something like:
>
>      from ohYeah import foo
>
> BTW, the recommendation is for class names to be CamelCase and modules
> names to be lowercase.

That was the problem.  I was using:
import ohYeah

Thanks!
-- 
http://mail.python.org/mailman/listinfo/python-list


os.path.walk() to get full path of all files

2011-03-16 Thread dude
My goal is create a list of absolute paths for all files in a given
directory (any number of levels deep).

root
dir1
file1
file2
dir2
file3
dir3
-dir4
--file4
file5

So the above would return:
[root/dir1/file1, root/dir1/file2, root/dir1/dir2/file3, etc...]

I've been trying different ways of using os.path.walk() for that, but
I can't find an elegant way.  Anyone know of something simple to
accomplish that?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: os.path.walk() to get full path of all files

2011-03-16 Thread dude
awesome, that worked.  I'm not sure how the magic is working with your 
underscores there, but it's doing what I need.  thanks.
-- 
http://mail.python.org/mailman/listinfo/python-list


maybe a popen question... or something else?

2007-08-06 Thread dude
Working on Windows XP
Say I have a Windows executable, foo.exe.
foo.exe is a command line tool that can take a number of different
arguments and perform corresponding actions.

I want to invoke foo.exe from a Python script (using whatever will
work best).  I want to continuously pass arguments to foo.exe in
between doing other stuff from within my Python script.

Some pseudo code:

processHandle = invoke("foo.exe") # what python module should "invoke"
be here?

doUnrelatedStuff()

processHandle.passArgs("arg1 arg2") # The same foo.exe I invoked above
gets these args for processing

doMoreUnrelatedStuff()

processHandle.passArgs("arg3 arg4") # The same foo.exe I invoked above
gets these args for processing

processHandle.close() # "foo.exe is destroyed"

Thanks for any help.

-- 
http://mail.python.org/mailman/listinfo/python-list


Tkinter Label 'justify' Problem

2008-09-17 Thread Dude
Hi All,
I am fairly new to Python programming.  I am working on a small
Tkinter project and I think I am missing something, maybe you can
help.  The two lines below is all I have related to the Label widget:

lblServer = Tkinter.Label(serverFrame, text='Server:', fg='black',
justify='left', relief='groove')

lblServer.place_configure(width=200, bordermode='inside')


No matter what I change the 'justify' to whether it's 'lef', 'right',
or 'center', it always seems to be in the center.

I am also writing the keys from the Label widget to a file because
this has me so baffled.  That is below.

Thank in advance for any help or direction you can give me.

Steve P

-- lblServer keys -
activebackground : SystemButtonFace
activeforeground : SystemButtonText
anchor : center
background : SystemButtonFace
bd : 2
bg : SystemButtonFace
bitmap :
borderwidth : 2
compound : none
cursor :
disabledforeground : SystemDisabledText
fg : black
font : {MS Sans Serif} 8
foreground : black
height : 0
highlightbackground : SystemButtonFace
highlightcolor : SystemWindowFrame
highlightthickness : 0
image :
justify : left
padx : 1
pady : 1
relief : groove
state : normal
takefocus : 0
text : NNTP Server:
textvariable :
underline : -1
width : 0
wraplength : 0
-- lblServer keys END -
--
http://mail.python.org/mailman/listinfo/python-list


The following modules appear to be missing ['_sysconfigdata']

2019-01-08 Thread dude . jimbo
Hello,

first time using python groups (and long time since using any other group for 
that matter). This might not be the right group due to wx being involved.

Long story as short as possible. I have an old python script that I did ~10 
years ago, and have forgotten basically everything about Python since then 
(sorry!). Converted it to EXE way back when, and have kept using the EXE ever 
since then (on XP, and on Win7).

I've just gotten a new PC, Windows10 (!), needed to update the script, so 
needed to recompile the EXE, and now it no longer compiles/works. It was fine 
on Windows7 (I'm not specifically stating that the problem is with windows10 - 
I simply don't remember all the hoops I jumped through on my previous machine).

Here is the compile error:
The following modules appear to be missing
['_sysconfigdata']

And here is the runtime error:
Traceback (most recent call last):
  File "AutoArchive.py", line 3, in 
  File "wx\__init__.pyc", line 45, in 
  File "wx\_core.pyc", line 4, in 
  File "wx\_core_.pyc", line 12, in 
  File "wx\_core_.pyc", line 10, in __load
ImportError: DLL load failed: %1 is not a valid Win32 application.

Here is how I compile: python setup.py py2exe

And this is my setup.py:
from distutils.core import setup
import py2exe

setup(console=['AutoArchive.py'])

Yes, that says 'console' for a Windows EXE, but swapping it to 'window' didn't 
help. Besides which, the setup.py file is straight from the old computer, so 
'it used to work'.

What I have installed:
. python 2.7.13 (this in itself may be a problem - I don't even remember which 
version I was using earlier, other than knowing for sure it wasn't a 3.x 
release)
. wxpython  (since I also got an error that wx module was missing - that rang 
some bells, since the script uses a Windows pop-up window to inform me about 
its progress, and I remember using wx for that, so I installed it, but don't 
know how to get its' version. using "python -c "import wx;print wx.__version__" 
just gives runtime errors).

Any help would be appreciated.

And yes, I googled, but can't really find anything (well, d'Uh!, I wouldn’t be 
here then would I?) - there's ~some~ references, but usually it's about similar 
issues on Linux, with solutions that are not applicable at all. Except one I 
thought: I found some link stating that _sysconfigdata is part of sysconfig, 
and that this needed to be installed with pip, so I used the pip that came with 
my python distro and did 'pip install [[_]sys]config[data]' (all possible 
combo's) but pip claims it can't find said module, and TBH, I can't seem to 
find anything myself about said module.

Thx,
Jimbo
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: The following modules appear to be missing ['_sysconfigdata']

2019-01-09 Thread dude . jimbo
On Wednesday, January 9, 2019 at 6:06:35 AM UTC+1, Matthew Lemon wrote:
> Hi,
> 
> I would start from scratch with this.
> 
> 1. You have latest Python 2 version.
> 2. Use virtualenv to create and activate a new virtual environment.
> 3. pip install wxPython and other dependencies.
> 4. Get your application running from the command line first and follow up any 
> DLL exceptions.
> 5. Use pyinstaller (https://pyinstaller.readthedocs.io/en/stable/) to create 
> a new exe file once you know everything works. 
> 
> Matt
> 
> On 8 January 2019 10:38:16 GMT, I wrote:
> >Hello,
> >
> >first time using python groups (and long time since using any other
> >group for that matter). This might not be the right group due to wx
> >being involved.
> >
> >Long story as short as possible. I have an old python script that I did
> >~10 years ago, and have forgotten basically everything about Python
> >since then (sorry!). Converted it to EXE way back when, and have kept
> >using the EXE ever since then (on XP, and on Win7).
> >
> >I've just gotten a new PC, Windows10 (!), needed to update the script,
> >so needed to recompile the EXE, and now it no longer compiles/works. It
> >was fine on Windows7 (I'm not specifically stating that the problem is
> >with windows10 - I simply don't remember all the hoops I jumped through
> >on my previous machine).
> >
> >Here is the compile error:
> >The following modules appear to be missing
> >['_sysconfigdata']
> >
> >And here is the runtime error:
> >Traceback (most recent call last):
> >  File "AutoArchive.py", line 3, in 
> >  File "wx\__init__.pyc", line 45, in 
> >  File "wx\_core.pyc", line 4, in 
> >  File "wx\_core_.pyc", line 12, in 
> >  File "wx\_core_.pyc", line 10, in __load
> >ImportError: DLL load failed: %1 is not a valid Win32 application.
> >
> >Here is how I compile: python setup.py py2exe
> >
> >And this is my setup.py:
> >from distutils.core import setup
> >import py2exe
> >
> >setup(console=['AutoArchive.py'])
> >
> >Yes, that says 'console' for a Windows EXE, but swapping it to 'window'
> >didn't help. Besides which, the setup.py file is straight from the old
> >computer, so 'it used to work'.
> >
> >What I have installed:
> >. python 2.7.13 (this in itself may be a problem - I don't even
> >remember which version I was using earlier, other than knowing for sure
> >it wasn't a 3.x release)
> >. wxpython  (since I also got an error that wx module was missing -
> >that rang some bells, since the script uses a Windows pop-up window to
> >inform me about its progress, and I remember using wx for that, so I
> >installed it, but don't know how to get its' version. using "python -c
> >"import wx;print wx.__version__" just gives runtime errors).
> >
> >Any help would be appreciated.
> >
> >And yes, I googled, but can't really find anything (well, d'Uh!, I
> >wouldn’t be here then would I?) - there's ~some~ references, but
> >usually it's about similar issues on Linux, with solutions that are not
> >applicable at all. Except one I thought: I found some link stating that
> >_sysconfigdata is part of sysconfig, and that this needed to be
> >installed with pip, so I used the pip that came with my python distro
> >and did 'pip install [[_]sys]config[data]' (all possible combo's) but
> >pip claims it can't find said module, and TBH, I can't seem to find
> >anything myself about said module.
> >
> >Thx,
> >Jimbo
> >-- 
> >https://mail.python.org/mailman/listinfo/python-list
> 
> -- 
> Sent from my Android device

Thx for your feedback. I am a tad afraid you're giving me a bit too much credit 
though; it's all a bit Chinese to me. (I'm not Chinese, BTW, but I'm not making 
up these expressions myself so there's that).

Step 2 you've lost me already. What is virtualenv, and why do I need it (this 
time round, not last time when I got it to work)? You don’t really need to 
respond, this is more of a rethorical question :).

Step 3 is I think the real issue. At first I was missing 'wx' and 
'_sysconfigdata', so I installed wxPhyton (via a windows installer that I 
found, not with pip), and that made the compile error go away (though it still 
throws runtime errors, of course). But what is '_sysconfigdata', and how do I 
install it? I - and pip :) - can't find a repo with that name!?

step 5, pyinstaller, is yet another hurdle I hope to avoid. It worked with 
py2exe, and it should still work with py2exe (within the efforts I'm prepared 
to put into this). Of course py2exe might be ancient and horrible and a bunch 
of other things that pyinstaller is not (I woulnd't know either way), but, to 
be honest, as well a tad cocky, I am not interested nor prepared to find out. 
Sorry about that, but hopefully one can understand. I'm not trying to 'get back 
into Python' , I just want something from the past back working again with 
minimal effort.

Trying to get it to work in console sounds like a (backup) plan though. I don't 
really need the 'progress' popup window, so I could keep the script

Re: The following modules appear to be missing ['_sysconfigdata']

2019-01-10 Thread dude . jimbo
Well that escalated quickly :).

So, no-one can tell me which component to pip to get rid of "missing 
['_sysconfigdata']" error?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: The following modules appear to be missing ['_sysconfigdata']

2019-01-11 Thread dude . jimbo
Really, no-one?

OK, more purging then. I ~think~ I need said missing component because the 
script gets the system date (to run once on a Friday, in automatic mode). But 
I've never used it in automatic mode (since I came to my senses about having an 
infinite looping script in my autoexec.bat, doing nothing, except executing 
once on a friday, and wasting resources).

So, if I scrap the automatic mode, I guess I might finally have something that 
'works'.

Still disappointed though that I can't get it to work again with the same 
'tools' as previously. Especially since I also use the date to add to the name 
of the backup files that the script is making.

Oh, as for 'distributing' this thing. It's a private/personal script, so I'm my 
only customer. In this sense, I don't even need the EXE now that I've scrapped 
automatic mode. I can just run the *.py straight from a console. Oh well.

Would anyone be interested in seeing the - now infamous - script, to have a go 
yourself?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: The following modules appear to be missing ['_sysconfigdata']

2019-01-11 Thread dude . jimbo
Oh, another thing. I installed WX via a windows installer that I found (can't 
find the link again, but fairly certain it was this one: 
https://sourceforge.net/projects/wxpython/ (*)), without giving it much thought 
(yesyes bad mistake).

Since I get wx runtime errors, I'm assuming I have the wrong version. So, in 
all my 45-yo youthful ignorance, I ran 'pip install -U wxPython' hoping it 
would magically erase the previously installed version - whatever that is - and 
get me the newest one. What actually happens is the cmd-window freezing, and 
nothing else…

(*) The 'proper' method to install it, I obviously found on 
"https://wiki.wxpython.org/How%20to%20install%20wxPython#Windows";, but that led 
me to 'pip', which at that moment in time - 2 days ago LOL - I was not ready 
for yet (Hey, I'm doing this in between actual work, putting kids in bed, and 
passing out on the sofa)
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: The following modules appear to be missing ['_sysconfigdata']

2019-01-11 Thread dude . jimbo
OK, stop the presses. Or, rather, refresh your browser, I guess.

In a 'what the !@$$ am I doing'-moment (I don't get those often) I uninstalled 
everything and went gardening. But it was raining so I installed everything 
again, this time using pip for wxpython. Lo and behond, this time it did not 
crash the cmd-window, but in stead it successfully installed it.

Woot.

Then I compiled again with same command and same setup.py and - stubbornly - 
with py2exe, and got… different errors! That's actually a good sign. No, really.

Because this time, the error was about missing Windows DLLs and here I got 
plenty of help from my best friend Google (don't tell JackD he's actually 
second best friend). So, after x iterations I ended up with the following cute 
setup.py:
<-
from distutils.core import setup
import py2exe

setup(console=['AutoArchive.py'],

  options={
'py2exe': { 
'dll_excludes': ['api-ms-win-core-string-l1-1-0.dll', 
'api-ms-win-core-psapi-l1-1-0.dll', 'api-ms-win-core-registry-l1-1-0.dll',
 'api-ms-win-core-localization-l1-2-0.dll', 
'api-ms-win-security-base-l1-1-0.dll', 
'api-ms-win-core-string-obsolete-l1-1-0.dll',
 'api-ms-win-core-delayload-l1-1-0.dll', 
'api-ms-win-core-handle-l1-1-0.dll', 'api-ms-win-crt-private-l1-1-0.dll',
 'api-ms-win-core-libraryloader-l1-2-1.dll', 
'api-ms-win-core-memory-l1-1-0.dll', 'api-ms-win-core-heap-obsolete-l1-1-0.dll',
 'api-ms-win-core-atoms-l1-1-0.dll', 
'api-ms-win-core-processthreads-l1-1-1.dll', 'api-ms-win-core-heap-l2-1-0.dll',
 'api-ms-win-core-delayload-l1-1-1.dll', 
'api-ms-win-core-processthreads-l1-1-0.dll', 
'api-ms-win-core-com-midlproxystub-l1-1-0.dll',
 'api-ms-win-crt-string-l1-1-0.dll', 
'api-ms-win-crt-runtime-l1-1-0.dll', 'api-ms-win-core-libraryloader-l1-2-0.dll',
 'api-ms-win-core-errorhandling-l1-1-0.dll', 
'api-ms-win-core-string-l2-1-0.dll', 'api-ms-win-core-synch-l1-2-0.dll',
 'api-ms-win-core-profile-l1-1-0.dll', 
'api-ms-win-core-synch-l1-1-0.dll', 
'api-ms-win-core-threadpool-legacy-l1-1-0.dll',
 'api-ms-win-core-interlocked-l1-1-0.dll', 
'api-ms-win-core-debug-l1-1-0.dll', 'api-ms-win-core-sysinfo-l1-1-0.dll']
  }
 },
  )
->

After which all the missing DLL errors were finally gone (and no, I don’t wanna 
know why all of the above is even necessary). Success!! Or not? Because I was 
now right back at:

<-
The following modules appear to be missing
['Carbon.Appearance', '_sysconfigdata']
->

You cannot possibly be serious!? _sysconfigdata is back… with a friend!

Luckily it was still raining so my plan to blow up the PC in my garden fire pit 
(and dancing hysterically around the glorious resulting bonfire, while in the 
nude) got scrapped, which allowed me to notice that an actual dist folder had 
in fact been created, and not just that, there was an EXE inside!

So I ran it.

and it worked.

It worked!

It did exactly what it needed to do. Just like on my old machine. I even got 
the fancy progress popup and the date string in my file names.

(At this point I ~did~ dance in the nude, albeit in front of the PC)

So what lessons did I learn:
1) compile errors apparently mean Sweet-BLEEP-All;
2) close the curtains when dancing naked around the PC;
3) the back of modern day PCs, which typically sit at groin height on your 
desk, get really hot at the back. Avoid contact with exposed body parts;
4) there's clearly a reason why I 'gave up on Python' those 10 years ago, and 
perhaps I'm slowly starting to remember why… :|

Jimbo.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: The following modules appear to be missing ['_sysconfigdata']

2019-01-11 Thread dude . jimbo
OK, stop the presses. Or, rather, refresh your browser, I guess.

In a 'what the !@#$ am I doing'-moment (I don't get those often) I uninstalled 
everything and went gardening. But it was raining so I installed everything 
again, this time using pip for wxpython. Lo and behond, this time it did not 
crash the cmd-window, but in stead it successfully installed it.

Woot.

Then I compiled again with same command and same setup-py and - stubbornly - 
with py2exe, and got… different errors! That's actually I good sign. No, really.

Because this time, the error was about missing Windows DLLs and for these I got 
plenty of help from my best friend Google (don't tell JackD he's actually 
second best friend). So, after x iterations I ended up with the following cute 
setup.py:
<-
from distutils.core import setup
import py2exe

setup(console=['AutoArchive.py'],

  options={
'py2exe': { 
'dll_excludes': ['api-ms-win-core-string-l1-1-0.dll', 
'api-ms-win-core-psapi-l1-1-0.dll', 'api-ms-win-core-registry-l1-1-0.dll',
 'api-ms-win-core-localization-l1-2-0.dll', 
'api-ms-win-security-base-l1-1-0.dll', 
'api-ms-win-core-string-obsolete-l1-1-0.dll',
 'api-ms-win-core-delayload-l1-1-0.dll', 
'api-ms-win-core-handle-l1-1-0.dll', 'api-ms-win-crt-private-l1-1-0.dll',
 'api-ms-win-core-libraryloader-l1-2-1.dll', 
'api-ms-win-core-memory-l1-1-0.dll', 'api-ms-win-core-heap-obsolete-l1-1-0.dll',
 'api-ms-win-core-atoms-l1-1-0.dll', 
'api-ms-win-core-processthreads-l1-1-1.dll', 'api-ms-win-core-heap-l2-1-0.dll',
 'api-ms-win-core-delayload-l1-1-1.dll', 
'api-ms-win-core-processthreads-l1-1-0.dll', 
'api-ms-win-core-com-midlproxystub-l1-1-0.dll',
 'api-ms-win-crt-string-l1-1-0.dll', 
'api-ms-win-crt-runtime-l1-1-0.dll', 'api-ms-win-core-libraryloader-l1-2-0.dll',
 'api-ms-win-core-errorhandling-l1-1-0.dll', 
'api-ms-win-core-string-l2-1-0.dll', 'api-ms-win-core-synch-l1-2-0.dll',
 'api-ms-win-core-profile-l1-1-0.dll', 
'api-ms-win-core-synch-l1-1-0.dll', 
'api-ms-win-core-threadpool-legacy-l1-1-0.dll',
 'api-ms-win-core-interlocked-l1-1-0.dll', 
'api-ms-win-core-debug-l1-1-0.dll', 'api-ms-win-core-sysinfo-l1-1-0.dll']
  }
 },
  )
->

After which all the missing DLL errors were finally gone (and no, I don’t wanna 
know why all of the above is even necessary). Success!! Or not? Because I was 
now right back at:

<-
The following modules appear to be missing
['Carbon.Appearance', '_sysconfigdata']
->

You cannot possibly be serious!? _sysconfigdata is back… with a friend!

Luckily it was still raining so my plan to blow up the PC in my garden fire pit 
(and dancing hysterically around the glorious resulting bonfire, while in the 
nude) got scrapped, which allowed me to notice that an actual dist folder had 
in fact been created, and not just that, there was an EXE inside!

So I ran it.

and it worked.

It worked!

It did exactly what it needed to do. Just like on my old machine. I even got 
the fancy progress popup and the date string in my file names.

(At this point I ~did~ dance in the nude, albeit in front of the PC)

So what lessons did I learn:
1) compile errors apparently mean Sweet-BLEEP-All;
2) close the curtains when dancing naked around the PC;
3) the back of modern day PCs, which typically sit at groin height on your 
desk, get really hot at the back. Avoid contact with exposed and/or dangling 
body parts;
4) there's clearly a reason why I 'gave up on Python' those 10 years ago, and 
perhaps I'm slowly starting to remember why… :|

Jimbo.
-- 
https://mail.python.org/mailman/listinfo/python-list


Multiple separate py2exe executables and library.zip

2009-03-01 Thread The Dude
  Hello,

  Each invocation of py2exe creates an executable along with a number of
other files which need to be distributed with it, including library.zip. I
noticed that compiling different scripts creates different, and incompatible
library.zip-s. Suppose I need a directory that contains the result of
*separate* py2exe calls, then - how can there be a library.zip that fits
them all?

  Thanks & Bye,

  TD
--
http://mail.python.org/mailman/listinfo/python-list


Opening for Python Programmer at Newport Beach

2009-03-03 Thread Cool Dude
Hello ,
This is Aniket from Techclique, a New Jersey based software
development and IT consulting firm providing top quality technical and
software professionals on a permanent and contractual basis to
Government and commercial customer including fortune 500 companies and
most of states and federal governments. I am contacting you to see if
you are comfortable to the skills mentioned below, please forward
resume to this e-mail address [email protected]

Position : Python programmer
Location : Newport Beach
Duration : 6+month

I need local people (or someone that can be here QUICKLY for an in
person interview).
 Communication MUST be perfect!

Plus submit with 3 professional references I can call I check myself.
MUST BE MANAGERS THEY REPORTED TO!! No candidate will be submitted
without a reference check. I need names ASAP. I only have today before
other people get this.


Position Summary

We are seeking a Python programmer with web-based development
experience to assist with developing web based applications. The
successful candidate should have excellent Python programming skills
(with web development and dynamically generated charts/plots in
particular) and working knowledge of Linux/UNIX Shell Scripts and SQL.
Knowledge of Python integration with C/C++ - a definite plus.

Selected candidate will be working with our ABS/MBS trade desk to
develop and enhance applications used by Fixed Income Portfolio
Management. You will assist in the design, construction and
enhancement of applications used. Qualified candidates must possess a
four-year college degree with a preferred major in Computer Science,
Computer Engineering, or other technical/IT degree. A strong
familiarity with Python on Linux; recent (2007) experience is
required. Knowledge with web technologies including Apache, JavaScript/
AJAX, CSS, HTML, designing, coding, and testing web based applications
a plus. Programming experience in C++ is also a plus.

Our selected individual must be a team player, be self-motivated, and
have excellent verbal communication skills. In addition, the ability
to project manage and work within a team environment will be critical
to being successful in this role. Experience in the Securities
industry, preferably Fixed Income is a plus.

Qualifications/Requirements
* 3+ years of Python programming on Linux/Unix platform; recent (2007)
required
* Programming skills building forms, lay-outs, charts, and graphing
required
* Designing, coding, and testing web based applications preferred.
* Strong organizational, oral and written communications skills
* High energy/self starter with the ability to work independently
within the firm*s demanding and highly focused environment


Thanks & Regards,
Aniket
Techclique Inc.
Jersey City, NJ
Email: [email protected]
Yahoo IM : [email protected]
Contact No : 732-357-3844
--
http://mail.python.org/mailman/listinfo/python-list


Opening for Python Programmer at Newport Beach

2009-03-03 Thread Cool Dude
Hello ,
This is Aniket from Techclique, a New Jersey based software
development and IT consulting firm providing top quality technical and
software professionals on a permanent and contractual basis to
Government and commercial customer including fortune 500 companies and
most of states and federal governments. I am contacting you to see if
you are comfortable to the skills mentioned below, please forward
resume to this e-mail address [email protected]

Python Programmer (someone with industry knowledge/asset mgt)
Location: Newport Beach, CA (Need Local)
Duration: 6+ months
Note: Communication MUST be perfect!, Plus submit with 3 professional
references

Python programming skills (with web development and dynamically
generated charts/plots in particular) and working knowledge of Linux/
UNIX Shell Scripts and SQL.
Knowledge of Python integration with C/C++ - a definite plus.

Qualifications/Requirements
* 3+ years of Python programming on Linux/Unix platform; recent (2007)
required
* Programming skills building forms, lay-outs, charts, and graphing
required
* Designing, coding, and testing web based applications preferred.
* Strong organizational, oral and written communications skills
* High energy/self starter with the ability to work independently
within the firm*s demanding and highly focused environment


Thanks & Regards,
Aniket
Techclique Inc.
Jersey City, NJ
Email: [email protected]
Yahoo IM : [email protected]
Contact No : 732-357-3844
--
http://mail.python.org/mailman/listinfo/python-list


Opening for Python Programmer at Newport Beach

2009-03-03 Thread Cool Dude
Hello ,
This is Aniket from Techclique, a New Jersey based software
development and IT consulting firm providing top quality technical and
software professionals on a permanent and contractual basis to
Government and commercial customer including fortune 500 companies and
most of states and federal governments. I am contacting you to see if
you are comfortable to the skills mentioned below, please forward
resume to this e-mail address [email protected]

Python Programmer (someone with industry knowledge/asset mgt)
Location: Newport Beach, CA (Need Local)
Duration: 6+ months
Note: Communication MUST be perfect!, Plus submit with 3 professional
references

Python programming skills (with web development and dynamically
generated charts/plots in particular) and working knowledge of Linux/
UNIX Shell Scripts and SQL.
Knowledge of Python integration with C/C++ - a definite plus.

Qualifications/Requirements
* 3+ years of Python programming on Linux/Unix platform; recent (2007)
required
* Programming skills building forms, lay-outs, charts, and graphing
required
* Designing, coding, and testing web based applications preferred.
* Strong organizational, oral and written communications skills
* High energy/self starter with the ability to work independently
within the firm*s demanding and highly focused environment


Thanks & Regards,
Aniket
Techclique Inc.
Jersey City, NJ
Email: [email protected]
Yahoo IM : [email protected]
Contact No : 732-357-3844
--
http://mail.python.org/mailman/listinfo/python-list


Opening for Python Programmer at Newport Beach

2009-03-03 Thread Cool Dude
Hello ,
This is Aniket from Techclique, a New Jersey based software
development and IT consulting firm providing top quality technical and
software professionals on a permanent and contractual basis to
Government and commercial customer including fortune 500 companies and
most of states and federal governments. I am contacting you to see if
you are comfortable to the skills mentioned below, please forward
resume to this e-mail address [email protected]

Python Programmer (someone with industry knowledge/asset mgt)
Location: Newport Beach, CA (Need Local)
Duration: 6+ months
Note: Communication MUST be perfect!, Plus submit with 3 professional
references

Python programming skills (with web development and dynamically
generated charts/plots in particular) and working knowledge of Linux/
UNIX Shell Scripts and SQL.
Knowledge of Python integration with C/C++ - a definite plus.

Qualifications/Requirements
* 3+ years of Python programming on Linux/Unix platform; recent (2007)
required
* Programming skills building forms, lay-outs, charts, and graphing
required
* Designing, coding, and testing web based applications preferred.
* Strong organizational, oral and written communications skills
* High energy/self starter with the ability to work independently
within the firm*s demanding and highly focused environment


Thanks & Regards,
Aniket
Techclique Inc.
Jersey City, NJ
Email: [email protected]
Yahoo IM : [email protected]
Contact No : 732-357-3844
--
http://mail.python.org/mailman/listinfo/python-list


Opening for Python Programmer at Newport Beach

2009-03-03 Thread Cool Dude
Hello ,
This is Aniket from Techclique, a New Jersey based software
development and IT consulting firm providing top quality technical and
software professionals on a permanent and contractual basis to
Government and commercial customer including fortune 500 companies and
most of states and federal governments. I am contacting you to see if
you are comfortable to the skills mentioned below, please forward
resume to this e-mail address [email protected]

Python Programmer (someone with industry knowledge/asset mgt)
Location: Newport Beach, CA (Need Local)
Duration: 6+ months
Note: Communication MUST be perfect!, Plus submit with 3 professional
references

Python programming skills (with web development and dynamically
generated charts/plots in particular) and working knowledge of Linux/
UNIX Shell Scripts and SQL.
Knowledge of Python integration with C/C++ - a definite plus.

Qualifications/Requirements
* 3+ years of Python programming on Linux/Unix platform; recent (2007)
required
* Programming skills building forms, lay-outs, charts, and graphing
required
* Designing, coding, and testing web based applications preferred.
* Strong organizational, oral and written communications skills
* High energy/self starter with the ability to work independently
within the firm*s demanding and highly focused environment


Thanks & Regards,
Aniket
Techclique Inc.
Jersey City, NJ
Email: [email protected]
Yahoo IM : [email protected]
Contact No : 732-357-3844
--
http://mail.python.org/mailman/listinfo/python-list


Can anyone help me run python scripts with http.server?

2015-09-06 Thread tropical . dude . net
Hello everyone,

I want to use python for web development but I
could not configure my Apache server to run python
with the guides I found on the internet.

Can anyone help me configure http.server
to run python scripts?

I ran the command python -m http.server --cgi to start the http server,
and if I put index.html, I will see the page but if I use
index.py, it doesn't show the page, I can only see the
directory listing of the files and when I click on 
index.py, it doesn't run the code, I can see it just
like in the editor.

Can anyone help me out?

Thanks in advance.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread tropical . dude . net
On Sunday, September 6, 2015 at 2:16:04 PM UTC+2, Laura Creighton wrote:
> In a message of Sun, 06 Sep 2015 04:50:23 -0700, [email protected] 
> wr
> ites:
> >Hello everyone,
> >
> >I want to use python for web development but I
> >could not configure my Apache server to run python
> >with the guides I found on the internet.
> >
> >Can anyone help me configure http.server
> >to run python scripts?
> >
> >I ran the command python -m http.server --cgi to start the http server,
> >and if I put index.html, I will see the page but if I use
> >index.py, it doesn't show the page, I can only see the
> >directory listing of the files and when I click on 
> >index.py, it doesn't run the code, I can see it just
> >like in the editor.
> >
> >Can anyone help me out?
> >
> >Thanks in advance.
> 
> What operating system are you running?  It sounds to me as if you haven't
> configured apache to add a Handler for python scripts, or you have, but
> forgot to restart apache after you did so.
> 
> Laura

I am using Windows 7, I followed the instructions, modified httpd.conf
many times, restarted apache many times till I gave up
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread tropical . dude . net
On Sunday, September 6, 2015 at 2:16:04 PM UTC+2, Laura Creighton wrote:
> In a message of Sun, 06 Sep 2015 04:50:23 -0700, [email protected] 
> wr
> ites:
> >Hello everyone,
> >
> >I want to use python for web development but I
> >could not configure my Apache server to run python
> >with the guides I found on the internet.
> >
> >Can anyone help me configure http.server
> >to run python scripts?
> >
> >I ran the command python -m http.server --cgi to start the http server,
> >and if I put index.html, I will see the page but if I use
> >index.py, it doesn't show the page, I can only see the
> >directory listing of the files and when I click on 
> >index.py, it doesn't run the code, I can see it just
> >like in the editor.
> >
> >Can anyone help me out?
> >
> >Thanks in advance.
> 
> What operating system are you running?  It sounds to me as if you haven't
> configured apache to add a Handler for python scripts, or you have, but
> forgot to restart apache after you did so.
> 
> Laura

I am using Windows 7, I followed the instructions, modified httpd.conf
many times, restarted apache many times till I gave up
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread tropical . dude . net
On Sunday, September 6, 2015 at 2:16:04 PM UTC+2, Laura Creighton wrote:
> In a message of Sun, 06 Sep 2015 04:50:23 -0700, wr
> ites:
> >Hello everyone,
> >
> >I want to use python for web development but I
> >could not configure my Apache server to run python
> >with the guides I found on the internet.
> >
> >Can anyone help me configure http.server
> >to run python scripts?
> >
> >I ran the command python -m http.server --cgi to start the http server,
> >and if I put index.html, I will see the page but if I use
> >index.py, it doesn't show the page, I can only see the
> >directory listing of the files and when I click on 
> >index.py, it doesn't run the code, I can see it just
> >like in the editor.
> >
> >Can anyone help me out?
> >
> >Thanks in advance.
> 
> What operating system are you running?  It sounds to me as if you haven't
> configured apache to add a Handler for python scripts, or you have, but
> forgot to restart apache after you did so.
> 
> Laura

I am using Windows 7, I followed the instructions, modified httpd.conf
many times, restarted apache many times till I gave up 
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread tropical . dude . net
On Sunday, September 6, 2015 at 1:51:00 PM UTC+2, [email protected] wrote:
> Hello everyone,
> 
> I want to use python for web development but I
> could not configure my Apache server to run python
> with the guides I found on the internet.
> 
> Can anyone help me configure http.server
> to run python scripts?
> 
> I ran the command python -m http.server --cgi to start the http server,
> and if I put index.html, I will see the page but if I use
> index.py, it doesn't show the page, I can only see the
> directory listing of the files and when I click on 
> index.py, it doesn't run the code, I can see it just
> like in the editor.
> 
> Can anyone help me out?
> 
> Thanks in advance.

Thanks for the replies, I know of django, I even saw some
youtube videos about it but it seems very complicated to me.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Can anyone help me run python scripts with http.server?

2015-09-06 Thread tropical . dude . net
On Sunday, September 6, 2015 at 2:46:42 PM UTC+2, Laura Creighton wrote:
> In a message of Sun, 06 Sep 2015 05:38:50 -0700, [email protected] 
> wr
> ites:
> 
> >> What operating system are you running?  It sounds to me as if you haven't
> >> configured apache to add a Handler for python scripts, or you have, but
> >> forgot to restart apache after you did so.
> >> 
> >> Laura
> >
> >I am using Windows 7, I followed the instructions, modified httpd.conf
> >many times, restarted apache many times till I gave up
> 
> I'm not a Windows user.  You are going to have to get help with this
> from somebody else.
> 
> Though I forgot to send you this list:
> https://wiki.python.org/moin/WebFrameworks/
> 
> if you decide that investigating Python web frameworks is what you want to
> do.
> 
> Laura

Thank you very much.

I will definitely look into python web frameworks in the future, they seem
complicated to me compared to php for example. I am looking for the simplest
way to test my python scripts till I understand better how it works and when
I can configure my own web server to run the framework because I want develop my
stuff offline.
-- 
https://mail.python.org/mailman/listinfo/python-list


Problem configuring apache to run python cgi on Ubuntu 14.04

2015-09-21 Thread tropical . dude . net
Hello everybody,

I installed the LAMP stack on in Ubuntu, but I am having
problems configuring Apache to run python CGI scripts.

I ran:
sudo a2enmod cgi

I added to apache2.conf

Options +ExecCGI
AddHandler cgi-script .py


I created index.py:
#!/usr/bin/env python
# -*- coding: UTF-8 -*-# enable debugging
import cgitb

cgitb.enable()
print("Content-Type: text/html;charset=utf-8")
print("Hello World!")

But it is still not working.

Can anybody help me out?

Thanks in advance.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Problem configuring apache to run python cgi on Ubuntu 14.04

2015-09-21 Thread tropical . dude . net
On Monday, September 21, 2015 at 9:20:22 PM UTC+2, [email protected] wrote:
> On Monday, September 21, 2015 at 11:41:54 AM UTC-7, [email protected] 
> wrote:
> > Hello everybody,
> > 
> > I installed the LAMP stack on in Ubuntu, but I am having
> > problems configuring Apache to run python CGI scripts.
> > 
> > I ran:
> > sudo a2enmod cgi
> > 
> > I added to apache2.conf
> > 
> > Options +ExecCGI
> > AddHandler cgi-script .py
> > 
> > 
> > I created index.py:
> > #!/usr/bin/env python
> > # -*- coding: UTF-8 -*-# enable debugging
> > import cgitb
> > 
> > cgitb.enable()
> > print("Content-Type: text/html;charset=utf-8")
> > print("Hello World!")
> > 
> > But it is still not working.
> > 
> > Can anybody help me out?
> > 
> > Thanks in advance.
> 
> "It isn't working" is about as useful as telling a mechanic "My car doesn't 
> work" without giving details on what exactly is happening.
> 
> What exactly isn't working?  What error message are you getting?
> 
> The first thing I would check is to make sure the permissions on index.py are 
> set to allow execution.  It is easy to forget to do that.

The error message that I am receiving in my browser is:
403: You don't have permission to access /index.py on this server.

The permissions of index.py is 755
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Problem configuring apache to run python cgi on Ubuntu 14.04

2015-09-21 Thread tropical . dude . net
On Monday, September 21, 2015 at 9:30:11 PM UTC+2, Albert Visser wrote:
> On Mon, 21 Sep 2015 20:41:13 +0200,  wrote:
> 
> > Hello everybody,
> >
> (...)
> >
> > I created index.py:
> > #!/usr/bin/env python
> > # -*- coding: UTF-8 -*-# enable debugging
> > import cgitb
> >
> > cgitb.enable()
> > print("Content-Type: text/html;charset=utf-8")
> > print("Hello World!")
> >
> > But it is still not working.
> >
> > Can anybody help me out?
> >
> > Thanks in advance.
> 
> Which Python are you running? If it's Python 3, change the shebang  
> accordingly because "python" is assuming Python 2.
> 
> -- 
> Vriendelijke groeten / Kind regards,
> 
> Albert Visser
> 
> Using Opera's mail client: http://www.opera.com/mail/

I am running python3.4
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Problem configuring apache to run python cgi on Ubuntu 14.04

2015-09-21 Thread tropical . dude . net
On Monday, September 21, 2015 at 9:41:29 PM UTC+2, John Gordon wrote:
> In <[email protected]> 
> [email protected] writes:
> 
> > print("Content-Type: text/html;charset=utf-8")
> > print("Hello World!")
> 
> As I recall, you must have a blank line between the headers and the
> content.
> 
> But that may or may not be your problem, as you haven't told us exactly
> what is going wrong.
> 
> -- 
> John Gordon   A is for Amy, who fell down the stairs
> [email protected]  B is for Basil, assaulted by bears
> -- Edward Gorey, "The Gashlycrumb Tinies"

I am new to Ubuntu, is there a command so I can find out what the problem is?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Problem configuring apache to run python cgi on Ubuntu 14.04

2015-09-21 Thread tropical . dude . net
On Monday, September 21, 2015 at 9:47:33 PM UTC+2, [email protected] wrote:
> On Monday, September 21, 2015 at 9:41:29 PM UTC+2, John Gordon wrote:
> > In <[email protected]> 
> > [email protected] writes:
> > 
> > > print("Content-Type: text/html;charset=utf-8")
> > > print("Hello World!")
> > 
> > As I recall, you must have a blank line between the headers and the
> > content.
> > 
> > But that may or may not be your problem, as you haven't told us exactly
> > what is going wrong.
> > 
> > -- 
> > John Gordon   A is for Amy, who fell down the stairs
> > [email protected]  B is for Basil, assaulted by bears
> > -- Edward Gorey, "The Gashlycrumb Tinies"
> 
> I am new to Ubuntu, is there a command so I can find out what the problem is?

The only error I can see right now is forbedden, you don't have permission to 
access /index.py on this server.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Problem configuring apache to run python cgi on Ubuntu 14.04

2015-09-21 Thread tropical . dude . net
On Monday, September 21, 2015 at 10:29:48 PM UTC+2, alister wrote:
> On Mon, 21 Sep 2015 12:51:09 -0700, tropical.dude.net wrote:
> 
> > On Monday, September 21, 2015 at 9:47:33 PM UTC+2, [email protected]
> > wrote:
> >> On Monday, September 21, 2015 at 9:41:29 PM UTC+2, John Gordon wrote:
> >> > In <[email protected]>
> >> > [email protected] writes:
> >> > 
> >> > > print("Content-Type: text/html;charset=utf-8")
> >> > > print("Hello World!")
> >> > 
> >> > As I recall, you must have a blank line between the headers and the
> >> > content.
> >> > 
> >> > But that may or may not be your problem, as you haven't told us
> >> > exactly what is going wrong.
> >> > 
> >> > --
> >> > John Gordon   A is for Amy, who fell down the stairs
> >> > [email protected]  B is for Basil, assaulted by bears
> >> > -- Edward Gorey, "The Gashlycrumb
> >> > Tinies"
> >> 
> >> I am new to Ubuntu, is there a command so I can find out what the
> >> problem is?
> > 
> > The only error I can see right now is forbedden, you don't have
> > permission to access /index.py on this server.
> 
> this is not a linux permissions error it is an error with the apache 
> configuration you need to check roe acache config files
> (you may also want to investigate WSGI as CGI is outdated) 
> 
> 
> 
> -- 
> Perfection is acheived only on the point of collapse.
> - C. N. Parkinson

Thank you very much. Can I write .py pages like in PHP or should I
use a framework like Django, Web2py or TurboGears? 
-- 
https://mail.python.org/mailman/listinfo/python-list


Calling DLL with several data fields in output params

2006-01-28 Thread Java script Dude
Hi,

I basically need to write a script that will make calls to a DLL and
parse the return result for API calls that consist of several data
fields in the input and output parameters.

[Questions]
[q1] Is ctypes the right Python library to use for this interaction.
. . . . . I know about calldll but it seems quite poorly documented.
[q2] Are there any existing windows DLLs that one could use to build
simplified test code.
. . . . . One that has several input and output parameters and playing
with it will not kill my system.
. . . . . Also, I'd rather not have to learn how to write a DLL to
build a test case.

BTY - I have not decided on the language yet but would love to do this
in Python. Although, I am considering writing in C++ (me_b_newbie) -or-
JNI (it_b_ugly) -or- Obj-C (it_b_cool). MS languages are not an option
in my book :}

Thanks,
JsD

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Calling DLL with several data fields in output params

2006-01-28 Thread Java script Dude
>Why wouldn't you just use the target DLL that you already have?

Still in the process of getting the software from the vendor.

However, I have had luck in playing around with win32 api and am now
getting the hang of using ctypes.

Looks like I am going down the Python road.

Thanks for the info :]

JsD

-- 
http://mail.python.org/mailman/listinfo/python-list