Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

A mathematician is a device for turning coffee into theorems. -- P. Erdos


devel / comp.lang.python / Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'

SubjectAuthor
* PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'NArshad
`* Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'Christian Gollwitzer
 +- Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'jkn
 `* Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'MRAB
  `* Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'Chris Angelico
   `* Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'Christian Gollwitzer
    +- Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'Chris Angelico
    `* Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'Peter J. Holzer
     `- Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'Peter J. Holzer

1
PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'

<6d76da9d-9d8d-4646-a05d-798e3e7bdcf2n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=16974&group=comp.lang.python#16974

  copy link   Newsgroups: comp.lang.python
X-Received: by 2002:ad4:594a:: with SMTP id eo10mr651109qvb.39.1644392775912;
Tue, 08 Feb 2022 23:46:15 -0800 (PST)
X-Received: by 2002:a37:66d1:: with SMTP id a200mr427783qkc.148.1644392775760;
Tue, 08 Feb 2022 23:46:15 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.python
Date: Tue, 8 Feb 2022 23:46:15 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=202.69.11.210; posting-account=IftX_woAAACUMrPm_t7tPycPRLi3x_9J
NNTP-Posting-Host: 202.69.11.210
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6d76da9d-9d8d-4646-a05d-798e3e7bdcf2n@googlegroups.com>
Subject: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'
From: narshad....@gmail.com (NArshad)
Injection-Date: Wed, 09 Feb 2022 07:46:15 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 20
 by: NArshad - Wed, 9 Feb 2022 07:46 UTC

When I enter data using Tkinter form in an Excel file when the excel file is closed there is no error but when I enter data using Tkinter form when the excel is already open following error comes:

Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\Dani Brothers\Anaconda3\lib\tkinter\__init__.py", line 1705, in __call__
return self.func(*args)
File "D:/Python/Book Bank/New folder/PyCharm/Final/Excel.py", line 61, in SaveBook
workbook.save(filename="BookBank.xlsx")
File "C:\Users\Dani Brothers\Anaconda3\lib\site-packages\openpyxl\workbook\workbook.py", line 392, in save
save_workbook(self, filename)
File "C:\Users\Dani Brothers\Anaconda3\lib\site-packages\openpyxl\writer\excel.py", line 291, in save_workbook
archive = ZipFile(filename, 'w', ZIP_DEFLATED, allowZip64=True)
File "C:\Users\Dani Brothers\Anaconda3\lib\zipfile.py", line 1207, in __init__
self.fp = io.open(file, filemode)
PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'

What to do to correct this error? I have already searched on google search many times but no solution was found.

Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'

<su0d1v$ju2$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=16978&group=comp.lang.python#16978

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: aurio...@gmx.de (Christian Gollwitzer)
Newsgroups: comp.lang.python
Subject: Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'
Date: Wed, 9 Feb 2022 13:45:08 +0100
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <su0d1v$ju2$1@dont-email.me>
References: <6d76da9d-9d8d-4646-a05d-798e3e7bdcf2n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 9 Feb 2022 12:45:51 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="5abc5cf0bda6327d81847b47010f1461";
logging-data="20418"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ALx+9apExx7p+6BhhZFOpgSgybQUUp6k="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:91.0)
Gecko/20100101 Thunderbird/91.5.1
Cancel-Lock: sha1:/x0ALne+Nd/WXbrVHMFJ24sx6kM=
In-Reply-To: <6d76da9d-9d8d-4646-a05d-798e3e7bdcf2n@googlegroups.com>
 by: Christian Gollwitzer - Wed, 9 Feb 2022 12:45 UTC

Am 09.02.22 um 08:46 schrieb NArshad:
> When I enter data using Tkinter form in an Excel file when the excel file is closed there is no error but when I enter data using Tkinter form when the excel is already open following error comes:

> PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'
>
>
>
> What to do to correct this error? I have already searched on google search many times but no solution was found.

It's impossible. Excel locks the file deliberately when it is open, so
that you can't overwrite it from a different program. Otherwise, the
file could become inconsistent.

The correct way to handle it in the GUI is to tell the user via a
message box that the file is open and can't be written.

An alternative to writing the file directly would be that you remote
control Excel; I think it provides a DDE API:
https://support.microsoft.com/en-us/office/dde-function-79e8b21c-2054-4b48-9ceb-d2cf38dc17f9

Christian

Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'

<61cde595-c553-44b4-8392-2cae9ed1d78en@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=16979&group=comp.lang.python#16979

  copy link   Newsgroups: comp.lang.python
X-Received: by 2002:a05:6214:e68:: with SMTP id jz8mr1900107qvb.114.1644420270907;
Wed, 09 Feb 2022 07:24:30 -0800 (PST)
X-Received: by 2002:ac8:3d41:: with SMTP id u1mr1705538qtf.478.1644420270690;
Wed, 09 Feb 2022 07:24:30 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.python
Date: Wed, 9 Feb 2022 07:24:30 -0800 (PST)
In-Reply-To: <su0d1v$ju2$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=84.92.96.37; posting-account=xy4V0QkAAAAoGgkMsSsv6bfFPHkQXvOY
NNTP-Posting-Host: 84.92.96.37
References: <6d76da9d-9d8d-4646-a05d-798e3e7bdcf2n@googlegroups.com> <su0d1v$ju2$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <61cde595-c553-44b4-8392-2cae9ed1d78en@googlegroups.com>
Subject: Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'
From: jkn...@nicorp.f9.co.uk (jkn)
Injection-Date: Wed, 09 Feb 2022 15:24:30 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 19
 by: jkn - Wed, 9 Feb 2022 15:24 UTC

