Aw: Re: pip/pip3 confusion and keeping up to date

2023-11-07 Thread Karsten Hilbert via Python-list
> > .From all the posts I gather the answer to my question is > > "simply": unpackaged-but-needed modules need to be packaged. > > I think there is one aspect that isn't getting consideration here. And > that is whether or not you want these packages installed in the default > system Python instal

Re: pip/pip3 confusion and keeping up to date

2023-11-06 Thread Thomas Passin via Python-list
On 11/6/2023 5:04 PM, Karsten Hilbert via Python-list wrote: Am Mon, Nov 06, 2023 at 02:43:47PM -0700 schrieb Mats Wichmann via Python-list: I had just hoped someone here might have a handy pointer for how to deal with modules having to be installed from pip for use with an apt-installed python

Re: pip/pip3 confusion and keeping up to date

2023-11-06 Thread Karsten Hilbert via Python-list
Am Mon, Nov 06, 2023 at 02:43:47PM -0700 schrieb Mats Wichmann via Python-list: > >I had just hoped someone here might have a handy pointer for > >how to deal with modules having to be installed from pip for > >use with an apt-installed python-based application. > > That just shouldn't happen - su

Re: pip/pip3 confusion and keeping up to date

2023-11-06 Thread Mats Wichmann via Python-list
On 11/6/23 14:28, Karsten Hilbert via Python-list wrote: I had just hoped someone here might have a handy pointer for how to deal with modules having to be installed from pip for use with an apt-installed python-based application. That just shouldn't happen - such packages are supposed to be

Re: pip/pip3 confusion and keeping up to date

2023-11-06 Thread Karsten Hilbert via Python-list
Am Mon, Nov 06, 2023 at 08:58:00AM +0100 schrieb Dieter Maurer: > I know that debian packagers create debian packages > from Python distributions not using the approach sketched above > and likely they have their reasons. > > You might want to discuss this on an `apt` related mailing list. Yeah,

Re: pip/pip3 confusion and keeping up to date

2023-11-06 Thread Karsten Hilbert via Python-list
Am Mon, Nov 06, 2023 at 01:17:11AM - schrieb Jon Ribbens via Python-list: > >> >> Are they not available in your system's package manager? > >> > > >> > ... this clearly often answers to "no" for applications of > >> > any complexity. > >> > > >> > Is there a suggested proper path to deal with

Re: pip/pip3 confusion and keeping up to date

2023-11-06 Thread Dieter Maurer via Python-list
Karsten Hilbert wrote at 2023-11-5 23:19 +0100: > ... >do you happen to know where to read up on how to fit a pip >constraint file into a Debian package creation workflow ? I have only rudimentary `apt` knowledge. I know it is quite flexible, e.g. it used to handle `flash` in a special way. I exp

Re: pip/pip3 confusion and keeping up to date

2023-11-05 Thread Jon Ribbens via Python-list
On 2023-11-05, Karsten Hilbert wrote: > Am Fri, Nov 03, 2023 at 01:53:32PM - schrieb Jon Ribbens via Python-list: > >> >> Are they not available in your system's package manager? >> > >> > ... this clearly often answers to "no" for applications of >> > any complexity. >> > >> > Is there a sugg

Re: pip/pip3 confusion and keeping up to date

2023-11-05 Thread Karsten Hilbert via Python-list
Am Sun, Nov 05, 2023 at 03:00:41PM + schrieb Chris Green via Python-list: > > * contact every single maintainer of every single one of the packages > > that needs updating and persuade them to update their packages and > > reassure them that you are getting all the other package main

Re: pip/pip3 confusion and keeping up to date

2023-11-05 Thread Karsten Hilbert via Python-list
Am Fri, Nov 03, 2023 at 01:53:32PM - schrieb Jon Ribbens via Python-list: > >> Are they not available in your system's package manager? > > > > ... this clearly often answers to "no" for applications of > > any complexity. > > > > Is there a suggested proper path to deal with that (Debian is >

Re: pip/pip3 confusion and keeping up to date

2023-11-05 Thread Karsten Hilbert via Python-list
Am Fri, Nov 03, 2023 at 05:26:06PM +0100 schrieb Dieter Maurer: > Karsten Hilbert wrote at 2023-11-3 14:47 +0100: > > ... > >> Are they not available in your system's package manager? > > > >... this clearly often answers to "no" for applications of > >any complexity. > > > >Is there a suggested p

Re: pip/pip3 confusion and keeping up to date

2023-11-05 Thread Chris Green via Python-list
Jon Ribbens wrote: > On 2023-11-03, Karsten Hilbert wrote: > > Am Thu, Nov 02, 2023 at 04:07:33PM -0600 schrieb Mats Wichmann via > > Python-list: > >> >So they now have only python3 and there is no python executable in > >> >PATH. > >> > >> FWIW, for this you install the little stub package pyt

