Re: Python 3.6 Embedded

2020-05-13 Thread matheusdalmago10
On Monday, December 26, 2016 at 5:27:33 AM UTC-2, jumppan...@gmail.com wrote: > I'm using the python3.6 DLL to embed Python 3 inside a Windows application. > > Here is some background into how Python is being used. > > 1. Firstly the same basic code worked fine with the earlier Python 2.7 > vers

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

2019-10-12 Thread Wesley Peng
smart.thanks. On 2019/10/12 12:19 下午, Gisle Vanem wrote: An "alias" could also simply be created using:   doskey python3=f:\ProgramFiles\Python36\python.exe -- https://mail.python.org/mailman/listinfo/python-list

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: Python 3.6 on Windows - does a python3 alias get created by installation?

2019-10-09 Thread Eryk Sun
On 10/9/19, Malcolm Greene wrote: > > @Dan: Yes, symlinks would be a good work around. Assuming the file system supports symlinks (e.g. NTFS, but not FAT32), a relative symlink in the directory beside python.exe works fine, e.g. "python3.exe" -> "python.exe". Putting the symlink in another direct

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

2019-10-09 Thread Malcolm Greene
Thanks Paul and Dan. @Paul: Yes, it *IS* a bit confusing . Your pip explanation hit the spot. @Dan: Yes, symlinks would be a good work around. Malcolm -- https://mail.python.org/mailman/listinfo/python-list

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

2019-10-09 Thread Paul Moore
No, the Windows builds do not provide versioned executables (python3.exe or python3.7.exe). Generally, the recommended way to launch Python on Windows is via the py.exe launcher (py -3.7, or just py for the default), but if you have Python on your PATH then python works. The reason pip has version

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

2019-10-09 Thread Dan Purgert
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Malcolm Greene wrote: > I'm jumping between Linux, Mac and Windows environments. On Linux and > Mac we can invoke Python via python3 but on Windows it appears that > only python works. Interestingly, Windows supports both pip and pip3 > flavors. Am I

Re: Python 3.6 Logging time is not listed

2018-08-20 Thread dieter
Keep Secret writes: > On Monday, 13 August 2018 19:42:57 UTC+2, Léo El Amri wrote: >> On 13/08/2018 19:23, MRAB wrote: >> > Here you're configuring the logger, setting the name of the logfile and >> > the logging level, but not specifying the format, so it uses the default >> > format: >> > >> >

Re: Python 3.6 Logging time is not listed

2018-08-20 Thread Keep Secret
On Monday, 13 August 2018 19:42:57 UTC+2, Léo El Amri wrote: > On 13/08/2018 19:23, MRAB wrote: > > Here you're configuring the logger, setting the name of the logfile and > > the logging level, but not specifying the format, so it uses the default > > format: > > > >> logging.basicConfig(filenam

Re: Python 3.6 Logging time is not listed

2018-08-13 Thread MRAB
On 2018-08-13 17:37, Keep Secret wrote: #!/usr/bin/env python3 import logging Here you're configuring the logger, setting the name of the logfile and the logging level, but not specifying the format, so it uses the default format: logging.basicConfig(filename='example.log',level=logging.DE

Re: Python 3.6 Logging time is not listed

2018-08-13 Thread Alexandre Brault
On 2018-08-13 12:37 PM, Keep Secret wrote: > #!/usr/bin/env python3 > import logging > logging.basicConfig(filename='example.log',level=logging.DEBUG) > logging.basicConfig(format='%(asctime)s;%(levelname)s:%(message)s', > level=logging.DEBUG) > logging.debug('Message1) > logging.info('Message2')

Re: Python 3.6 can find cairo libs but not Python 2.7

2018-07-13 Thread Peter Otten
D'Arcy Cain wrote: > On 2018-07-13 10:28 AM, Peter Otten wrote: >> As far as I can see -- without having access to a netbsd machine -- this > > Would it help if I gave you a login on one? Sorry, no. > Interestingly, I don't have this issue on my NetBSD machine built from > HEAD. Maybe it is s

Re: Python 3.6 can find cairo libs but not Python 2.7

2018-07-13 Thread D'Arcy Cain
On 2018-07-13 10:28 AM, Peter Otten wrote: > As far as I can see -- without having access to a netbsd machine -- this Would it help if I gave you a login on one? Interestingly, I don't have this issue on my NetBSD machine built from HEAD. Maybe it is something that was fixed but not pulled up t

Re: Python 3.6 can find cairo libs but not Python 2.7