On Wednesday, February 9, 2022 at 12:46:49 PM UTC, Christian Gollwitzer wrote:
> Am 09.02.22 um 08:46 schrieb NArshad:
> > When I enter data using Tkinter form in an Excel file when the excel file is closed there is no error but when I enter data using Tkinter form when the excel is already open following error comes:
> > PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'
> >
> >
> >
> > What to do to correct this error? I have already searched on google search many times but no solution was found.
> It's impossible. Excel locks the file deliberately when it is open, so
> that you can't overwrite it from a different program. Otherwise, the
> file could become inconsistent.
>
> The correct way to handle it in the GUI is to tell the user via a
> message box that the file is open and can't be written.
>
> An alternative to writing the file directly would be that you remote
> control Excel; I think it provides a DDE API:
> https://support.microsoft.com/en-us/office/dde-function-79e8b21c-2054-4b48-9ceb-d2cf38dc17f9
>
DDE? Wow, that takes me back...

Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'

<mailman.70.1644432802.7010.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=16987&group=comp.lang.python#16987

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: pyt...@mrabarnett.plus.com (MRAB)
Newsgroups: comp.lang.python
Subject: Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'
Date: Wed, 9 Feb 2022 18:50:12 +0000
Lines: 24
Message-ID: <mailman.70.1644432802.7010.python-list@python.org>
References: <6d76da9d-9d8d-4646-a05d-798e3e7bdcf2n@googlegroups.com>
<su0d1v$ju2$1@dont-email.me>
<3026c9cf-9d36-9301-032c-2d31b61866e1@mrabarnett.plus.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de K4m+cc5gAHQsUyeoLzQuPAnqA+/23DzaCsywGdBM49jA==
Return-Path: <python@mrabarnett.plus.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=plus.com header.i=@plus.com header.b=rOev4JK7;
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.002
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'gui': 0.05; 'url:support':
0.05; 'open.': 0.07; 'tkinter': 0.07; 'from:addr:python': 0.09;
'received:192.168.1.64': 0.09; 'schrieb': 0.09;
'subject:Permission': 0.09; 'subject:skip:P 10': 0.09; 'error?':
0.16; 'found.': 0.16; 'from:addr:mrabarnett.plus.com': 0.16;
'from:name:mrab': 0.16; 'gollwitzer': 0.16; 'locks': 0.16;
'message-id:@mrabarnett.plus.com': 0.16; 'received:plus.net':
0.16; 'written.': 0.16; 'wrote:': 0.16; 'python': 0.16; "can't":
0.17; 'to:addr:python-list': 0.20; 'subject:: [': 0.21; 'subject:]
': 0.21; 'closed': 0.22; 'error': 0.29; 'header:User-Agent:1':
0.30; 'think': 0.32; 'christian': 0.32; 'received:192.168.1':
0.32; 'but': 0.32; 'there': 0.33; 'same': 0.34; 'header:In-Reply-
To:1': 0.34; 'following': 0.35; 'using': 0.37; "it's": 0.37;
'received:192.168': 0.37; 'file': 0.38; 'way': 0.38; 'could':
0.38; 'handle': 0.39; 'otherwise,': 0.40; 'program.': 0.40;
'tell': 0.60; 'search': 0.61; 'received:212': 0.62; 'remote':
0.63; 'box': 0.65; 'excel': 0.69; 'times': 0.69; 'deliberately':
0.91; 'url-ip:92/8': 0.93
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=plus.com; s=042019;
t=1644432613; bh=KxK0ZU9sYI/79FH9nR7sEHRX0jMFY5VnLcoTC2noBW4=;
h=Date:Subject:To:References:From:In-Reply-To;
b=rOev4JK7komSvji489KXy+oIVFd5FlXk3hxt9H1Qruc8qCIchdLkNLlN1rS8tyEqp
bHR2Ev7A7bNmakWePjditHFKwkVCmb/wazh8HvxTgc6vtRgn12V01kmJ4Itoi623eo
5XdUOY/rTqa/lMiyoW5O/PboiR4CtgsIQ9ym38CHxe/vhlUJAuM3OpErO+yyLa3T77
jj1Pw+J0r3EOO882qro9kkZTUQOD9hxeix2dDPUNwMmt8Za40S8XDFVW93xHdbziUi
7I9CCH+jLf9cceEmmrYHjXFKmtm1Ct3p/2WqRdnAe5Q28tCPfIbnR3+OQ7W73AkTss
3HiwwmJUqJomg==
X-Clacks-Overhead: "GNU Terry Pratchett"
X-CM-Score: 0.00
X-CNFS-Analysis: v=2.4 cv=fINaYbWe c=1 sm=1 tr=0 ts=62040ce5
a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17
a=IkcTkHD0fZMA:10 a=yMhMjlubAAAA:8 a=Y6Z6Xk5RL_klLZypAFkA:9 a=QEXdDO2ut3YA:10
X-AUTH: mrabarnett@:2500
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.1
Content-Language: en-GB
In-Reply-To: <su0d1v$ju2$1@dont-email.me>
X-CMAE-Envelope: MS4xfK9T5mKvf5ku5N/hyF83W1Nv/vWYLppXwgt82AuyP+UG2GraT79qf9Uf5z3PM3Mialq/28P8ktRX8ISU9HjzHi3n2IjVgsL2jeNvnpmNiZOtlBW1Xy+V
uk2fqWhF7p9+bgfKMkUvkQZABOQvMivCCRemnxnuYTpV3W07Cv+pttPwN5toxK03csEXSU7fDXPsdbRuf5tCEFEevsh9GF8MVs8=
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <3026c9cf-9d36-9301-032c-2d31b61866e1@mrabarnett.plus.com>
X-Mailman-Original-References: <6d76da9d-9d8d-4646-a05d-798e3e7bdcf2n@googlegroups.com>
<su0d1v$ju2$1@dont-email.me>
 by: MRAB - Wed, 9 Feb 2022 18:50 UTC

