Re: Considering migrating to Python from Visual Basic 6 for engineering applications

2016-02-17 Thread paul . hermeneutic
On Wed, Feb 17, 2016 at 12:49 PM, wrote: > Could someone kindly tell me advantages and disadvantages of Python? Or any > better options? I have like 40-50 VB Forms and may be around 2 lines of > code. It will be a task to learn a new language and

Simple tkinter query about creating a tk,StringVar() failure

2016-02-06 Thread paul . hermeneutic
I know this may be more suited to the tutor list. I tried to subscribe, but no response yet. Why does this interactive instantiation fail when it seems to work when run in a script? (py35-64) C:\src\pygui>python Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit

Re: Daemon strategy

2016-02-06 Thread paul . hermeneutic
> As Ben already said .. either deploy to Unix systems or use > subprocess.Popen and detach the process: > > from subprocess import Popenfrom win32process import DETACHED_PROCESS > Popen(["YOURPROCESS"],creationflags=DETACHED_PROCESS,shell=True) This sounds promising. What are the common methods

Re: Daemon strategy

2016-02-06 Thread paul . hermeneutic
On Fri, Feb 5, 2016 at 4:10 PM, Ben Finney wrote: > paul.hermeneu...@gmail.com writes: > >> On Fri, Feb 5, 2016 at 11:52 AM, Ben Finney >> wrote: >> > Since MS Windows lacks those facilities, ‘python-daemon’ can't use >> > them. >> >> As

Daemon strategy

2016-02-05 Thread paul . hermeneutic
It appears that python-deamon would be exactly what I need. Alas, appears not to run on Windows. If I am wrong about that, please tell me. To what tools should I turn? I am not eager to produce a "service" on Windows unless it cannot be avoided. --

Re: Daemon strategy

2016-02-05 Thread paul . hermeneutic
On Fri, Feb 5, 2016 at 11:52 AM, Ben Finney wrote: > paul.hermeneu...@gmail.com writes: > >> It appears that python-deamon would be exactly what I need. Alas, >> appears not to run on Windows. If I am wrong about that, please tell >> me. > > You're correct that

Re: psss...I want to move from Perl to Python

2016-01-28 Thread paul . hermeneutic
On Thu, Jan 28, 2016 at 5:01 PM, Fillmore wrote: > > I learned myself Perl as a scripting language over two decades ago. All > through this time, I would revert to it from time to time whenever I needed > some text manipulation and data analysis script. > > My

Re: Stop writing Python 4 incompatible code

2016-01-16 Thread paul . hermeneutic
On Sat, Jan 16, 2016 at 7:48 AM, Bernardo Sulzbach wrote: > Did people know this back then or it just surfaced years later? I > suppose that at the beginning MS was more "vulnerable" than it is > today. This was either pre- or early days of the Web which provided to

Re: Pyton install Landmine

2016-01-16 Thread paul . hermeneutic
On Fri, Jan 15, 2016 at 2:49 PM, JeffP wrote: > Hi > I installed pyth3.5 on my Windows machine and had some complications trying > to connect other components. > I installed to the default directory chosen by the installer but that > included a folder with an embedded space in

Re: We will be moving to GitHub

2016-01-01 Thread paul . hermeneutic
Mark, it is good to know that a decision has been made so that we can move forward. Is there a summary document that discusses the options examined and why others did not meet the requirements? I am -NOT- trying to dredge up arguments about the choice. I am guessing that there have been some. If

Re: Python.Exe Problem

2016-01-01 Thread paul . hermeneutic
Daniel, after the download, please be sure to verify the MD5 checksum to know that the download is correct. On Tue, Dec 29, 2015 at 1:44 PM, Terry Reedy wrote: > On 12/29/2015 11:24 AM, Daniel Lee wrote: > >> Hello, >> >> When I try to run python.exe on my computer with

Re: Stupid Python tricks

