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
#2
Can you provide an error. The best way to get the error from a .exe file is to open up the snipping tool and click create as soon as the error shows to freeze the screen and get a picture of the error before the .exe file closes
Reply


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