question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Misleading error message when passing non-existent filename

See original GitHub issue

Steps to reproduce: Run xlsx2csv, passing it a non-existent filename as an argument

Expected result: Error message stating that the file does not exist

Actual result: Error message saying:

Invalid xlsx file: (filename)
Exception AttributeError: "Xlsx2csv instance has no attribute 'ziphandle'" in <bound method Xlsx2csv.__del__ of <__main__.Xlsx2csv instance at 0x02BD9940>> ignored

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:6
  • Comments:8

github_iconTop GitHub Comments

6reactions
jamesmstonecommented, Jun 12, 2019

Interesting… I got the same error when attempting to convert an old xls not an xlsx

2reactions
hkmalycommented, Mar 10, 2020

I got the same error when I did a mistake in script and called xlsx2csv on file.xlsx.xlsx instead of file.xlsx … took me a moment to notice the difference … anyway, saying the file doesn’t exists would be clearer.

Read more comments on GitHub >

github_iconTop Results From Across the Web

You receive an error message when you save a file after the ...
Microsoft Excel cannot access the file 'Network path'. You may receive this error message for the following reasons: The file name or path...
Read more >
How to Handle the FileNotFoundException in C# | Rollbar
The FileNotFoundException occurs in C# when the system is unable to locate a file when the program is executed. Learn how to handle...
Read more >
Files and Exceptions in Python - Section.io
This tutorial will teach us how to work with files and exceptions in Python. We will look at how perform read, write, and...
Read more >
Java says FileNotFoundException but file exists - Stack Overflow
The named file does not exist. This could be for a number of reasons including: The pathname is simply wrong · The named...
Read more >
Writing tests - bats-core's documentation! - Read the Docs
For example, let's say you're testing that the foo command, when passed a nonexistent filename, exits with a 1 status code and prints...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found