On 2022-02-09 12:45, Christian Gollwitzer wrote:
> Am 09.02.22 um 08:46 schrieb NArshad:
>> When I enter data using Tkinter form in an Excel file when the excel file is closed there is no error but when I enter data using Tkinter form when the excel is already open following error comes:
>
>> PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'
>>
>>
>>
>> What to do to correct this error? I have already searched on google search many times but no solution was found.
>
> It's impossible. Excel locks the file deliberately when it is open, so
> that you can't overwrite it from a different program. Otherwise, the
> file could become inconsistent.
>
It's the same the other way too; you can't open the file in Excel while
Python has it open.

> The correct way to handle it in the GUI is to tell the user via a
> message box that the file is open and can't be written.
>
> An alternative to writing the file directly would be that you remote
> control Excel; I think it provides a DDE API:
> https://support.microsoft.com/en-us/office/dde-function-79e8b21c-2054-4b48-9ceb-d2cf38dc17f9
>

Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'

<mailman.95.1644522198.7010.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17021&group=comp.lang.python#17021

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: ros...@gmail.com (Chris Angelico)
Newsgroups: comp.lang.python
Subject: Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'
Date: Fri, 11 Feb 2022 06:43:06 +1100
Lines: 27
Message-ID: <mailman.95.1644522198.7010.python-list@python.org>
References: <6d76da9d-9d8d-4646-a05d-798e3e7bdcf2n@googlegroups.com>
<su0d1v$ju2$1@dont-email.me>
<3026c9cf-9d36-9301-032c-2d31b61866e1@mrabarnett.plus.com>
<mailman.70.1644432802.7010.python-list@python.org>
<8kka0h9l1eaogdvouo3g9ng8t85c01mm3e@4ax.com>
<CAPTjJmq+6UNruEGAHMyBQOtCk5LpwOz2caVkfhm=U8Mn4SqDNA@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de OGo9m82SnhTs3xkcbOqKGQXx0+u1Sk84AOF6SO6kOFTA==
Return-Path: <rosuav@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=IJ/l461H;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.006
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '2022': 0.05; 'open.':
0.07; 'attempts': 0.09; 'subject:Permission': 0.09;
'subject:skip:P 10': 0.09; 'memory': 0.15; 'assumption': 0.16;
'chrisa': 0.16; 'excel,': 0.16; 'from:addr:rosuav': 0.16;
'from:name:chris angelico': 0.16; 'gollwitzer': 0.16; 'locks':
0.16; 'operation.': 0.16; 'permitted.': 0.16;
'received:209.85.221.54': 0.16; 'received:mail-
wr1-f54.google.com': 0.16; 'wrote:': 0.16; 'feb': 0.17; "can't":
0.17; 'to:addr:python-list': 0.20; 'subject:: [': 0.21; 'subject:]
': 0.21; 'doubt': 0.22; 'fri,': 0.22; 'library': 0.26;
'christian': 0.32; 'encountered': 0.32; 'message-
id:@mail.gmail.com': 0.32; 'but': 0.32; 'same': 0.34; 'header:In-
Reply-To:1': 0.34; 'received:google.com': 0.34;
'from:addr:gmail.com': 0.35; 'built': 0.36; 'cases': 0.36;
'change': 0.36; 'those': 0.36; "it's": 0.37; 'received:209.85':
0.37; 'file': 0.38; 'way': 0.38; 'could': 0.38; 'received:209':
0.39; 'wed,': 0.39; 'otherwise,': 0.40; 'program.': 0.40; 'view':
0.60; 'skip:o 10': 0.61; 'skip:o 20': 0.63; 'complete': 0.64;
'excel': 0.69; 'following:': 0.69; 'readers': 0.69;
'deliberately': 0.91; 'locked': 0.93
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
bh=yR9A4hKJV+yOH6sew9cqCWr2KJlxv020uVqDRio7MHk=;
b=IJ/l461HrDRvW1CAJArMaVf/HMZvLWOQ2k7XiZJuxKfCZ/1sOuljPeHhIfckkM8O3H
dbh7wiZVoJ2M1WDqel3sM6Rqsx0WQhIrmKKjTL4XfSwg3ZRZ6GRdDTeCeuqPwwK8LiFS
oXfjv29edqdw5N2d7rXopeAtYI1zGPOLQVsbNUPk0PrdMIH8+Xmxy/16CgeIEu850/Fm
SsSOria+FlKxF+L5odGQkIZpMFy7VYeB/LtjN2+AkqK0qXEmQrMmqZpZkyOglzHrXvvy
0zTy8QUA2+yUbT1++hp3iqv+c2fTwx/Zr/CIbTGrOHle/fRo6vBLoMOS8mKU3EcJ3KaH
Lj8A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=yR9A4hKJV+yOH6sew9cqCWr2KJlxv020uVqDRio7MHk=;
b=bhPOvHxTXYBE98BgUBcLrDfZFoev1Lqm810HxOi3hPb1ShyR1Q26/DHxHtBpB/s9ZT
PfVtnm5ogxlKYHQEVq1UwQtCJsT7iZIkVZe8vTuIaS28Hi3CD82bC1ueq6nKJuNSvP/o
+dY5W5yWL63AimM4zhW9L8AUJ8e915dS3NZB1WjWfgpunDLmGBXXRFX/JO6o/95tc6tE
1Vm2Ho4lqzhKW6pzL7px/OzbEpx4bSF/cfj9EUcS0W2t6OfHMqocfEqhsi7nxZXe9Yzv
2F4/w1F32JGsd0JKjdIwyenvXz84OsynnpBEVrCqVoIJfa9Td44/XOacaOQUyTIj0w3+
hXuQ==
X-Gm-Message-State: AOAM530T+3S3l82H80OjqXCIAp0q22i0FHuKk+QHCivso+vwpCrHXKem
plOxB327zp9nJ3Kl+xMvwuB49J5rmBneqPXUWu5sAVQ0
X-Google-Smtp-Source: ABdhPJxeagOD1n/Oxow43xTGhv48VX3Y25G/2ywnvFTGIJySqMBvvgUIGTV2K0AofTXGyfAU9dUMUMXKAHHt55y1jxE=
X-Received: by 2002:adf:fecf:: with SMTP id q15mr7412150wrs.104.1644522197339;
Thu, 10 Feb 2022 11:43:17 -0800 (PST)
In-Reply-To: <8kka0h9l1eaogdvouo3g9ng8t85c01mm3e@4ax.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CAPTjJmq+6UNruEGAHMyBQOtCk5LpwOz2caVkfhm=U8Mn4SqDNA@mail.gmail.com>
X-Mailman-Original-References: <6d76da9d-9d8d-4646-a05d-798e3e7bdcf2n@googlegroups.com>
<su0d1v$ju2$1@dont-email.me>
<3026c9cf-9d36-9301-032c-2d31b61866e1@mrabarnett.plus.com>
<mailman.70.1644432802.7010.python-list@python.org>
<8kka0h9l1eaogdvouo3g9ng8t85c01mm3e@4ax.com>
 by: Chris Angelico - Thu, 10 Feb 2022 19:43 UTC

