r/PythonLearning • u/MarionberryNo3679 • Jul 27 '25
Help Request Keep getting Error for Ai programming
I keep getting this error message when I try to put in the command “python3 ./agent.py console” and says “no such file in directory” little confused
7
u/tazdraperm Jul 27 '25
I know this is not helpful at all, but why on earth would you make a photo of your laptop? And why from so far away?
1
u/localDev2104 Jul 27 '25
Man would suggest you something I know this is livekit and I've faced the same thing, can you try doing the venv thing again but this time use python -m venv venv instead of python3.
1
u/MarionberryNo3679 Jul 28 '25
I used python3 instead of python because im on mac and not windows
1
11
u/HyperWinX Jul 27 '25
Maybe, before "AI Programming", you should learn the language and learn reading the errors?
-9
3
3
2
2
u/rlt0w Jul 27 '25
You're in the wrong directory. Run pwd to validate. It can't find agent.py, you also never installed the dependencies correctly. You should be using a virtual environment as well.
I think building out AI agents might be above your current skill level. Get a simple package running first. Also, in Mac the default screenshot hotkey is command+shift+3 for entire screen or 4 for selection.
1
u/__aurvandel__ Jul 27 '25
I don't use python much at the moment but even if it did run I don't see anywhere that you're initializing that object and doing anything with it.
What happens if you run that file using the debugger? Also, I'm not sure you need the ./ before the file name since your explicitly invoking python already. You only use the ./ If you've made that file executable and have a shebang at the top that links to the python interpreter. That's where I would start.
1
u/Scholfo Jul 27 '25
This is the problem with AI… creates folder-structures that drive you crazy.
Edit: typo
1

4
u/Paulxro Jul 27 '25 edited Jul 27 '25
The error is likely from the previous command. You are attempting to change directory (cd), but the directory you are switching to doesn’t exist. Looking at your project structure, I’m guessing you skipped the “Project Olivia” folder prior to “Project Olivia 1.5”
Assuming the “Project Olivia” folder is in your desktop you could try:
cd “~/Desktop/Project Olivia/Project Olivia 1.5”
Additionally, it appears that you are already in the “Project Olivia” folder, so running:
cd “Project Olivia 1.5”
Should be equivalent to the previous command.