Re: Python 3.6 on Windows - does a python3 alias get created by installation?

2019-10-11 Thread Eryk Sun
On 10/11/19, Gisle Vanem wrote: > > An "alias" could also simply be created using: >doskey python3=f:\ProgramFiles\Python36\python.exe That's a console alias [1], which gets evaluated by the console host process (conhost.exe) when the target process does a normal read via ReadConsoleW or Read

Re: Python 3.6 on Windows - does a python3 alias get created by installation?

2019-10-11 Thread Gisle Vanem
Eryk Sun wrote: The simplest way to create a shell link is via the Windows GUI shell, Explorer. To inherit the working directory of the parent process, leave the link's "start in" field empty. Also, add ".LNK" to the system PATHEXT environment variable to allow finding link files without having

Re: Odd delays when cwd is on a network mount

2019-10-11 Thread Cameron Simpson
On 12Oct2019 14:04, Greg Ewing wrote: Cameron Simpson wrote: Python's default sys.path includes the current working directory. Only in an interactive session, where it usually makes sense. Personally, I would not consider this: % python3 -c 'import sys;print(repr(sys.path))' ['', '/Users

Re: question about making an App for Android

2019-10-11 Thread pyotr filipivich
Dennis Lee Bieber on Fri, 11 Oct 2019 20:05:03 -0400 typed in comp.lang.python the following: > >* To support my practically unused 8" SCT {especially in cloudy Michigan}{I >also need to find some sort of battery holders that will fit the fork arms >-- the originals have cracked at the ends and d

Re: Odd delays when cwd is on a network mount

2019-10-11 Thread Eryk Sun
On 10/11/19, Cameron Simpson wrote: > > Python's default sys.path includes the current working directory. > (Worse: at the front!) Python normally sets the script directory at the front of sys.path to allow a script to override site paths and the standard library. If you're running the REPL, ther

Re: 3.7.4 (latest) install changes python to py and removes pip support

2019-10-11 Thread Eryk Sun
On 10/11/19, Jim Elphick wrote: > I upgraded my Python 3.7.3 windows install to 3.7.4 using the windows > download from python.org. > > After the install, the keyword "python" will no longer invoke python. > "python3" also fails. "py" is now the only access to python. "python3" would normally fa

Re: Odd delays when cwd is on a network mount

2019-10-11 Thread Gregory Ewing
Cameron Simpson wrote: Python's default sys.path includes the current working directory. Only in an interactive session, where it usually makes sense. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: Odd delays when cwd is on a network mount

2019-10-11 Thread Cameron Simpson
On 11Oct2019 11:06, Tobiah wrote: On 10/11/19 10:56 AM, Tobiah wrote: I have a directory mounted with sshfs over a 5mb connection. It's quite usable under most circumstances. When I run python from a directory under that mount, imports from local directories are quite slow: $ python2.7 impor

Re: sqlalchemy & #temp tables

