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.

[Errno 2] No such file or directory

See original GitHub issue

Hello. When I trying to generate report with format xlsx or docx, I have the following error at the end.

[+] Processed detailed analysis for 1040 of 1040. [+] Finished writing detailed analysis… [!] There was a problem processing campaign ID 14! L… Details: [Errno 2] No such file or directory: ‘Gophish Results for Extend mailbox capacity / group 1.xlsx’`

When I try to do it with --format quick, all is working. Maybe an issue in the generation of the output files ? does your script support special char like slash ( / ) ?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
MrGoldenpiochecommented, Nov 6, 2019

I confirm that the problem is because I using a Slash ( / ) in my campaign. You should parse the campaign name in your function get_basic_campaign_info to remove special char like the ( / )

self.cam_name = self.campaign.name

modify for example like that self.cam_name = self.campaign.name.replace('/','')

of course this modification is not perfect but it can give you an idea of how to fix it

0reactions
chrismaddalenacommented, Dec 13, 2019

If you are using macOS the latest version will not allow Python to access your folder, so it can’t find the file. You’ll need to sudo the command or figure out how to grant the permissions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FileNotFoundError: [Errno 2] No such file or directory [duplicate]
You are using a relative path, which means that the program looks for the file in the working directory. The ...
Read more >
Python FileNotFoundError: [Errno 2] No such file or directory ...
The Python FileNotFoundError: [Errno 2] No such file or directory error is often raised by the os library. This error tells you that...
Read more >
How to fix FileNotFoundError Errno 2 no such file or directory
The error FileNotFoundError Errno 2 no such file or directory occurs when Python cannot find the specified file in the current directory.
Read more >
FileNotFoundError: [Errno 2] No such ... - Net-Informations.Com
The error "FileNotFoundError: [Errno 2] No such file or directory" is telling you that there is no file of that name in the...
Read more >
FileNotFoundError: [Errno 2] No such file or directory
The Python "FileNotFoundError: [Errno 2] No such file or directory" occurs when we try to open a file that doesn't exist in the...
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