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
  Pyinstaller with Sys.Argv[] - “Failed to Execute Script”? ironfelix717 0 102 Aug-07-2019, 02:29 PM
Last Post: ironfelix717
  Missing required dependencies when using pyinstaller Ghonim 15 2,206 Jul-15-2019, 08:47 AM
Last Post: shubhthkr
  PyInstaller and RStudio conflict rowdy 2 239 Jun-22-2019, 03:19 PM
Last Post: rowdy
  Pyinstaller exe won't launch after crash kainev 0 172 May-11-2019, 06:06 PM
Last Post: kainev
  Pyinstaller Maximum recursion bug scales11 7 1,057 Apr-10-2019, 07:06 PM
Last Post: scales11
  How to embed mp3 file with Pyinstaller panoss 2 1,938 Apr-01-2019, 01:13 PM
Last Post: yleongtyl
  Pyinstaller can not execute script. negru555 0 311 Jan-27-2019, 05:15 PM
Last Post: negru555
  pyinstaller used 3.7 to build instead 2.7 jacklee26 4 530 Jan-17-2019, 10:35 AM
Last Post: snippsat
  Pyinstaller failing JP_ROMANO 2 707 Jan-16-2019, 06:07 PM
Last Post: JP_ROMANO
  Problems running exe file from pyinstaller ersa21 4 456 Jan-15-2019, 06:36 PM
Last Post: snippsat

Forum Jump:


Users browsing this thread: 1 Guest(s)