2018-07-13 Thread Peter Otten
D'Arcy Cain wrote: > On 2018-07-13 08:05 AM, Peter Otten wrote: >> D'Arcy Cain wrote: >>> Nope. Both are 64 bit. >> >> Just to be 100% sure, what does >> >> $ python2.7 -c 'import struct; print(struct.calcsize("l"))' >> >> $ python3.6 -c 'import struct; print(struct.calcsize("l"))' >> >> prin

Re: Python 3.6 can find cairo libs but not Python 2.7

2018-07-13 Thread D'Arcy Cain
On 2018-07-13 08:05 AM, Peter Otten wrote: > D'Arcy Cain wrote: >> Nope. Both are 64 bit. > > Just to be 100% sure, what does > > $ python2.7 -c 'import struct; print(struct.calcsize("l"))' > > $ python3.6 -c 'import struct; print(struct.calcsize("l"))' > > print? $ python2.7 -c 'import stru

Re: Python 3.6 can find cairo libs but not Python 2.7

2018-07-13 Thread Peter Otten
D'Arcy Cain wrote: > On 2018-07-12 07:41 PM, Peter Otten wrote: >> Wild guess: one Python is 64 bit and the other is 32 bit, and you have >> only one version of the library installed. > > Nope. Both are 64 bit. Just to be 100% sure, what does $ python2.7 -c 'import struct; print(struct.calcsiz

Re: Python 3.6 can find cairo libs but not Python 2.7

2018-07-13 Thread D'Arcy Cain
On 2018-07-12 07:41 PM, Peter Otten wrote: > Wild guess: one Python is 64 bit and the other is 32 bit, and you have only > one version of the library installed. Nope. Both are 64 bit. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetwo

Re: Python 3.6 can find cairo libs but not Python 2.7

2018-07-13 Thread D'Arcy Cain
On 2018-07-12 04:17 PM, Terry Reedy wrote: > On 7/12/2018 3:52 PM, D'Arcy Cain wrote: >> $ python2.7 -c "import ctypes.util; >> print(ctypes.util.find_library('cairo'))" >> libcairo.so.2 >> $ python3.6 -c "import ctypes.util; >> print(ctypes.util.find_library('cairo'))" >> None >> >> I have the 3.6

Re: Python 3.6 can find cairo libs but not Python 2.7

2018-07-12 Thread Peter Otten
D'Arcy Cain wrote: > $ python2.7 -c "import ctypes.util; > print(ctypes.util.find_library('cairo'))" > libcairo.so.2 > $ python3.6 -c "import ctypes.util; > print(ctypes.util.find_library('cairo'))" > None > > I have the 3.6 version of py-cairo installed. Any thoughts? > > NetBSD 7.1.2 Wild gu

Re: Python 3.6 can find cairo libs but not Python 2.7

2018-07-12 Thread Terry Reedy
On 7/12/2018 3:52 PM, D'Arcy Cain wrote: $ python2.7 -c "import ctypes.util; print(ctypes.util.find_library('cairo'))" libcairo.so.2 $ python3.6 -c "import ctypes.util; print(ctypes.util.find_library('cairo'))" None I have the 3.6 version of py-cairo installed. Any thoughts? NetBSD 7.1.2 wha

Re: Python 3.6 causes error, python 3.5 does not.

2018-05-21 Thread Jim
On 05/20/2018 02:03 PM, Jim wrote: Mint 18 Libreoffice 5.1.6.2 Python 3.6.5 in one virtual environment Python 3.5.2 in another I am writing a script that uses pyautogui to get some data and paste it into a Libreoffice calc file, there by bypassing the complexity of uno. The problem is it runs

Re: Python 3.6 causes error, python 3.5 does not.

2018-05-21 Thread dieter
Jim writes: > ... > The problem is it runs fine if I use python 3.5. If I use python 3.6 > it opens the calc file then pops up a dialog saying > "std::bad_alloc". This looks like a C++ error message -- maybe from "calc". It also looks quite severe (some memory allocation problem). Therefore, it

Re: Python 3.6: How to expand f-string literals read from a file vs inline statement

2018-03-23 Thread Steven D'Aprano
On Fri, 23 Mar 2018 10:39:05 -0600, Malcolm Greene wrote: >> Perhaps it doesn't need to be said, but just to be sure: don't use eval >> if you don't trust the people writing the configuration file. They can >> do nearly unlimited damage to your environment.  They are writing code >> that you are

Re: Python 3.6: How to expand f-string literals read from a file vs inline statement

2018-03-23 Thread Ned Batchelder
On 3/23/18 12:39 PM, Malcolm Greene wrote: Perhaps it doesn't need to be said, but just to be sure: don't use eval if you don't trust the people writing the configuration file. They can do nearly unlimited damage to your environment.  They are writing code that you are running. Of course! Sc

Re: Python 3.6: How to expand f-string literals read from a file vs inline statement

2018-03-23 Thread Malcolm Greene
> Perhaps it doesn't need to be said, but just to be sure: don't use eval if > you don't trust the people writing the configuration file. They can do nearly > unlimited damage to your environment.  They are writing code that you are > running. Of course! Script and config file are running in a

Re: Python 3.6: How to expand f-string literals read from a file vs inline statement

2018-03-23 Thread Ned Batchelder
On 3/23/18 4:30 AM, Malcolm Greene wrote: Looking for advice on how to expand f-string literal strings whose values I'm reading from a configuration file vs hard coding into my script as statements. I'm using f-strings as a very simple template language. I'm currently using the following techniqu

Re: Python 3.6: How to expand f-string literals read from a file vs inline statement

2018-03-23 Thread Chris Angelico
On Fri, Mar 23, 2018 at 7:37 PM, Malcolm Greene wrote: > My original post reformatted for text mode: > > Looking for advice on how to expand f-string literal strings whose values I'm > reading from a configuration file vs hard coding into > my script as statements. I'm using f-strings as a very s

Re: Python 3.6: How to expand f-string literals read from a file vs inline statement

2018-03-23 Thread Malcolm Greene
My original post reformatted for text mode: Looking for advice on how to expand f-string literal strings whose values I'm reading from a configuration file vs hard coding into my script as statements. I'm using f-strings as a very simple template language. I'm currently using the following tech

Re: Python 3.6

2018-03-07 Thread Rhodri James
On 07/03/18 14:07, Jeremy Jamar St. Julien wrote: How do i open python 3.6 in a console and how do i see the binary its running with Can you give us a little more information? What operating system are you using? When you say "console", do you mean whatever passes for a terminal window on

Re: Python 3.6 fails to install to non-standard directory under Linux (Posting On Python-List Prohibited)

2018-03-02 Thread bsferrazza
On Friday, March 2, 2018 at 12:27:17 PM UTC-8, Lawrence D’Oliveiro wrote: > On Saturday, March 3, 2018 at 6:42:05 AM UTC+13, bsfer...@avnera.com wrote: > > > ... > > File "/nfs/home/myuser/lfs/sources/Python-3.6.4/Lib/shutil.py", line 476, > > in rmtree > > ... > > NFS trouble? > > I have had

Re: Python 3.6 fails to install to non-standard directory under Linux

2018-03-02 Thread bsferrazza
Here's my configure I need to set ac_cv_fun_utimensat=no and ac_cv_func_futimens=no because presumably the file-system or kernel on my system doesn't support nanosecond timestamps. With these options, and patching the configure/setup.py files to remove references to /usr/lib/ncursesw and replac

Re: Python 3.6 printing crashing on OS X 10.12.4

2017-04-10 Thread Ray Cote
On Wed, Apr 5, 2017 at 3:40 PM, Python wrote: > Le 05/04/2017 à 20:14, Ray Cote a écrit : > >> Hello: >> >> Python 3.6 crashing when trying to print from the environment. >> >> $ python >> Python 3.6.1 (default, Mar 22 2017, 15:53:21) >> [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)]

