Hi Prashanth it usually happens when you have not installed python properly. i will recommend to uninstall everything and follow video again , i believe it will resolve for you if not then we can have a small session. thanks
hi i have this error conn = _connect(dsn, connection_factory=connection_factory, **kwasync) psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: FATAL: password authentication failed for user "openpg"
Hi, I hope you are doing well. I am not able to generate the launch.json file. I am using Odoo 17, VS Code 1.86.1, and Python 3.11.8. When I click on Run -> Add configuration, it shows me Python debugger -> Python file. However, clicking on it does nothing.
Sorry for late reply i was actually away for some days. Manually Creating launch.json for Odoo Open Your Project in VS Code: Make sure your Odoo project folder is open in VS Code. Access the .vscode Folder: Navigate to the .vscode folder at the root of your project in the Explorer pane. If it doesn't exist, you'll need to create it. Inside the .vscode folder, look for a launch.json file. If it doesn't exist, create it by right-clicking in the Explorer pane, selecting "New File", and naming it launch.json. Edit launch.json: Open launch.json and add the necessary configuration for running Odoo. i have added the json code so you can copy and paste it in here
i think reinstalling Odoo 16 will resolve this issue, have you checked if you changed port when you installed Odoo 16? I suggest uninstall odoo16 and postgres and then install Odoo 16 , postgres will also be installed along with that. thx
Hi Amara , i am sorry i could not understood your question well. you mean to give custom adons path? it will be great if you provide more details that would be great thanks
First, ensure that the launch.json file is correctly set up for Odoo development. if not then you can just create and paste the code attched in description. Make sure the correct Python interpreter is selected for the project. Odoo development typically requires a specific Python version, and ensuring VS Code is using the right interpreter is crucial: Use the command palette (Ctrl+Shift+P or Cmd+Shift+P on macOS). Type and select Python: Select Interpreter. Choose the interpreter that matches the one used by your Odoo development environment. also make sure the path of python is also right. i hope this will resolve your issue
@@vishnus9117 Commenting out or removing the logfile parameter in odoo.conf prevents Odoo from writing logs to a file. This does not stop Odoo from logging; it merely stops the logging to the specified file, allowing you to rely on other logging mechanisms.
so sorry for late reply, actually iwas away for someday , ok The ModuleNotFoundError: No module named 'odoo' error in Python typically indicates that the Python environment you're using to run Odoo does not have the Odoo module installed or cannot locate it. please check if you have given python path correctly in .json file and also give addons path in odoo.conf file.
The error message you mentioned indicates that the odoo-bin server cannot find the specified configuration file. Double-check the path: Ensure that the odoo.conf file exists at the specified location: C:\Users\user\Desktop\odoo_16\server\odoo.conf. Make sure there are no typos in the path and that the file is accessible. check all path aswell
make sure that python has been installed and you see python version in your vscode on bottom left or bottom right side. and dont forget to open any python file as i said in the video
@@tahirmughal9775 after opening the file when you click run menu then choose add configuration file, when you click add configuration , it will create launch file. if not then create .vscode folder and the launch.json file
Hello @John . if you click on settings andin settings just scroll to the bottom then you will see Click on link "Active the developer mode" or "Active the developer mode (with assets)" , just click on any. thanks
hello Rose, Both of the errors you mention are related to database creation. I would suggest that uninstalling PostgreSQL and odoo 16 and then install odoo 16 from the start along with postgres. when you download please don't change a thing for example port etc
can you help in odoo enterprise setup, of course we will pay for this (or community setup with activation of required module) and import data from sql database (visual infor erp) to odoo database. Please let me know if you are interested as freelancing job, we have urgent requirement. Please share your email id if you are interested.
hi, sorry was bit busy in some other's clients job setup. please can you send me requirements in this email : odooistic@gmail.com and i will reply you asap. thx
Hi There, I am unable to configure oddo18 with Visual Studio 2022 can you please help
hi have you watched this video ua-cam.com/video/69-x2tquQBo/v-deo.html this is how you do it thanks
Hi, I am not able to create/get the launch.json file after selecting python
Hi Prashanth it usually happens when you have not installed python properly. i will recommend to uninstall everything and follow video again , i believe it will resolve for you if not then we can have a small session. thanks
Did you solve it?, i facing with the same problem, did you fiind the solution?
thanks, cheers from Venezuela.
You are most welcome my friend
Thank you for this video!
Thanks so much for your comment and support! I'm thrilled to hear that you enjoyed the video.
hi i have this error
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: FATAL: password authentication failed for user "openpg"
you need to look at your .conf file for password, its password authentication failed
Hi, I hope you are doing well. I am not able to generate the launch.json file. I am using Odoo 17, VS Code 1.86.1, and Python 3.11.8. When I click on Run -> Add configuration, it shows me Python debugger -> Python file. However, clicking on it does nothing.
just run vscode as administrator
Sorry for late reply i was actually away for some days.
Manually Creating launch.json for Odoo
Open Your Project in VS Code: Make sure your Odoo project folder is open in VS Code.
Access the .vscode Folder:
Navigate to the .vscode folder at the root of your project in the Explorer pane. If it doesn't exist, you'll need to create it.
Inside the .vscode folder, look for a launch.json file. If it doesn't exist, create it by right-clicking in the Explorer pane, selecting "New File", and naming it launch.json.
Edit launch.json:
Open launch.json and add the necessary configuration for running Odoo. i have added the json code so you can copy and paste it in here
@@abbasaldawood2811 It worked on me thanks man.
The terminal keeps showing as "Is the server running on host "local host"(::1) and accepting TCP/IP connections on port 5432 ? " Why ???
i think reinstalling Odoo 16 will resolve this issue, have you checked if you changed port when you installed Odoo 16? I suggest uninstall odoo16 and postgres and then install Odoo 16 , postgres will also be installed along with that. thx
Thank you bro, really helped me out
You are most welcome
I 'v checked but I don't have to display my addons account file. my addons folder empty
Hi Amara , i am sorry i could not understood your question well. you mean to give custom adons path? it will be great if you provide more details that would be great thanks
heyy hii, that's fantastic. but for me the while running debug configuration, the python file is not displayed. what to be done??
First, ensure that the launch.json file is correctly set up for Odoo development. if not then you can just create and paste the code attched in description. Make sure the correct Python interpreter is selected for the project. Odoo development typically requires a specific Python version, and ensuring VS Code is using the right interpreter is crucial:
Use the command palette (Ctrl+Shift+P or Cmd+Shift+P on macOS).
Type and select Python: Select Interpreter.
Choose the interpreter that matches the one used by your Odoo development environment.
also make sure the path of python is also right. i hope this will resolve your issue
@@odooistic yeah the error had been justified thanks .
but i also have a doubt. why do we need to comment the odoo.log file
@@vishnus9117 Commenting out or removing the logfile parameter in odoo.conf prevents Odoo from writing logs to a file. This does not stop Odoo from logging; it merely stops the logging to the specified file, allowing you to rely on other logging mechanisms.
This video is very helpful but the
Vcode configuration file not available for download.
Thanks for liking the video, yes ok i will upload configuration file today . Cheers
I have uploaded config file. please change python path in that file according to your odoo dir path. thanks
Bro i followed the same steps but it gives me modulenotfounderror: no module named 'odoo'
cannot start the server please help :c
so sorry for late reply, actually iwas away for someday , ok The ModuleNotFoundError: No module named 'odoo' error in Python typically indicates that the Python environment you're using to run Odoo does not have the Odoo module installed or cannot locate it. please check if you have given python path correctly in .json file and also give addons path in odoo.conf file.
Can you do this with wsl with vscode? along with the debugging guide?
I am working now on that video and definately upload in coming days
@@odooistic That's great! I'm looking forward to it.
@@odooistic Thank you for providing great materials, for us who are new to Odoo.
the config file we cannot download it anymore, can you check it please?
hi Kishan i have updated downloading path on youtube video and its a github path, you can download from there. sorry for inconvenience.
it says "odoo-bin server: error: no such option: --config-C:\Users\user\Desktop\odoo_16\server\odoo.conf" can you help me bro ?
The error message you mentioned indicates that the odoo-bin server cannot find the specified configuration file.
Double-check the path: Ensure that the odoo.conf file exists at the specified location: C:\Users\user\Desktop\odoo_16\server\odoo.conf. Make sure there are no typos in the path and that the file is accessible.
check all path aswell
@@odooistic wait where do I change the file path ? (all I have is "--config=${workspaceRoot}\\odoo.conf")
After debugging i get a : python path in your debug config is invalid, please help me?
Hi, Kishan please recheck your python path in your launch.json file. Please recheck if thats right python path
Bro can you maybe help me configuring this via teamvieuwer for me, because i can not do it?
@@kishanpatiradj1070 ok no problem, will let you know
@@odooistic hi bro , when you can help me please?
@@kishanpatiradj1070 hi Kishan please email me your skype id on odooistic@gmail.com, i will contact you. cheers.
i dont have odoo.conf in the folder
so sorry for this. i will update this today and will let you know thanks
@@odooistic many thanks
Thanks!!!
Welcome!
launch.json file not creating automatically
make sure that python has been installed and you see python version in your vscode on bottom left or bottom right side. and dont forget to open any python file as i said in the video
if still u are having issues let me know, thxx
@@odooistic yes, python 3.10.8 64 bit and account_account_tag is opened
@@tahirmughal9775 after opening the file when you click run menu then choose add configuration file, when you click add configuration , it will create launch file. if not then create .vscode folder and the launch.json file
I had this problem.
What worked for me was to close VSC and ran it again as administrator
how to enable developer mode?
Hello @John . if you click on settings andin settings just scroll to the bottom then you will see Click on link "Active the developer mode" or "Active the developer mode (with assets)" , just click on any. thanks
another way when you write in url Original:
odoo:8069/web
Debug:
odoo:8069/web?debug
Debug with assets:
odoo:8069/web?debug=assets
thanks , great video !
thanks so much for your message. I am glad u like it.
Database creation denied
hello Rose, Both of the errors you mention are related to database creation. I would suggest that uninstalling PostgreSQL and odoo 16 and then install odoo 16 from the start along with postgres. when you download please don't change a thing for example port etc
can you help in odoo enterprise setup, of course we will pay for this (or community setup with activation of required module) and import data from sql database (visual infor erp) to odoo database. Please let me know if you are interested as freelancing job, we have urgent requirement. Please share your email id if you are interested.
hi, sorry was bit busy in some other's clients job setup. please can you send me requirements in this email : odooistic@gmail.com and i will reply you asap. thx
thanks , great video !
thanks so much. really appreciate