On Fri, 11 Feb 2022 at 06:41, Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote:
>
> On Wed, 9 Feb 2022 18:50:12 +0000, MRAB <python@mrabarnett.plus.com>
> declaimed the following:
>
> >On 2022-02-09 12:45, Christian Gollwitzer wrote:
>
> >> It's impossible. Excel locks the file deliberately when it is open, so
> >> that you can't overwrite it from a different program. Otherwise, the
> >> file could become inconsistent.
> >>
> >It's the same the other way too; you can't open the file in Excel while
> >Python has it open.
> >
> While not tested with Excel, I /have/ encountered cases where an
> application has locked the file for writing, but multiple readers are
> permitted. Those would fail then if one attempts to write. {The other view
> point is a library that does a complete open/read\write-all/close to memory
> -- such an application might open/read/close, then Excel opens/locks, with
> the application only learning of the change when it attempts the
> open/write/close cycle}
>

Yeah, I doubt Excel is that sophisticated. It's built on an assumption
of single-user operation.

ChrisA

Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'

<su3tb4$ac5$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17024&group=comp.lang.python#17024

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: aurio...@gmx.de (Christian Gollwitzer)
Newsgroups: comp.lang.python
Subject: Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'
Date: Thu, 10 Feb 2022 21:39:05 +0100
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <su3tb4$ac5$1@dont-email.me>
References: <6d76da9d-9d8d-4646-a05d-798e3e7bdcf2n@googlegroups.com>
<su0d1v$ju2$1@dont-email.me>
<3026c9cf-9d36-9301-032c-2d31b61866e1@mrabarnett.plus.com>
<mailman.70.1644432802.7010.python-list@python.org>
<8kka0h9l1eaogdvouo3g9ng8t85c01mm3e@4ax.com>
<CAPTjJmq+6UNruEGAHMyBQOtCk5LpwOz2caVkfhm=U8Mn4SqDNA@mail.gmail.com>
<mailman.95.1644522198.7010.python-list@python.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 10 Feb 2022 20:42:12 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="a2ee4fe53a6a13f59de1612ccc79a51f";
logging-data="10629"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Nhosr2Xxa1DSs4ojs6/SmTUzEpe7JUf8="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:91.0)
Gecko/20100101 Thunderbird/91.5.1
Cancel-Lock: sha1:gPe+p4FrYnZxAl1ELheeMBJaWkQ=
In-Reply-To: <mailman.95.1644522198.7010.python-list@python.org>
 by: Christian Gollwitzer - Thu, 10 Feb 2022 20:39 UTC

Am 10.02.22 um 20:43 schrieb Chris Angelico:
> On Fri, 11 Feb 2022 at 06:41, Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote:
>> While not tested with Excel, I /have/ encountered cases where an
>> application has locked the file for writing, but multiple readers are
>> permitted. Those would fail then if one attempts to write. {The other view
>> point is a library that does a complete open/read\write-all/close to memory
>> -- such an application might open/read/close, then Excel opens/locks, with
>> the application only learning of the change when it attempts the
>> open/write/close cycle}
>>
>
> Yeah, I doubt Excel is that sophisticated. It's built on an assumption
> of single-user operation.
>

It guards against multiple user opening the same file over network
drives. All MS applications create lock files with weird names like
~.original-name.xlsx etc. If you open a file on the network share, and a
colleague tries to open it from a second machine, then he will get the
message "File locked by user xy from machine z". See here for word:
https://support.microsoft.com/en-us/topic/-the-document-is-locked-for-editing-by-another-user-error-message-when-you-try-to-open-a-document-in-word-10b92aeb-2e23-25e0-9110-370af6edb638