Re: pip/pip3 confusion and keeping up to date

2023-11-05 Thread Jon Ribbens via Python-list
On 2023-11-05, Chris Green wrote: > Jon Ribbens wrote: >> On 2023-11-03, Karsten Hilbert wrote: >> > Am Thu, Nov 02, 2023 at 04:07:33PM -0600 schrieb Mats Wichmann via >> > Python-list: >> >> >So they now have only python3 and there is no python executable in >> >> >PATH. >> >> >> >> FWIW, for

Re: pip/pip3 confusion and keeping up to date

2023-11-05 Thread Jon Ribbens via Python-list
On 2023-11-03, Karsten Hilbert wrote: > Am Thu, Nov 02, 2023 at 04:07:33PM -0600 schrieb Mats Wichmann via > Python-list: >> >So they now have only python3 and there is no python executable in >> >PATH. >> >> FWIW, for this you install the little stub package python-is-python3. >> Especially if y

Re: pip/pip3 confusion and keeping up to date

2023-11-04 Thread Jon Ribbens via Python-list
On 2023-11-03, Karsten Hilbert wrote: > Am Thu, Nov 02, 2023 at 09:35:43PM - schrieb Jon Ribbens via Python-list: > > Regardless of ... > >> Because pip barely plays well by itself, let alone with other package >> managers at the same time. > > ... being true ... > >> > I do only install a few

Re: pip/pip3 confusion and keeping up to date

2023-11-04 Thread Karsten Hilbert via Python-list
Am Thu, Nov 02, 2023 at 04:07:33PM -0600 schrieb Mats Wichmann via Python-list: > >So they now have only python3 and there is no python executable in > >PATH. > > FWIW, for this you install the little stub package python-is-python3. > Especially if you > want to keep a python2 installation around

Re: pip/pip3 confusion and keeping up to date

2023-11-03 Thread Dieter Maurer via Python-list
Karsten Hilbert wrote at 2023-11-3 14:47 +0100: > ... >> Are they not available in your system's package manager? > >... this clearly often answers to "no" for applications of >any complexity. > >Is there a suggested proper path to deal with that (Debian is >of interest to me here) ? Complex appli

Re: pip/pip3 confusion and keeping up to date

2023-11-03 Thread Karsten Hilbert via Python-list
Am Thu, Nov 02, 2023 at 09:35:43PM - schrieb Jon Ribbens via Python-list: Regardless of ... > Because pip barely plays well by itself, let alone with other package > managers at the same time. ... being true ... > > I do only install a few things using pip. > > Are they not available in you

Re: pip/pip3 confusion and keeping up to date

2023-11-03 Thread Chris Green via Python-list
Jon Ribbens wrote: > On 2023-11-02, Chris Green wrote: > > Jon Ribbens wrote: > >> On 2023-11-02, Chris Green wrote: > >> > I have a couple of systems which used to have python2 as well as > >> > python3 but as Ubuntu and Debian verions have moved on they have > >> > finally eliminated all depe

Re: pip/pip3 confusion and keeping up to date

2023-11-02 Thread Mats Wichmann via Python-list
On 11/2/23 04:58, Chris Green via Python-list wrote: I have a couple of systems which used to have python2 as well as python3 but as Ubuntu and Debian verions have moved on they have finally eliminated all dependencies on python2. So they now have only python3 and there is no python executable i

Re: pip/pip3 confusion and keeping up to date