Re: Python 3.6 printing crashing on OS X 10.12.4

2017-04-05 Thread Python
Le 05/04/2017 à 20:14, Ray Cote a écrit : Hello: Python 3.6 crashing when trying to print from the environment. $ python Python 3.6.1 (default, Mar 22 2017, 15:53:21) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin Type "help", "copyright", "credits" or "license" for more i

Re: Python 3.6 installation doesn't add launcher to PATH

2017-02-26 Thread eryk sun
On Sun, Feb 26, 2017 at 3:09 PM, ChrisW wrote: > On Saturday, 25 February 2017 07:21:30 UTC, eryk sun wrote: >> On Fri, Feb 24, 2017 at 12:38 PM, ChrisW wrote: >> > However, I've installed Python 3.6 with the 'include PATH' checkbox ticked >> > for my user only, and although C:\Windows\py.exe exi

Re: Python 3.6 installation doesn't add launcher to PATH

2017-02-26 Thread ChrisW
On Saturday, 25 February 2017 07:21:30 UTC, eryk sun wrote: > On Fri, Feb 24, 2017 at 12:38 PM, ChrisW wrote: > > However, I've installed Python 3.6 with the 'include PATH' checkbox ticked > > for my user only, and although C:\Windows\py.exe exists, it has not been > > added to my PATH. > > > > I

