Bottom Page

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.
Quote
#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
Age Doesn't Matter, Your Passion Does
- Shreya Jain
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  How to embed mp3 file with Pyinstaller panoss 2 2,140 Apr-01-2019, 01:13 PM
Last Post: yleongtyl
  Problems running exe file from pyinstaller ersa21 4 934 Jan-15-2019, 06:36 PM
Last Post: snippsat
  Problem with permissions gehrenfeld 0 276 Dec-15-2018, 05:31 PM
Last Post: gehrenfeld
  Building a .msi with Admin permissions originalang 0 547 May-14-2018, 02:50 AM
Last Post: originalang
  PyInstaller, how to create library folder instead of library.zip file ? harun2525 2 1,732 May-06-2017, 11:29 AM
Last Post: harun2525

Forum Jump:


Users browsing this thread: 1 Guest(s)