2016-01-01 Thread paul . hermeneutic
On Wed, Dec 30, 2015 at 11:09 PM, Steven D'Aprano wrote: > On Thu, 31 Dec 2015 04:02 pm, Rick Johnson wrote: > > >> Fifteen years later, and Tim Peters' Stupid Python Trick is still the > >> undisputed champion! > > > > And should we be happy about that revelation, or sad? >

Re:

2015-12-31 Thread paul . hermeneutic
Please provide a few more clues about the problem. What is the problem? On Thu, Dec 31, 2015 at 1:05 PM, ebuka ogbonnaya wrote: > I use window 7 (32-bit). so i dont know what else to do. please i need a > solution to that > -- >

Re: [ANN] MicroPython 1.5

2015-11-08 Thread paul . hermeneutic
What is the possibility that MicroPython could be another build from the base python.org sources? Python already gets built for a variety of architectures. Could a MicroPython be another one? In that way, it would always be up to date on language changes. On Sun, Nov 8, 2015 at 11:28 AM, Paul

Interacting with a web site, which lib?

2015-09-27 Thread paul . hermeneutic
Does anyone have an opinion on the relative merits of using the following packages to interact with web sites? Mechanize - cannot run under Python 3 Requests Robobrowser -- https://mail.python.org/mailman/listinfo/python-list

Failed to upgrade pip in fresh 2.7 install

2015-09-26 Thread paul . hermeneutic
After a fresh install of Python 2.7 32-bit and 64-bit, upgrading pip using pip fails. Am I doing this incorrectly? Any suggestions? C:\Python27-32\Scripts>pip install --upgrade pip You are using pip version 7.0.1, however version 7.1.2 is available. You should consider upgrading via the 'pip

Re: Failed to upgrade pip in fresh 2.7 install

2015-09-26 Thread paul . hermeneutic
Joel, no need for elevated (Administrator) execution. I did need to follow Zachary's suggestion and it worked well. -- https://mail.python.org/mailman/listinfo/python-list

Re: Readlines returns non ASCII character

2015-09-23 Thread paul . hermeneutic
If this starts at the beginning of the file, then it indicates that the file is UTF-16 (LE). UTF-8[t 1] EF BB BF 239 187 191 UTF-16 (BE)FE FF 254 255 UTF-16 (LE)FF FE 255 254 UTF-32 (BE)00 00 FE FF0 0 254 255 UTF-32 (LE)FF FE 00 00255 254 0 0

Re: Readlines returns non ASCII character

2015-09-23 Thread paul . hermeneutic
After looking at this briefly, I am not sure that this is a plain-text file. Interpreting it as UTF-16 LE shows that the characters are as they appear. Immediately after the BOM is: SINGLE LOW-9 QUOTATION MARK' (U+201A) START OF HEADING (U+0001) SPACE (U+0020) SPACE (U+0020) LATIN SMALL LETTER Y

Re: Readlines returns non ASCII character

2015-09-23 Thread paul . hermeneutic
After looking at this briefly, I am not sure that this is a plain-text file. Interpreting it as UTF-16 LE shows that the characters are as they appear. Immediately after the BOM is: SINGLE LOW-9 QUOTATION MARK' (U+201A) START OF HEADING (U+0001) SPACE (U+0020) SPACE (U+0020) LATIN SMALL LETTER Y

Cannot create a virtualenv

2015-09-14 Thread paul . hermeneutic
- I downloaded and installed Python 3.5 64-bit onto a Windows 7 64-bit machine. - Using `pip install virtualenv` worked fine. - Now, it is time to create a virtualenv, but it is not working fine. - I had to add Python 3.5 to the PATH. - Any suggestions? C:\ve>virtualenv -p "\Program Files\Python

Cannot create a virtualenv

2015-09-13 Thread paul . hermeneutic
Installing Py 3.5 and `pip install virtualenv` worked fine. However, I cannot create a virtualenv. "OSError: Command C:\ve\ve33\Scripts\python.exe -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip wheel failed with error code 1" Any suggestions? --