Python Forum
[SOLVED] Requiring help running an old Python script (non Python savvy user)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Requiring help running an old Python script (non Python savvy user)
#9
You need to specify the csv file name when you run it or it will try to use the default filename from line 604.
That is why when you run it properly you get the ValueError on line 204
Error:
ValueError: invalid literal for int() with base 10: 'a'
Most likely your csv file is not in the format expected by the script. Note, it can be some very small difference, but it cause the error.

I guess you run it with different csv file from the one you posted here as sample. According to error traceback, you have a in the first column and in expects number (int). Check your file
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
RE: Requiring help running an old Python script (non Python savvy user) - by buran - Jan-16-2021, 06:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Music Python Script Repeating Number When Saving Facebook Photos ThuanyPK 0 7 58 minutes ago
Last Post: ThuanyPK
  Trying to generating multiple json files using python script dzgn989 4 215 May-10-2024, 03:09 PM
Last Post: deanhystad
  Problems passing arguments containing spaces to bash script and then on to python kaustin 6 510 Apr-03-2024, 08:26 PM
Last Post: deanhystad
  ChromeDriver breaking Python script genericusername12414 1 366 Mar-14-2024, 09:39 AM
Last Post: snippsat
  using PowerShell from Python script for mounting shares tester_V 8 617 Mar-12-2024, 06:26 PM
Last Post: tester_V
  No Internet connection when running a Python script basil_555 8 751 Mar-11-2024, 11:02 AM
Last Post: snippsat
Question Running Python script through Task Scheduler? Winfried 8 660 Mar-10-2024, 07:24 PM
Last Post: Winfried
  Is possible to run the python command to call python script on linux? cuten222 6 830 Jan-30-2024, 09:05 PM
Last Post: DeaD_EyE
  run SQL without user intervention python dawid294 0 260 Jan-19-2024, 01:11 PM
Last Post: dawid294
  python script is hanging while calling a procedure in database prasanthi417 4 605 Jan-17-2024, 02:33 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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