[Errno 2] No such file or directory
See original GitHub issueHello. 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:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
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.