2023-11-02 Thread Jon Ribbens via Python-list
On 2023-11-02, Chris Green wrote: > Jon Ribbens wrote: >> On 2023-11-02, Dieter Maurer wrote: >> > Chris Green wrote at 2023-11-2 10:58 +: >> >> ... >> >>So, going on from this, how do I do the equivalent of "apt update; apt >> >>upgrade" for my globally installed pip packages? >> > >> > `pi

Re: pip/pip3 confusion and keeping up to date

2023-11-02 Thread Jon Ribbens via Python-list
On 2023-11-02, Chris Green wrote: > Jon Ribbens wrote: >> On 2023-11-02, Chris Green wrote: >> > I have a couple of systems which used to have python2 as well as >> > python3 but as Ubuntu and Debian verions have moved on they have >> > finally eliminated all dependencies on python2. >> > >> > S

Re: pip/pip3 confusion and keeping up to date

2023-11-02 Thread Chris Green via Python-list
Jon Ribbens wrote: > On 2023-11-02, Chris Green wrote: > > I have a couple of systems which used to have python2 as well as > > python3 but as Ubuntu and Debian verions have moved on they have > > finally eliminated all dependencies on python2. > > > > So they now have only python3 and there is n

Re: pip/pip3 confusion and keeping up to date

2023-11-02 Thread Chris Green via Python-list
Jon Ribbens wrote: > On 2023-11-02, Dieter Maurer wrote: > > Chris Green wrote at 2023-11-2 10:58 +: > >> ... > >>So, going on from this, how do I do the equivalent of "apt update; apt > >>upgrade" for my globally installed pip packages? > > > > `pip list -o` will tell you for which packages

Re: pip/pip3 confusion and keeping up to date

2023-11-02 Thread Jon Ribbens via Python-list
On 2023-11-02, Chris Green wrote: > I have a couple of systems which used to have python2 as well as > python3 but as Ubuntu and Debian verions have moved on they have > finally eliminated all dependencies on python2. > > So they now have only python3 and there is no python executable in > PATH.

Re: pip/pip3 confusion and keeping up to date

2023-11-02 Thread Jon Ribbens via Python-list
On 2023-11-02, Dieter Maurer wrote: > Chris Green wrote at 2023-11-2 10:58 +: >> ... >>So, going on from this, how do I do the equivalent of "apt update; apt >>upgrade" for my globally installed pip packages? > > `pip list -o` will tell you for which packages there are upgrades > available. >

Re: pip/pip3 confusion and keeping up to date

2023-11-02 Thread Dieter Maurer via Python-list
Chris Green wrote at 2023-11-2 10:58 +: > ... >So, going on from this, how do I do the equivalent of "apt update; apt >upgrade" for my globally installed pip packages? `pip list -o` will tell you for which packages there are upgrades available. `pip install -U ...` will upgrade packages. Be c

pip/pip3 confusion and keeping up to date

2023-11-02 Thread Chris Green via Python-list
I have a couple of systems which used to have python2 as well as python3 but as Ubuntu and Debian verions have moved on they have finally eliminated all dependencies on python2. So they now have only python3 and there is no python executable in PATH. There's still both /usr/bin/pip and /usr/bin/

Re: Is there a Python module to parse a date like the 'date' command in Linux?

2023-06-01 Thread Mike Dewhirst
bash script to python as it has become rather clumsy in bash. What is the use case? A script I use to create diary entries, so it's very handy to be able to give the date as 'yesterday' or 'friday'. OK - I thought maybe baklabel might suit, but that delivers a day-name

Re: Is there a Python module to parse a date like the 'date' command in Linux?

2023-05-24 Thread Mike Dewhirst
lumsy in bash. What is the use case? A script I use to create diary entries, so it's very handy to be able to give the date as 'yesterday' or 'friday'. OK - I thought maybe baklabel might suit, but that delivers a day-name (backup filename prefix) for today or a given

Re: Is there a Python module to parse a date like the 'date' command in Linux?

2023-05-23 Thread Alex Pinkney
I'm converting a bash script to python as it has become rather clumsy > > > in bash. > > > > What is the use case? > > > A script I use to create diary entries, so it's very handy to be able > to give the date as 'yesterday' or 'friday'.

Re: Is there a Python module to parse a date like the 'date' command in Linux?

2023-05-23 Thread Chris Green
t; in bash. > > What is the use case? > A script I use to create diary entries, so it's very handy to be able to give the date as 'yesterday' or 'friday'. -- Chris Green · -- https://mail.python.org/mailman/listinfo/python-list

Re: Is there a Python module to parse a date like the 'date' command in Linux?

2023-05-22 Thread Mike Dewhirst
On 21/05/2023 5:53 am, Chris Green wrote: I'm converting a bash script to python as it has become rather clumsy in bash. What is the use case? However I have hit a problem with converting dates, the bash script has:- dat=$(date --date "$1" +"%Y/%m/%d") an

Re: Is there a Python module to parse a date like the 'date' command in Linux?

2023-05-22 Thread Tim Williams
On Mon, May 22, 2023 at 12:41 PM Mats Wichmann wrote: > On 5/20/23 13:53, Chris Green wrote: > > I'm converting a bash script to python as it has become rather clumsy > > in bash. > > > > However I have hit a problem with converting dates, the bash script > >

Re: Is there a Python module to parse a date like the 'date' command in Linux?

2023-05-22 Thread Mats Wichmann
On 5/20/23 13:53, Chris Green wrote: I'm converting a bash script to python as it has become rather clumsy in bash. However I have hit a problem with converting dates, the bash script has:- dat=$(date --date "$1" +"%Y/%m/%d") and this will accept almost anything

Is there a Python module to parse a date like the 'date' command in Linux?

2023-05-22 Thread Chris Green
I'm converting a bash script to python as it has become rather clumsy in bash. However I have hit a problem with converting dates, the bash script has:- dat=$(date --date "$1" +"%Y/%m/%d") and this will accept almost anything reasonably sensible that can be

Re: Tkinter8.6: date picker

2021-06-14 Thread Alan Gauld via Python-list
On 11/06/2021 22:20, Rich Shepard wrote: > I need a date picker +1 -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos -- https://mail.python.

Re: Tkinter8.6: date picker

2021-06-11 Thread Rich Shepard
On Fri, 11 Jun 2021, Dan Stromberg wrote: I think most Python folks are doing their GUI's with a web browser, Qt, or GTK+. I mostly use GTK+. But best wishes on getting a recommendation for a Tkinter date picker. Dan, I don't like working in a web browser; Qt apparently has very we

Tkinter8.6: date picker

2021-06-11 Thread Rich Shepard
I need a date picker for a couple of Python-3.7.2/Tkinter8.6 applications. There seem to be some available on the web. If you have experience with a date picker (not a calendar that holds appointments for a given date) I'd like your suggestions and recommendations for one. TIA, Rich --

Re: Time Date Conversion?

2020-11-04 Thread Cameron Simpson
hat >dose >and set it in a variable as follows: >ItemDateTime = lineEQN[7:36].strip() > >When I print ItemDateTime, it looks like: > 2020-11-04 17:28:03.352027 > >How do I display it as "Wednesday, November 4, 2020 5:28pm" ? Larry has pointed you at strptime and

Re: Time Date Conversion?

2020-11-04 Thread MRAB
On 2020-11-04 23:02, Steve wrote: The text File entry is: BPd 2020-11-04 17:28:03.352027 66 I bring it into the program using: with open("_TIME-DATE.txt" , 'r') as infile: for lineEQN in infile: # loop to find each line in the file for that dose and set it in a variable as follows: It

Re: Time Date Conversion?

2020-11-04 Thread Larry Martell
On Wed, Nov 4, 2020 at 6:21 PM Steve wrote: > > The text File entry is: >BPd 2020-11-04 17:28:03.352027 66 > > I bring it into the program using: > with open("_TIME-DATE.txt" , 'r') as infile: > for lineEQN in infile: # loop to find each line in the file for that > dose > and set it in a

Time Date Conversion?

2020-11-04 Thread Steve
The text File entry is: BPd 2020-11-04 17:28:03.352027 66 I bring it into the program using: with open("_TIME-DATE.txt" , 'r') as infile: for lineEQN in infile: # loop to find each line in the file for that dose and set it in a variable as follows: ItemDateTime = lineEQN[7:36].strip()

Re: Python Pandas split Date in day month year and hour

2020-08-19 Thread Tim Williams
On Wed, Aug 19, 2020 at 1:43 PM J Conrado wrote: > > > Hi, > > > I'm satarting using Pandas to read excel. I have a meteorological > synoptic data and I have for date: > > > 0 2017-11-01 00:00:00 > 1 2017-11-01 03:00:00 > 2 2017-11-01 06:00:00 >

RE: Python Pandas split Date in day month year and hour

2020-08-19 Thread Steve
what you want? FootNote: If money does not grow on trees, then why do banks have branches? -Original Message- From: Python-list On Behalf Of Brian Oney via Python-list Sent: Wednesday, August 19, 2020 2:01 PM To: python-list@python.org Subject: Re: Python Pandas split Date in day month

Re: Python Pandas split Date in day month year and hour

2020-08-19 Thread Skip Montanaro
> I would like know how can I get for this array the values for day, month > and hour: > > 2017-11-01 03:00:00 year = 2017 month = 11day = 1and > hour = 3 Pandas has a datetime type. You should probably be using it. It's been awhile (a year at least), but if your datetime co

Re: Python Pandas split Date in day month year and hour

2020-08-19 Thread Brian Oney via Python-list
On August 19, 2020 7:32:45 PM GMT+02:00, J Conrado wrote: > > >Hi, > > >I'm satarting using Pandas to read excel. I have a meteorological >synoptic data and I have for date: > > >0   2017-11-01 00:00:00 >1   2017-11-01 03:00:00 >2   2017-11-01 06:00:00

Python Pandas split Date in day month year and hour

2020-08-19 Thread J Conrado
Hi, I'm satarting using Pandas to read excel. I have a meteorological synoptic data and I have for date: 0   2017-11-01 00:00:00 1   2017-11-01 03:00:00 2   2017-11-01 06:00:00 3   2017-11-01 09:00:00 4   2017-11-01 12:00:00 ..  ... 229 2017-11-30 09:00:00 230 2017-

Re: From an existing Pandas DataFrame, how can I create a summary DataFrame based on the union of overlapping date ranges (given a start and an end date) and an additional column?

2020-06-09 Thread joseph pareti
relevant (company name > stays), the Depart date will be the earliest date of any of the trip dates > regardless of the employee, the Return date will be the latest date of any > of the trip dates regardless of the employee, the charges for the trip will > be summed > > For example,

From an existing Pandas DataFrame, how can I create a summary DataFrame based on the union of overlapping date ranges (given a start and an end date) and an additional column?

2020-06-03 Thread Aaron
, then that row just transfers over as-is. When there are overlapping travel times, then the following will happen: --The name field is removed b/c that is no longer relevant (company name stays), the Depart date will be the earliest date of any of the trip dates regardless of the employee, the

Re: Tkinter date entry with boxes

2020-04-17 Thread Souvik Dutta
You can use 12 if statements to check for the correctness of dates. For the year you would only be needed to check the type. To insert "/" you should return your own data type. That is make a class that returns a string of the format "dd/mm/yy" using parameters of date, month

Tkinter date entry with boxes

2020-04-17 Thread annunci . pervendite
Hi, I'm creating a registration form and I found this script that I'd like to use to have my participants to input their birth date: import tkinter as tk class DateEntry(tk.Frame): def __init__(self, parent, **kwargs): years = kwargs.pop('years', (1900,

why are the ticker and date column labels lower than High Low Open Close

2020-04-01 Thread Rakesh Kapoor
for each ticker and then we do a mapping between data and name of the ticker def get(tickers, startdate, enddate): def data(ticker): return (pdr.get_data_yahoo(ticker, start=startdate, end=enddate)) datas = map (data, tickers) return(pd.concat(datas, keys=tickers, names=['ticker&#x

Re: How to plot a data including date and time?

2019-08-14 Thread George Fischhof
-5a5c64600...@googlegroups.com>): > > > > > On Tuesday, August 13, 2019 at 11:47:28 PM UTC+2, > amirrezah...@gmail.com > > > wrote: > > Oh Damn! Here is an attempt to stop the code running into a single line.. > > > > > > > I have a .csv file,

Re: How to plot a data including date and time?

2019-08-14 Thread Elliott Roper
1:47:28 PM UTC+2, amirrezah...@gmail.com > > wrote: Oh Damn! Here is an attempt to stop the code running into a single line.. > > > > > I have a .csv file, in first column I have date and hour, and in the > > > second > > > column I have energy use data. How can

Re: How to plot a data including date and time?

2019-08-14 Thread Elliott Roper
On 14 Aug 2019, amirrezaheidary...@gmail.com wrote (in article<23d45668-fa47-4640-832a-5a5c64600...@googlegroups.com>): > On Tuesday, August 13, 2019 at 11:47:28 PM UTC+2, amirrezah...@gmail.com > wrote: > > I have a .csv file, in first column I have date and hour, and in the s

Re: How to plot a data including date and time?

2019-08-14 Thread amirrezaheidarysbu
On Tuesday, August 13, 2019 at 11:47:28 PM UTC+2, amirrezah...@gmail.com wrote: > I have a .csv file, in first column I have date and hour, and in the second > column I have energy use data. How can I make a bar chart with Date and time > as the x axis and the energy use as t

Re: How to plot a data including date and time?

2019-08-13 Thread Chris Angelico
On Wed, Aug 14, 2019 at 8:17 AM Rich Shepard wrote: > > On Tue, 13 Aug 2019, amirrezaheidary...@gmail.com wrote: > > > I have a .csv file, in first column I have date and hour, and in the > > second column I have energy use data. How can I make a bar chart with Date > >

Re: How to plot a data including date and time?

2019-08-13 Thread Rich Shepard
On Tue, 13 Aug 2019, amirrezaheidary...@gmail.com wrote: I have a .csv file, in first column I have date and hour, and in the second column I have energy use data. How can I make a bar chart with Date and time as the x axis and the energy use as the Y axis? First, find yourself a plotting

How to plot a data including date and time?

2019-08-13 Thread amirrezaheidarysbu
I have a .csv file, in first column I have date and hour, and in the second column I have energy use data. How can I make a bar chart with Date and time as the x axis and the energy use as the Y axis? Thanks -- https://mail.python.org/mailman/listinfo/python-list

Re: How to sort the files based on the date?

2019-07-15 Thread Peter Pearson
5 >> 3RIMG_01APR2018_0744_L2G_AOD.h5 [snip] >> >> Can anyone suggest me how I can sort theses files in increasing order of >> the date on the file name? > > Use a key function > > filenames = sorted(filename, key=get_datetime) > > get_datetime should extract d

Re: How to sort the files based on the date?

2019-07-15 Thread Richard Damon
_AOD.h5 > 3RIMG_31MAR2018_0514_L2G_AOD.h5 > 3RIMG_31MAR2018_0544_L2G_AOD.h5 > 3RIMG_31MAR2018_0614_L2G_AOD.h5 > 3RIMG_31MAR2018_0644_L2G_AOD.h5 > 3RIMG_31MAR2018_0714_L2G_AOD.h5 > 3RIMG_31MAR2018_0744_L2G_AOD.h5 > > As you can see from the list of files displayed after sorting, the files are > n

Re: How to sort the files based on the date?

2019-07-15 Thread Madhavan Bomidi
Thanks Peter. The following lines worked: import glob import datetime def get_datetime (filename): parts = filename.split ("_") return datetime.datetime.strptime (parts[1] + parts[2], "%d%b%Y%H%M") filenames = sorted(glob.glob('3RIMG _ *. h5'), key = get_datetime) -- https://mail.

Re: How to sort the files based on the date?

2019-07-15 Thread Peter Otten
L2G_AOD.h5 > 3RIMG_31MAR2018_0544_L2G_AOD.h5 > 3RIMG_31MAR2018_0614_L2G_AOD.h5 > 3RIMG_31MAR2018_0644_L2G_AOD.h5 > 3RIMG_31MAR2018_0714_L2G_AOD.h5 > 3RIMG_31MAR2018_0744_L2G_AOD.h5 > > As you can see from the list of files displayed after sorting, the files > are not arranged acc

How to sort the files based on the date?

2019-07-15 Thread Madhavan Bomidi
t of files displayed after sorting, the files are not arranged according to the increasing order of the date since the date is in the DDMMM format. Can anyone suggest me how I can sort theses files in increasing order of the date on the file name? Thanks in advance -- https://mail.python.o

RE: I cannot seem to write time/date to the file.

2019-02-12 Thread Steve
cannot seem to write time/date to the file. DateReading.write = (nowTimeDate2 + "\n") You're re-assigning the write method to be a string here. You want to call the method with the string as the argument. DateReading.write(nowTimeDate2 + "\n") -Original Messa

RE: I cannot seem to write time/date to the file.

2019-02-12 Thread David Raymond
ist-bounces+david.raymond=tomtom@python.org] On Behalf Of Steve Sent: Tuesday, February 12, 2019 2:20 PM To: python-list@python.org Subject: I cannot seem to write time/date to the file. I am using nowTimeDate2 elsewhere in my program and it can be printed to the screen. The file exists and the p

I cannot seem to write time/date to the file.

2019-02-12 Thread Steve
the time/date the file was created. It doesn’t show up in the file. How do I fix this? from time import gmtime, strftime nowTimeDate2=strftime("%Y %a %b %d %H:%M") print(nowTimeDate2) #This works DateReading=open("Date-ReadingsAndDoses.txt", "w") DateReadi

logging date format with milliseconds and timezone

2018-05-17 Thread Skip Montanaro
It seems that the logging.Formatter class uses two formats by default to format a time, default_time_format (%Y-%m-%d %H:%M:%S) and default_msec_format (%s,%03d). The former is a format string for time.strftime (and thus can't represent fractions of a second). The latter accomplishes that, but expa

Re: jilian to Gregorian date conversion error

2018-04-29 Thread sum abiut
Hi Dennnis, Thank you for your email. My issue is i what to be able to display the rage of date base on the start and end date that was selected but i don't know how to do that. when i did a for look from my template for example. {%for a in result_proxy%} {{a.date_applied}} {%endfor%}

Re: jilian to Gregorian date conversion error

2018-04-25 Thread sum abiut
ok so i have fixed that using the for loop result_proxy=connection.execute(stmt).fetchall() for a in result_proxy: test=datetime.date.fromordinal(int(a.date_applied)) Now if i want to pass a range of date to date_applied above. How to i do that? I know in sql i did

Re: jilian to Gregorian date conversion error

2018-04-24 Thread sum abiut
Thanks date example is 736788 in julian On Wed, Apr 25, 2018 at 12:34 PM, Dennis Lee Bieber wrote: > On Wed, 25 Apr 2018 00:55:39 +0100, MRAB > declaimed the following: > > > >Also, the integer is interpreted as a "proleptic Gregorian ordinal", not > >a J

Re: jilian to Gregorian date conversion error

2018-04-24 Thread MRAB
On 2018-04-24 23:37, sum abiut wrote: Hi, i get the error message: an integer is required when i am try to convert from julian date to Gregorian date in my view.py, after i have query the db i want to convert the applied date from julian date to Gregorian date but i got the above error

jilian to Gregorian date conversion error

2018-04-24 Thread sum abiut
Hi, i get the error message: an integer is required when i am try to convert from julian date to Gregorian date in my view.py, after i have query the db i want to convert the applied date from julian date to Gregorian date but i got the above error, convert_date=(datetime.date.fromordinal

Re: How to add months to a date (datetime object)?

2017-11-22 Thread abiodun . ogunmolu
How about this... from dateutil.relativedelta import relativedelta myDate = datetime.date.today() + relativedelta(months=3) On Sunday, March 15, 2009 at 5:28:24 PM UTC, tin...@isbd.co.uk wrote: > I have a date in the form of a datetime object and I want to add (for > example) three months

Re: converting Julian date to normal date

2017-06-05 Thread Larry Martell
On Mon, Jun 5, 2017 at 6:11 PM, sum abiut wrote: > i am using python,and django as my web framework. I use sqlalchemy to > connect to MSSQL data that is running Epicor database. Epicor is using > julian > > * date. How to you convert julian date to normal date* You cross pos

converting Julian date to normal date

2017-06-05 Thread sum abiut
i am using python,and django as my web framework. I use sqlalchemy to connect to MSSQL data that is running Epicor database. Epicor is using julian * date. How to you convert julian date to normal date* *cheers,* -- https://mail.python.org/mailman/listinfo/python-list

Re: How to obtain an up-to-date document of tkinter

2017-04-20 Thread Terry Reedy
On 4/20/2017 3:19 AM, Mok-Kong Shen wrote: Am 20.04.2017 um 02:16 schrieb breamore...@gmail.com: On Thursday, April 20, 2017 at 1:09:45 AM UTC+1, Mok-Kong Shen wrote: How could one obtain an up-to-date document of tkinter. I ask this question because apparently there are stuffs of tkinter that

Re: How to obtain an up-to-date document of tkinter

2017-04-20 Thread Mok-Kong Shen
Am 20.04.2017 um 08:08 schrieb Terry Reedy: On 4/19/2017 8:09 PM, Mok-Kong Shen wrote: [snip] I ask this question because apparently there are stuffs of tkinter that worked in Python 3.5 but no longer in Python 3.6.1. I don't know of any such. Please see my reply to breamoreboy. M. K. Shen

Re: How to obtain an up-to-date document of tkinter

2017-04-20 Thread Mok-Kong Shen
Am 20.04.2017 um 02:16 schrieb breamore...@gmail.com: On Thursday, April 20, 2017 at 1:09:45 AM UTC+1, Mok-Kong Shen wrote: How could one obtain an up-to-date document of tkinter. I ask this question because apparently there are stuffs of tkinter that worked in Python 3.5 but no longer in

Re: How to obtain an up-to-date document of tkinter

2017-04-19 Thread Terry Reedy
On 4/19/2017 8:09 PM, Mok-Kong Shen wrote: How could one obtain an up-to-date document of tkinter. http://www.tcl.tk/man/tcl8.6/TkCmd/contents.htm documents the tcl/tk that tkinter wraps. There are a few things that are not included in tkinter. I ask this question because apparently

Re: How to obtain an up-to-date document of tkinter

2017-04-19 Thread breamoreboy
On Thursday, April 20, 2017 at 1:09:45 AM UTC+1, Mok-Kong Shen wrote: > How could one obtain an up-to-date document of tkinter. I ask this > question because apparently there are stuffs of tkinter that > worked in Python 3.5 but no longer in Python 3.6.1. > > M. K. Shen https://do

How to obtain an up-to-date document of tkinter

2017-04-19 Thread Mok-Kong Shen
How could one obtain an up-to-date document of tkinter. I ask this question because apparently there are stuffs of tkinter that worked in Python 3.5 but no longer in Python 3.6.1. M. K. Shen -- https://mail.python.org/mailman/listinfo/python-list

Re: Extraction of model and date created tag from own picture/video recordings

2017-03-15 Thread zljubisic
I have done that. The best article I have found is: https://getpocket.com/a/read/1651596570 So far I have tried exifread, exiftool, mediainfo, but looks like I will have to combine several tools in order to get the information that I need. Major problem is with the model. Looks like every manufac

Re: Extraction of model and date created tag from own picture/video recordings

2017-03-15 Thread Chris Angelico
On Wed, Mar 15, 2017 at 7:31 PM, wrote: > On Tuesday, 14 March 2017 19:54:18 UTC+1, MRAB wrote: >> It might be worth trying "ImageMagick". > > ImageMagick is only for pictures. :( > Do you have a suggestion for videos? What format are they in? Search the web for "read media info" and see what

Re: Extraction of model and date created tag from own picture/video recordings

2017-03-15 Thread zljubisic
On Tuesday, 14 March 2017 19:54:18 UTC+1, MRAB wrote: > It might be worth trying "ImageMagick". ImageMagick is only for pictures. :( Do you have a suggestion for videos? -- https://mail.python.org/mailman/listinfo/python-list

Re: Extraction of model and date created tag from own picture/video recordings

2017-03-14 Thread MRAB
python.org/pypi/ExifRead), that is good for some pictures, but not for all. For such a simple requirement (model and creation date) is there a library that can: 1. Cover both pictures and videos 2. Work with android and iPhone Does someone have an experience with such task in order to

Extraction of model and date created tag from own picture/video recordings

2017-03-14 Thread zljubisic
e pictures, but not for all. For such a simple requirement (model and creation date) is there a library that can: 1. Cover both pictures and videos 2. Work with android and iPhone Does someone have an experience with such task in order to suggest a library to me? -- https://mail.python.o

Extraction of model and date created tag from own picture/video recordings

2017-03-14 Thread zljubisic
e pictures, but not for all. For such a simple requirement (model and creation date) is there a library that can: 1. Cover both pictures and videos 2. Work with android and iPhone Does someone have an experience with such task in order to suggest a library to me? -- https://mail.python.o

Re: How to add months to a date (datetime object)?

2017-02-08 Thread John_Gordon
From: John_Gordon@f38.n261.z1 From: John_Gordon@f38.n261.z1 From: John Gordon In "Deborah Swanson" writes: > bajimicb...@gmail.com wrote, on February 02, 2017 2:44 AM > > > > for start of month to the beginning of next month > > > > from datetime import timedelta > > from dateutil.relativede

Re: How to add months to a date (datetime object)?

2017-02-07 Thread John_Gordon
From: John_Gordon@f38.n261.z1 From: John Gordon In "Deborah Swanson" writes: > bajimicb...@gmail.com wrote, on February 02, 2017 2:44 AM > > > > for start of month to the beginning of next month > > > > from datetime import timedelta > > from dateutil.relativedelta import relativedelta > > >

Re: How to add months to a date (datetime object)?

2017-02-07 Thread John_Gordon
From: John Gordon In "Deborah Swanson" writes: > bajimicb...@gmail.com wrote, on February 02, 2017 2:44 AM > > > > for start of month to the beginning of next month > > > > from datetime import timedelta > > from dateutil.relativedelta import relativedelta > > > > end_date = start_date + relat

RE: How to add months to a date (datetime object)?

2017-02-06 Thread Deborah Swanson
MRAB wrote,on February 06, 2017 2:17 PM > > On 2017-02-06 21:54, John Gordon wrote: > > In "Deborah > > Swanson" writes: > > > >> bajimicb...@gmail.com wrote, on February 02, 2017 2:44 AM > >> > > >> > for start of month to the beginning of next month > >> > > >> > from datetime import timedelt

Re: How to add months to a date (datetime object)?

2017-02-06 Thread MRAB
On 2017-02-06 21:54, John Gordon wrote: In "Deborah Swanson" writes: bajimicb...@gmail.com wrote, on February 02, 2017 2:44 AM > > for start of month to the beginning of next month > > from datetime import timedelta > from dateutil.relativedelta import relativedelta > > end_date = start_date

Re: How to add months to a date (datetime object)?

2017-02-06 Thread John Gordon
In "Deborah Swanson" writes: > bajimicb...@gmail.com wrote, on February 02, 2017 2:44 AM > > > > for start of month to the beginning of next month > > > > from datetime import timedelta > > from dateutil.relativedelta import relativedelta > > > > end_date = start_date + relativedelta(months=

RE: How to add months to a date (datetime object)?

2017-02-06 Thread Deborah Swanson
bajimicb...@gmail.com wrote, on February 02, 2017 2:44 AM > > for start of month to the beginning of next month > > from datetime import timedelta > from dateutil.relativedelta import relativedelta > > end_date = start_date + relativedelta(months=delta_period) + > timedelta(days=-delta_period)

Re: How to add months to a date (datetime object)?

2017-02-02 Thread bajimicbiga
for start of month to the beginning of next month from datetime import timedelta from dateutil.relativedelta import relativedelta end_date = start_date + relativedelta(months=delta_period) + timedelta(days=-delta_period) -- https://mail.python.org/mailman/listinfo/python-list

Re: Wrong release date in 3.6 whats new docs?

2016-12-14 Thread Nick Sarbicki
I'm aware of the the schedule in the PEP. But if the date at the top of the What's New page is the last day it was updated and not the release date then that is what has caused the confusion. On Wed, 14 Dec 2016, 22:58 , wrote: > On Wednesday, December 14, 2016 at 2:09:22 PM UTC,

Re: Wrong release date in 3.6 whats new docs?

2016-12-14 Thread breamoreboy
On Wednesday, December 14, 2016 at 2:09:22 PM UTC, Nick Sarbicki wrote: > Afternoon everyone. > > Might be missing something obvious but the 3.6 What's New docs point to the > release date being the 12th. > > https://docs.python.org/3.6/whatsnew/3.6.html#what-s-new-in-py

Re: Wrong release date in 3.6 whats new docs?

2016-12-14 Thread Ned Batchelder
On Wednesday, December 14, 2016 at 9:09:22 AM UTC-5, Nick Sarbicki wrote: > Afternoon everyone. > > Might be missing something obvious but the 3.6 What's New docs point to the > release date being the 12th. > > https://docs.python.org/3.6/whatsnew/3.6.html#what-s-new-in-py

  1   2   3   4   5   6   7   8   9   10   >