2019-10-11 Thread Albert-Jan Roskam
On 8 Oct 2019 07:49, Frank Millman wrote: On 2019-10-07 5:30 PM, Albert-Jan Roskam wrote: > Hi, > > I am using sqlalchemy (SA) to access a MS SQL Server database (python 3.5, > Win 10). I would like to use a temporary table (preferably #local, but > ##global would also be an option) to store

Re: question about making an App for Android

2019-10-11 Thread Eli the Bearded
In comp.lang.python, Dennis Lee Bieber wrote: > pyotr filipivich declaimed the following: >> "A simple program" to divide the amount of "today's" daylight into 12 >> even '"hours", so that Dawn begins the First hour, the third hour is >> mid-morning, noon is the middle of the day, the ninth hour

3.7.4 (latest) install changes python to py and removes pip support

2019-10-11 Thread Jim Elphick
I upgraded my Python 3.7.3 windows install to 3.7.4 using the windows download from python.org. After the install, the keyword "python" will no longer invoke python. "python3" also fails. "py" is now the only access to python. py -version returns Python 3.7.4

RE: 3.7.4 (latest) install changes python to py and removes pip support

2019-10-11 Thread Jim Elphick
Follow up to previous email. I was able to get a working version of python 3.7.4 on Windows. Steps to resolve: 1. Uninstalled Python Launcher from my Windows machine 2. Uninstalled Python 3.7.3 ( many uninstalls and re-installs) 3. Deleted Python37 folder 4. Using python installer

Re: Odd delays when cwd is on a network mount

2019-10-11 Thread Tobiah
On 10/11/19 10:56 AM, Tobiah wrote: I have a directory mounted with sshfs over a 5mb connection. It's quite usable under most circumstances. When I run python from a directory under that mount, imports from local directories are quite slow: $ python2.7 import my_module ## takes 25 seconds to

Odd delays when cwd is on a network mount

2019-10-11 Thread Tobiah
I have a directory mounted with sshfs over a 5mb connection. It's quite usable under most circumstances. When I run python from a directory under that mount, imports from local directories are quite slow: $ python2.7 import my_module ## takes 25 seconds to complete my_module.__file__ /local/d

Re: question about making an App for Android

2019-10-11 Thread Akkana Peck
> pyotr filipivich > >"A simple program" to divide the amount of "today's" daylight into 12 > >even '"hours", so that Dawn begins the First hour, the third hour is > >mid-morning, noon is the middle of the day, the ninth hour mid after > >noon, and the twelfth hour ends at sunset. Is simple, no?

Re: question about making an App for Android

2019-10-11 Thread pyotr filipivich
Chris Angelico on Fri, 11 Oct 2019 10:43:53 +1100 typed in comp.lang.python the following: >On Fri, Oct 11, 2019 at 10:40 AM pyotr filipivich wrote: >> Chris Angelico on Fri, 11 Oct 2019 09:49:03 +1100 >> typed in comp.lang.python the following: >> >On Fri, Oct 11, 2019 at 9:41 AM Dennis Lee B

Re: Error: thrift.transport.TTransport.TTransportException: Could not start SASL: b'Error in sasl_client_start (-4) SASL(-4): no mechanism available: Unable t

2019-10-11 Thread Rhodri James
On 11/10/2019 15:13, Prabakaran Hadoop wrote: Thanks for your reply. Any work around or any other way to achieve from python to prestosql . If there is, it'll be in the GitHub issue I linked to. I just applied Google to your question. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.

Re: Curious about library inclusion

2019-10-11 Thread Rhodri James
On 10/10/2019 12:40, Antoon Pardon wrote: About including piped iterators: http://code.activestate.com/recipes/580625-collection-pipeline-in-python/ On 10/10/19 13:00, Paul Moore wrote: As another measure, look at various other libraries on PyPI and ask yourself why *this* library needs to

Re: Error: thrift.transport.TTransport.TTransportException: Could not start SASL: b'Error in sasl_client_start (-4) SASL(-4): no mechanism available: Unable t

2019-10-11 Thread Prabakaran Hadoop
> Rhodri James *-* Kynesim Ltd Thanks for your reply. Any work around or any other way to achieve from python to prestosql . -- https://mail.python.org/mailman/listinfo/python-list

Re: Error: thrift.transport.TTransport.TTransportException: Could not start SASL: b'Error in sasl_client_start (-4) SASL(-4): no mechanism available: Unable t

2019-10-11 Thread Rhodri James
On 11/10/2019 11:27, prabakaranbigd...@gmail.com wrote: python> conn = hive.Connection(host="xx.xx.xxx.xxx",port=8889,username='hadoop') C:\Users\Nova15>python Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" o

Suppress tooltips in Pygal charts

2019-10-11 Thread Roy Hann
Following up on Elijah's suggestion responding to my earlier question about drawing gauges in a mobile (i.e. not normally internet connected) application on a Raspberry Pi I am using Pygal and rendering to SVG. I have found no way to stop Pygal from generating SVG that downloads and invokes JavaSc

Error: thrift.transport.TTransport.TTransportException: Could not start SASL: b'Error in sasl_client_start (-4) SASL(-4): no mechanism available: Unable t

2019-10-11 Thread prabakaranbigdata
python> conn = hive.Connection(host="xx.xx.xxx.xxx",port=8889,username='hadoop') C:\Users\Nova15>python Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> from pyhive import h

Re: python -m pip install and pip install

2019-10-11 Thread Pankaj Jangid
Chris Angelico writes: > ‪On Fri, Oct 11, 2019 at 3:37 PM ‫אורי‬‎ wrote:‬ >> >> When you upgrade pip, you have to write: >> >> python -m pip install --upgrade pip >> >> When you install or upgrade anything else, you can write "pip install". >> >> You can't upgrade pip using "pip install --upgrad