I believe (haven't tested) that this is cooperative locking only and it
doesn't help if you alter the file from another program. On the same
machine though, I think that Excel opens the file with a flag to lock it
from other processes. At least that was my observation and also what the
OP has described.

Hence it is impossible to concurrently write from Python into an open
Excel file. One might ask what the real problem is the user is trying to
solve. Is Excel a requirement, can it be swapped by a database engine?

Best regards,

Christian

Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'

<mailman.99.1644527505.7010.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17026&group=comp.lang.python#17026

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: ros...@gmail.com (Chris Angelico)
Newsgroups: comp.lang.python
Subject: Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'
Date: Fri, 11 Feb 2022 08:11:32 +1100
Lines: 41
Message-ID: <mailman.99.1644527505.7010.python-list@python.org>
References: <6d76da9d-9d8d-4646-a05d-798e3e7bdcf2n@googlegroups.com>
<su0d1v$ju2$1@dont-email.me>
<3026c9cf-9d36-9301-032c-2d31b61866e1@mrabarnett.plus.com>
<mailman.70.1644432802.7010.python-list@python.org>
<8kka0h9l1eaogdvouo3g9ng8t85c01mm3e@4ax.com>
<CAPTjJmq+6UNruEGAHMyBQOtCk5LpwOz2caVkfhm=U8Mn4SqDNA@mail.gmail.com>
<mailman.95.1644522198.7010.python-list@python.org>
<su3tb4$ac5$1@dont-email.me>
<CAPTjJmp4W9mMwuND85wST67vyC_KtnB6RbXPHqqNOgHJSKT3rQ@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de 2q6BuZPMAFTRK6gctw7rgQDUfz5LTP8Nfj9sagQsHxGg==
Return-Path: <rosuav@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=FTP/O27p;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.003
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '2022': 0.05;
'url:support': 0.05; 'attempts': 0.09; 'it"': 0.09; 'schrieb':
0.09; 'subject:Permission': 0.09; 'subject:skip:P 10': 0.09;
'memory': 0.15; 'assumption': 0.16; 'chrisa': 0.16; 'cooperative':
0.16; 'described.': 0.16; 'excel,': 0.16; 'flag': 0.16;
'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16;
'gollwitzer': 0.16; 'lock.': 0.16; 'machine,': 0.16; 'operation.':
0.16; 'permitted.': 0.16; 'processes.': 0.16; 'sounds': 0.16;
'tries': 0.16; 'word:': 0.16; 'wrote:': 0.16; 'applications':
0.17; 'feb': 0.17; 'to:addr:python-list': 0.20; 'subject:: [':
0.21; 'subject:] ': 0.21; 'machine': 0.22; 'doubt': 0.22; 'fri,':
0.22; 'anything': 0.25; 'again,': 0.26; 'library': 0.26;
'opening': 0.26; 'else': 0.27; 'chris': 0.28; 'think': 0.32;
"doesn't": 0.32; 'christian': 0.32; 'encountered': 0.32; 'message-
id:@mail.gmail.com': 0.32; 'but': 0.32; 'same': 0.34; 'header:In-
Reply-To:1': 0.34; 'received:google.com': 0.34;
'from:addr:gmail.com': 0.35; 'files': 0.36; 'built': 0.36;
'cases': 0.36; 'change': 0.36; 'those': 0.36; "it's": 0.37;
'received:209.85': 0.37; 'hard': 0.37; 'file': 0.38;
'received:209': 0.39; 'least': 0.39; 'still': 0.40; 'program.':
0.40; 'want': 0.40; 'view': 0.60; 'skip:o 10': 0.61; 'writer':
0.62; 'here': 0.62; 'skip:o 20': 0.63; 'complete': 0.64; 'lock':
0.64; 'touch': 0.65; 'and,': 0.69; 'excel': 0.69; 'readers': 0.69;
'exclusive': 0.71; 'locking': 0.84; 'weird': 0.84; 'locked': 0.93;
'url-ip:92/8': 0.93
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
bh=swwWXXizF5Ftb5hVuXrtMR6cT6GPAadoTHHshp4zi8o=;
b=FTP/O27pTTuFpGDhup3W/HI1fbhicdxi/3agaSJdtNv+kn6XXK1drKnrI6z6nzfCR2
lEz48PKvUzLRKeZJf/XhAkD1wNVGXSszgu+IMK6NFOkETzmUpf1LP8gG5miAOeTUZbku
1ojZS42rvan0CtLGLh1VZLfrBgod/zlNEpJErqPVTUESjUC5uL9SM9Xu8olB4kl3hhvy
3CLXuQ0JcpY8KIUC07QcgDCZvkUM6QfHH8KFbLrpn4oGwHeXbwGN5bQRdDshcN9Ke0eR
xEMEpCjt55yRyiCKdTdMVb4mp/5mZNcjOWdIoaJP1IbARHOAK5u7HNYQjqJIbMBV3A0C
KCbQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=swwWXXizF5Ftb5hVuXrtMR6cT6GPAadoTHHshp4zi8o=;
b=1tHbrMaZr1qZ8VUIirVMOagkHw0VktIhWEksiTMTz0qlGFyOdRSAFXbDiuUWrU7HAp
b4VGbpdlcy5yXoVdch5c0EODOYBEMvnF7aRpHM/9AOLJg0v7oShUg25qtI34x1CTnFRZ
jJC5J5sUJH6Y//Bd6mob+IYAryy9G5MzSAMpsnSAwTihwjPRs/KzzXh0JDOANwSBzrAm
WJw8D3qB/SjeW7hX/RINzF9XqzrM0AxPL/GUw8ncDpg9BGxJ/SpdkTxv/MXjariwt0ic
72LikPPGW2RTZXGsOscCgmzNVVuJw/HNB71cRsikFHXVUw0uO39QhmydhT3ZonTgJVtP
x8og==
X-Gm-Message-State: AOAM533qfymHibct5/2mn5Gn4nmfXJuywbwgjrc898N1ODt3gAvlAT8T
MB7DnzjUmHqPV0lFfP4KYGvdI+lpbH/p2f4bcjQG9T4W
X-Google-Smtp-Source: ABdhPJzH74uDysaNEu/aMu1lLFsMyCxqyRhrUCx6wv/hv0nyZGCNcaCrOdNbsCTohaocsi/Of3rCKda6qBhf0J86Q6M=
X-Received: by 2002:adf:fb4a:: with SMTP id c10mr7598651wrs.243.1644527503590;
Thu, 10 Feb 2022 13:11:43 -0800 (PST)
In-Reply-To: <su3tb4$ac5$1@dont-email.me>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CAPTjJmp4W9mMwuND85wST67vyC_KtnB6RbXPHqqNOgHJSKT3rQ@mail.gmail.com>
X-Mailman-Original-References: <6d76da9d-9d8d-4646-a05d-798e3e7bdcf2n@googlegroups.com>
<su0d1v$ju2$1@dont-email.me>
<3026c9cf-9d36-9301-032c-2d31b61866e1@mrabarnett.plus.com>
<mailman.70.1644432802.7010.python-list@python.org>
<8kka0h9l1eaogdvouo3g9ng8t85c01mm3e@4ax.com>
<CAPTjJmq+6UNruEGAHMyBQOtCk5LpwOz2caVkfhm=U8Mn4SqDNA@mail.gmail.com>
<mailman.95.1644522198.7010.python-list@python.org>
<su3tb4$ac5$1@dont-email.me>
 by: Chris Angelico - Thu, 10 Feb 2022 21:11 UTC

On Fri, 11 Feb 2022 at 07:57, Christian Gollwitzer <auriocus@gmx.de> wrote:
>
> Am 10.02.22 um 20:43 schrieb Chris Angelico:
> > On Fri, 11 Feb 2022 at 06:41, Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote:
> >> While not tested with Excel, I /have/ encountered cases where an
> >> application has locked the file for writing, but multiple readers are
> >> permitted. Those would fail then if one attempts to write. {The other view
> >> point is a library that does a complete open/read\write-all/close to memory
> >> -- such an application might open/read/close, then Excel opens/locks, with
> >> the application only learning of the change when it attempts the
> >> open/write/close cycle}
> >>
> >
> > Yeah, I doubt Excel is that sophisticated. It's built on an assumption
> > of single-user operation.
> >
>
> It guards against multiple user opening the same file over network
> drives. All MS applications create lock files with weird names like
> ~.original-name.xlsx etc. If you open a file on the network share, and a
> colleague tries to open it from a second machine, then he will get the
> message "File locked by user xy from machine z". See here for word:
> https://support.microsoft.com/en-us/topic/-the-document-is-locked-for-editing-by-another-user-error-message-when-you-try-to-open-a-document-in-word-10b92aeb-2e23-25e0-9110-370af6edb638
>

Yeah, but that's still just hard locking, no "one writer multiple
readers" system or anything.

> I believe (haven't tested) that this is cooperative locking only and it
> doesn't help if you alter the file from another program. On the same
> machine though, I think that Excel opens the file with a flag to lock it
> from other processes. At least that was my observation and also what the
> OP has described.
>

That sounds right; and, again, it's just a simple exclusive lock.
Excel doesn't have the sophistication to need or want anything more
than simple "I have this file, nobody else touch it" exclusive
locking.

ChrisA

Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'

<mailman.109.1644608287.7010.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17037&group=comp.lang.python#17037

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: hjp-pyt...@hjp.at (Peter J. Holzer)
Newsgroups: comp.lang.python
Subject: Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'
Date: Fri, 11 Feb 2022 20:37:57 +0100
Lines: 47
Message-ID: <mailman.109.1644608287.7010.python-list@python.org>
References: <6d76da9d-9d8d-4646-a05d-798e3e7bdcf2n@googlegroups.com>
<su0d1v$ju2$1@dont-email.me>
<3026c9cf-9d36-9301-032c-2d31b61866e1@mrabarnett.plus.com>
<mailman.70.1644432802.7010.python-list@python.org>
<8kka0h9l1eaogdvouo3g9ng8t85c01mm3e@4ax.com>
<CAPTjJmq+6UNruEGAHMyBQOtCk5LpwOz2caVkfhm=U8Mn4SqDNA@mail.gmail.com>
<mailman.95.1644522198.7010.python-list@python.org>
<su3tb4$ac5$1@dont-email.me>
<CAPTjJmp4W9mMwuND85wST67vyC_KtnB6RbXPHqqNOgHJSKT3rQ@mail.gmail.com>
<20220211193757.yf3sv3j5glknpmz6@hjp.at>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
protocol="application/pgp-signature"; boundary="icxgojc5grwgwcuy"
X-Trace: news.uni-berlin.de GXFPlUYK9lfBEbIGyyhhcA38c4kPFXsZRgJdthaUpWNg==
Return-Path: <hjp-python@hjp.at>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'content-
type:multipart/signed': 0.05; 'angelico': 0.09; 'content-
type:application/pgp-signature': 0.09; 'enabled': 0.09;
'filename:fname piece:asc': 0.09; 'filename:fname
piece:signature': 0.09; 'filename:fname:signature.asc': 0.09;
'it"': 0.09; 'subject:Permission': 0.09; 'subject:skip:P 10':
0.09; '"creative': 0.16; '+1100,': 0.16; '__/': 0.16;
'challenge!"': 0.16; 'from:addr:hjp-python': 0.16;
'from:addr:hjp.at': 0.16; 'from:name:peter j. holzer': 0.16;
'hjp@hjp.at': 0.16; 'holzer': 0.16; 'reality.': 0.16; 'stross,':
0.16; 'url-ip:212.17.106.137/32': 0.16; 'url-ip:212.17.106/24':
0.16; 'url-ip:212.17/16': 0.16; 'url:hjp': 0.16; '|_|_)': 0.16;
'wrote:': 0.16; 'to:addr:python-list': 0.20; 'subject:: [': 0.21;
'subject:] ': 0.21; 'anything': 0.25; 'else': 0.27; 'chris': 0.28;
'sense': 0.28; "doesn't": 0.32; 'but': 0.32; 'same': 0.34;
"didn't": 0.34; 'header:In-Reply-To:1': 0.34; 'really': 0.37;
'file': 0.38; 'way': 0.38; 'least': 0.39; 'want': 0.40;
'received:212': 0.62; 'clear': 0.64; 'touch': 0.65;
'received:userid': 0.66; 'office': 0.68; 'excel': 0.69; 'url-
ip:212/8': 0.69; 'ability': 0.71; 'exclusive': 0.71; 'editing':
0.84; 'received:at': 0.84; 'somebody': 0.91
Content-Disposition: inline
In-Reply-To: <CAPTjJmp4W9mMwuND85wST67vyC_KtnB6RbXPHqqNOgHJSKT3rQ@mail.gmail.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <20220211193757.yf3sv3j5glknpmz6@hjp.at>
X-Mailman-Original-References: <6d76da9d-9d8d-4646-a05d-798e3e7bdcf2n@googlegroups.com>
<su0d1v$ju2$1@dont-email.me>
<3026c9cf-9d36-9301-032c-2d31b61866e1@mrabarnett.plus.com>
<mailman.70.1644432802.7010.python-list@python.org>
<8kka0h9l1eaogdvouo3g9ng8t85c01mm3e@4ax.com>
<CAPTjJmq+6UNruEGAHMyBQOtCk5LpwOz2caVkfhm=U8Mn4SqDNA@mail.gmail.com>
<mailman.95.1644522198.7010.python-list@python.org>
<su3tb4$ac5$1@dont-email.me>
<CAPTjJmp4W9mMwuND85wST67vyC_KtnB6RbXPHqqNOgHJSKT3rQ@mail.gmail.com>
 by: Peter J. Holzer - Fri, 11 Feb 2022 19:37 UTC
Attachments: signature.asc (application/pgp-signature)

On 2022-02-11 08:11:32 +1100, Chris Angelico wrote:
> Excel doesn't have the sophistication to need or want anything more
> than simple "I have this file, nobody else touch it" exclusive
> locking.

Interestingly, Excel did have the ability for multiple users editing the
same file at some time (maybe early 2000s? Way before Google docs or
Office 365). It had to be explicitely enabled and it didn't work very
reliably (at least not with Samba as file servers), so we never really
used it but it is clear that somebody at MS thought that users needed or
at least wanted that ability.

hp

--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp@hjp.at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"

Attachments: signature.asc (application/pgp-signature)
Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'

<mailman.111.1644697032.7010.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17046&group=comp.lang.python#17046

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: hjp-pyt...@hjp.at (Peter J. Holzer)
Newsgroups: comp.lang.python
Subject: Re: PermissionError: [Errno 13] Permission denied: 'Abc.xlsx'
Date: Sat, 12 Feb 2022 21:17:01 +0100
Lines: 85
Message-ID: <mailman.111.1644697032.7010.python-list@python.org>
References: <3026c9cf-9d36-9301-032c-2d31b61866e1@mrabarnett.plus.com>
<mailman.70.1644432802.7010.python-list@python.org>
<8kka0h9l1eaogdvouo3g9ng8t85c01mm3e@4ax.com>
<CAPTjJmq+6UNruEGAHMyBQOtCk5LpwOz2caVkfhm=U8Mn4SqDNA@mail.gmail.com>
<mailman.95.1644522198.7010.python-list@python.org>
<su3tb4$ac5$1@dont-email.me>
<CAPTjJmp4W9mMwuND85wST67vyC_KtnB6RbXPHqqNOgHJSKT3rQ@mail.gmail.com>
<20220211193757.yf3sv3j5glknpmz6@hjp.at>
<mailman.109.1644608287.7010.python-list@python.org>
<s8qd0hld254olr1t47ujtrrc10arb71mut@4ax.com>
<20220212201701.cqkjttd4t3ntpuza@hjp.at>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
protocol="application/pgp-signature"; boundary="rc36k7a4cf3heolt"
X-Trace: news.uni-berlin.de S22oQSdQcTO7pKUATSiHrQSB5YTn8BsQQUIya+L2GVdg==
Return-Path: <hjp-python@hjp.at>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.010
X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; '2022': 0.05; 'content-
type:multipart/signed': 0.05; 'apparently': 0.09; 'content-
type:application/pgp-signature': 0.09; 'enabled': 0.09;
'filename:fname piece:asc': 0.09; 'filename:fname
piece:signature': 0.09; 'filename:fname:signature.asc': 0.09;
'subject:Permission': 0.09; 'subject:skip:P 10': 0.09; 'that.':
0.15; '"creative': 0.16; '__/': 0.16; 'challenge!"': 0.16;
'excel,': 0.16; 'from:addr:hjp-python': 0.16; 'from:addr:hjp.at':
0.16; 'from:name:peter j. holzer': 0.16; 'hjp@hjp.at': 0.16;
'holzer': 0.16; 'reality.': 0.16; 'skip:> 10': 0.16; 'stross,':
0.16; 'url-ip:212.17.106.137/32': 0.16; 'url-ip:212.17.106/24':
0.16; 'url-ip:212.17/16': 0.16; 'url:excel': 0.16; 'url:hjp':
0.16; '|_|_)': 0.16; 'wrote:': 0.16; 'feb': 0.17; 'to:addr:python-
list': 0.20; 'subject:: [': 0.21; 'subject:] ': 0.21; 'fri,':
0.22; 'version': 0.23; 'again,': 0.26; "wasn't": 0.26; "isn't":
0.27; 'sense': 0.28; 'program': 0.31; '(as': 0.32; 'but': 0.32;
"i'm": 0.33; 'there': 0.33; 'same': 0.34; "didn't": 0.34;
'requires': 0.34; 'header:In-Reply-To:1': 0.34; 'yes,': 0.35;
'files': 0.36; 'people': 0.36; 'really': 0.37; 'file': 0.38;
'way': 0.38; 'could': 0.38; 'changes': 0.39; 'added': 0.39;
'least': 0.39; 'single': 0.39; 'edit': 0.39; 'use': 0.39;
'shared': 0.39; 'files.': 0.40; 'true.': 0.40; 'years.': 0.40;
'lack': 0.60; 'mode': 0.62; 'point.': 0.62; 'received:212': 0.62;
'days': 0.62; 'key': 0.64; 'clear': 0.64; 'received:userid': 0.66;
'worked': 0.67; 'skip:e 20': 0.67; 'office': 0.68; 'operations':
0.68; 'excel': 0.69; 'following:': 0.69; 'url-ip:212/8': 0.69;
'ability': 0.71; 'collaborate': 0.76; 'quick': 0.77; 'editing':
0.84; '"microsoft': 0.84; 'received:at': 0.84; '365': 0.88;
'somebody': 0.91; 'stopping': 0.91; 'storage': 0.95
Content-Disposition: inline
In-Reply-To: <s8qd0hld254olr1t47ujtrrc10arb71mut@4ax.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <20220212201701.cqkjttd4t3ntpuza@hjp.at>
X-Mailman-Original-References: <3026c9cf-9d36-9301-032c-2d31b61866e1@mrabarnett.plus.com>
<mailman.70.1644432802.7010.python-list@python.org>
<8kka0h9l1eaogdvouo3g9ng8t85c01mm3e@4ax.com>
<CAPTjJmq+6UNruEGAHMyBQOtCk5LpwOz2caVkfhm=U8Mn4SqDNA@mail.gmail.com>
<mailman.95.1644522198.7010.python-list@python.org>
<su3tb4$ac5$1@dont-email.me>
<CAPTjJmp4W9mMwuND85wST67vyC_KtnB6RbXPHqqNOgHJSKT3rQ@mail.gmail.com>
<20220211193757.yf3sv3j5glknpmz6@hjp.at>
<mailman.109.1644608287.7010.python-list@python.org>
<s8qd0hld254olr1t47ujtrrc10arb71mut@4ax.com>
 by: Peter J. Holzer - Sat, 12 Feb 2022 20:17 UTC
Attachments: signature.asc (application/pgp-signature)

On 2022-02-11 18:20:19 -0500, Dennis Lee Bieber wrote:
> On Fri, 11 Feb 2022 20:37:57 +0100, "Peter J. Holzer" <hjp-python@hjp.at>
> declaimed the following:
>
> >Interestingly, Excel did have the ability for multiple users editing the
> >same file at some time (maybe early 2000s? Way before Google docs or
^^^^^^^^^^
> >Office 365). It had to be explicitely enabled and it didn't work very
^^^^^^^^^^
> >reliably (at least not with Samba as file servers), so we never really
> >used it but it is clear that somebody at MS thought that users needed or
> >at least wanted that ability.
>
> A quick Google does find mention of "shared workbooks":
> https://docs.microsoft.com/en-us/office/troubleshoot/excel/use-shared-workbook

| To make changes to a shared workbook that was created in Microsoft Excel 97
| or a later version of Excel, you must use Excel 97 or a later version of Excel.

So apparently that ability was added in Excel 97.

> The preferred mode requires "Microsoft 365 subscription" and latest
> Office version:

Yes, these days you would use Office 365 for that kind of functionality,
but that didn't exist at that time (neither did cloud storage systems).

Network file systems like NFS or SMB did exist, though, and people
wanted (or at least MS thought they wanted) to collaborate on Excel
files. So Excel provided a way to do that.

That was sort of the point: That Excel was not *always* single-user.
There have been ways that multiple users could simultaneously edit the
same file for 25 years.

> However -- the key feature is that these are Excel-Excel(-Excel...)
> operations

I'm pretty sure that that worked entirely through the file system. So
the only thing stopping you from implementing it in a different program
was the lack of documentation (as was typical for MS in the 1990's).

But again, this wasn't my point. My point was that Excel files are
designed to be used only by a single process isn't true.

hp

--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp@hjp.at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"

Attachments: signature.asc (application/pgp-signature)
1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor