Python Forum
Pyinstaller exe file permissions
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pyinstaller exe file permissions
#1
Hello,

First post so I hope it is ok.

I have written a Python program that connects to a REST API, reads a bunch of data and then saves it to a CSV file.

This works fine on my Windows 10 PC (I am a local admin user and the PC logs on to an AD domain).

I have used Pyinstaller to create a single Windows 10 exe file which also runs ok.

I have sent this exe file to a customer to collect some data from his server using the API but it fails at the stage that the script tries to create the CSV file for writing - the code for this is shown below.

############################# Create timestamp and open CSV file for writing ##########################################

csvfilename = host + '_resources_' + datetime.now().strftime("%Y-%m-%d_%H-%M-%S") + '.csv'
csvfile = open(csvfilename, 'w', newline='')
The customer claims he has admin rights on his PC and we have tried running the exe in various directories where the logged in user can save normal files from Word, Excel etc.

Is there some permissions that need to be allocated to the exe file? Google has failed me so I am hoping to get some pointers here from others who may have encountered similar issues.

Thanks for reading.
Reply


Messages In This Thread
Pyinstaller exe file permissions - by Rainbow_Crash - Jul-11-2019, 03:26 PM
RE: Pyinstaller exe file permissions - by SheeppOSU - Jul-11-2019, 04:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Using pyinstaller with .ui GUI files - No such file or directory error diver999 3 3,362 Jun-27-2023, 01:17 PM
Last Post: diver999
  Pyinstaller distribution file seems too large hammer 4 2,723 Mar-31-2022, 02:33 PM
Last Post: snippsat
  problem with pyinstaller to create an executable file atlass218 0 2,574 May-15-2021, 11:01 AM
Last Post: atlass218
  Pyinstaller create this error :“File ”multiprocessing\connection.py“, line 691 Formationgrowthhacking 2 3,632 Apr-30-2020, 10:26 AM
Last Post: buran
  the exe file by generated by pyinstaller ,can't get the PYTHONPATH roger2020 11 7,029 Jan-14-2020, 11:07 AM
Last Post: roger2020
  How to embed mp3 file with Pyinstaller panoss 2 5,938 Apr-01-2019, 01:13 PM
Last Post: yleongtyl
  Problems running exe file from pyinstaller ersa21 4 7,860 Jan-15-2019, 06:36 PM
Last Post: snippsat
  Problem with permissions gehrenfeld 0 2,015 Dec-15-2018, 05:31 PM
Last Post: gehrenfeld
  Building a .msi with Admin permissions originalang 0 2,550 May-14-2018, 02:50 AM
Last Post: originalang
  PyInstaller, how to create library folder instead of library.zip file ? harun2525 2 4,812 May-06-2017, 11:29 AM
Last Post: harun2525

Forum Jump:

User Panel Messages

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