kspviswa / local-packet-whisperer

A Fun project using Ollama, Streamlit & PyShark to chat with PCAP/PCAPNG files locally, privately!
MIT License
30 stars 11 forks source link

Analysis folder missing #2

Closed automateyournetwork closed 4 months ago

automateyournetwork commented 4 months ago

Hi we are trying local packet whisperer and when we upload the file we get this error:

[Errno 2] No such file or directory: 'analysis/test1.pcap' Traceback: File "/Users/dzacks/local-packet-whisperer/.venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script exec(code, module.dict) File "/Users/dzacks/local-packet-whisperer/main.py", line 105, in with open(f'analysis/{packetFile.name}', 'wb') as f

we are trying this from scratch on a mac; when we upload the file we get this error

where is the analysis folder coming from? are you sure you are making this folder and saving the upload into this folder?

John

kspviswa commented 4 months ago

Thanks @automateyournetwork for the catch. I excluded the test pcap/pcapng files while commit and it excluded the analysis folder as well 🤦🏻. Fixed now https://github.com/kspviswa/local-packet-whisperer/commit/63b52925f1977bc77721a0cd783160dc362e6c09 . Please check and let me know :) .

automateyournetwork commented 4 months ago

Thanks, it worked.

On Sat, Mar 9, 2024 at 11:26 AM Viz @.***> wrote:

Thanks @automateyournetwork https://github.com/automateyournetwork for the catch. I excluded the test pcap/pcapng files while commit and it excluded the analysis folder as well. Fixed now 63b5292 https://github.com/kspviswa/local-packet-whisperer/commit/63b52925f1977bc77721a0cd783160dc362e6c09 . Please check and let me know :) .

— Reply to this email directly, view it on GitHub https://github.com/kspviswa/local-packet-whisperer/issues/2#issuecomment-1986904685, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKQSYCVSGYUEX32FLG4JTNLYXMZ3JAVCNFSM6AAAAABEOFKO7CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBWHEYDINRYGU . You are receiving this because you were mentioned.Message ID: @.***>

kspviswa commented 4 months ago

@automateyournetwork - I just published a new release. Please take a look 😀. In the latest release, you can pip install lwp and start using LPW instantly. Also I moved away from the analysis folder structure for better maintability as well. Take it for a spin and let me know 😇