Python Forum
PermissionError while running function
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PermissionError while running function
#18
Thanks! I tried the one you suggested, as well as
...\\XAS\\mca_CeNO3_I1\\mca_{:05}
Both give this error:

  File "\\...\home\s\myacc\Documents\Python Scripts\Functions.py", line 129, in sum_import_data_2
    current_mca = os.listdir(mca_file)

FileNotFoundError: [WinError 3] The system cannot find the path specified: '\\\\...\\home\\s\\myacc\\Documents\\XAS\\mca_CeNO3_I1\\mca_{:05}'
, so I'm guessing listdir doesn't work properly with this definition of mca_file and I should switch to another command.
Reply


Messages In This Thread
RE: PermissionError while running function - by Laplace12 - Aug-02-2020, 09:48 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  the order of running code in a decorator function akbarza 2 536 Nov-10-2023, 08:09 AM
Last Post: akbarza
  Class function is not running at all even though it is clearly run in the code SheeppOSU 2 2,121 Sep-26-2020, 10:54 PM
Last Post: SheeppOSU
  Fixing "PermissionError: [Errno 13] Permission denied" puredata 17 72,688 Mar-09-2020, 03:20 PM
Last Post: syssy
  Running function from parent module which has a loop in it. ta2909i 1 2,695 Nov-18-2019, 07:04 PM
Last Post: Gribouillis
  PermissionError: [Errno 13] Permission denied: error leviathan54 2 46,688 Apr-20-2019, 12:51 AM
Last Post: leviathan54
  [python] PermissionError: [Errno 13] Permission denied akamouch 1 42,462 Feb-07-2019, 03:28 PM
Last Post: ichabod801
  PermissionError Quavin 1 2,774 Dec-02-2017, 10:34 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020