Re: Python 3.6 installation doesn't add launcher to PATH

2017-02-26 Thread ChrisW
On Friday, 24 February 2017 18:09:01 UTC, Irmen de Jong wrote: > On 24-2-2017 13:38, ChrisW wrote: > > The installation guidelines for Python 3.6 say: > > > > "Per-user installations of Python do not add the launcher to PATH unless > > the option was selected on installation." > > (https://docs

Re: Python 3.6 installation doesn't add launcher to PATH

2017-02-24 Thread eryk sun
On Fri, Feb 24, 2017 at 12:38 PM, ChrisW wrote: > However, I've installed Python 3.6 with the 'include PATH' checkbox ticked > for my user only, and although C:\Windows\py.exe exists, it has not been > added to my PATH. > > I also tried installing for all users, and this also doesn't add it to the

Re: Python 3.6 installation doesn't add launcher to PATH

2017-02-24 Thread Irmen de Jong
On 24-2-2017 13:38, ChrisW wrote: > The installation guidelines for Python 3.6 say: > > "Per-user installations of Python do not add the launcher to PATH unless the > option was selected on installation." > (https://docs.python.org/3/using/windows.html#from-the-command-line). > > However, I've

Re: Python 3.6 Installation

2017-01-18 Thread Michael Torrie
On 01/18/2017 10:59 AM, eryk sun wrote: > On Wed, Jan 18, 2017 at 6:23 AM, Terry Reedy wrote: >> Not everyone has run Windows update since the current runtime was released. > > Python's installer tries (and sometimes fails) to install the > KB2999226 update, which installs an old version of the U

Re: Python 3.6 Installation

2017-01-18 Thread eryk sun
On Wed, Jan 18, 2017 at 6:23 AM, Terry Reedy wrote: > Not everyone has run Windows update since the current runtime was released. Python's installer tries (and sometimes fails) to install the KB2999226 update, which installs an old version of the Universal CRT. Some installers instead bundle the

Re: Python 3.6 Installation

2017-01-17 Thread Terry Reedy
On 1/17/2017 11:32 PM, Michael Torrie wrote: On 01/17/2017 07:12 PM, Steven D'Aprano wrote: On Wednesday 18 January 2017 12:30, Michael Torrie wrote: Yes googling error messages is a good idea. However the SO link seems to describe this problem as a missing DLL, probably the VS 2015 runtime re

Re: Python 3.6 Installation

2017-01-17 Thread Michael Torrie
On 01/17/2017 07:12 PM, Steven D'Aprano wrote: > On Wednesday 18 January 2017 12:30, Michael Torrie wrote: > >> Yes googling error messages is a good idea. However the SO link seems to >> describe this problem as a missing DLL, probably the VS 2015 runtime >> redistributable library. If this is t

Re: Python 3.6 Installation

2017-01-17 Thread Steven D'Aprano
On Wednesday 18 January 2017 12:30, Michael Torrie wrote: > Yes googling error messages is a good idea. However the SO link seems to > describe this problem as a missing DLL, probably the VS 2015 runtime > redistributable library. If this is the problem, why isn't Python's > installer bundling th

Re: Python 3.6 Installation

2017-01-17 Thread Michael Torrie
On 01/17/2017 03:31 PM, Terry Reedy wrote: > On 1/17/2017 1:23 PM, Earl Izydore wrote: >> I having problems installing Python 3.6. I was using Python 2.7 >> successfully. >> >> Today, I installed python-3.6.0.exe. > > Which binary? from where? > >> At the end of the installation I got a message

Re: Python 3.6 Installation

2017-01-17 Thread Terry Reedy
On 1/17/2017 1:23 PM, Earl Izydore wrote: I having problems installing Python 3.6. I was using Python 2.7 successfully. Today, I installed python-3.6.0.exe. Which binary? from where? At the end of the installation I got a message saying the installation was successful. When attempt to star

Re: Python 3.6 on Centos 6

2016-12-24 Thread thinkwell
> What version of the sqlite3 libraries do you have? See > https://github.com/ghaering/pysqlite/issues/85 for example. > > -- > regards, > kushal I was using the system default for Centos 6 which is 3.6.20. I loaded a parallel version and now got 3.6 to build. Thanks! -- https://mail.python.o

Re: Python 3.6 on Centos 6

2016-12-24 Thread Kushal Kumaran
thinkwell writes: > I'm trying to build Python 3.6 on Centos 6, and am successful in doing > so, except for the sqlite3 library. I started with a brand new install > of Centos 6 and installed devtoolset-2 to build with a newer > compiler. But whether with default compiler or 4.82, I get the > fol