Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Thursday, 14 August 2025

ModuleNotFoundError: No module named 'psycopg2'

 Odoo 18: 

Traceback (most recent call last):

File "/home/bodedra/odoo18/demo/src/odoo/./odoo-bin", line 5, in <module>

import odoo

File "/home/bodedra/odoo18/demo/src/odoo/odoo/__init__.py", line 49, in <module>

_monkeypatches.patch_all()

File "/home/bodedra/odoo18/demo/src/odoo/odoo/_monkeypatches/__init__.py", line 28, in patch_all

from .lxml import patch_lxml

File "/home/bodedra/odoo18/demo/src/odoo/odoo/_monkeypatches/lxml.py", line 6, in <module>

from odoo.tools import parse_version

File "/home/bodedra/odoo18/demo/src/odoo/odoo/tools/__init__.py", line 10, in <module>

from . import template_inheritance

File "/home/bodedra/odoo18/demo/src/odoo/odoo/tools/template_inheritance.py", line 9, in <module>

from odoo.tools.translate import LazyTranslate

File "/home/bodedra/odoo18/demo/src/odoo/odoo/tools/translate.py", line 35, in <module>

from psycopg2.extras import Json

ModuleNotFoundError: No module named 'psycopg2'


Resolved with

pip3.12 install psycopg2-binary

 

Friday, 25 July 2025

How to install python3.12 in Linux?

First we have to add repository source code so open terminal and run following command:


sudo add-apt-repository ppa:deadsnakes/ppa

 


 

Next update the apt library:

 

sudo apt update

 

Finally, install python3.12 in your Linux system:

 

sudo apt install python3.12

 


Saturday, 19 October 2019

Cisco Anyconnect VPN client for Linux

Cisco AnyConnect Secure Mobility is a collection of features across multiple Cisco products that extends control and security into borderless networks. The products that work together to provide AnyConnect Secure Mobility are the Web Security appliance, adaptive security appliance, and Cisco AnyConnect client.

This blog will help you to setup Cisco AnyConnect Secure Mobility Client and you can connect any VPN from your Linux system.

Here we go:

> Find Anyconnect for Linux. http://ttcit.net/download/linux/
> Go to "Terminal".
> tar -zxvf anyconnect-linux64-4.6.03049-predeploy-k9.tar.gz
> cd anyconnect-linux64-4.6.03049/
> cd vpn/
> sudo ./vpn_install.sh

And you are done.

Now search for "anyconnect" and you will find following:

vpn_anyconnect_cisco_symbol

Open it, enter URL and connect it.

vpn_anyconnect_cisco_connection

Provide username and password. Connect it.

vpn_anyconnect_cisco_username_password

If credentials are valid, you will get connected notification.

vpn_anyconnect_cisco_notification

You can find statistics details for VPN connection.

vpn_anyconnect_cisco_statistics_details

Once you complete your job, disconnect it.

vpn_anyconnect_cisco_statistics_disconnect


If you are window users, here https://www.itechtics.com/cisco-anyconnect-download/ you can find more details.

Reference https://www.cisco.com/c/dam/en/us/td/docs/security/wsa/wsa7-0/user_guide/AnyConnect_Secure_Mobility_SolutionGuide.pdf

I hope you like this article. Share your views. Happy Learning !!!

Monday, 20 April 2015

Install and Enable Telnet server in Ubuntu Linux

1.Install telnet use this command in terminal(Applications/Accessories/Terminal):

sudo apt-get install xinetd telnetd

2.Edit /etc/inetd.conf using your favorite file editor with root permission,add this line:

telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd

3.Edit /etc/xinetd.conf, make its content look like following:

# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
defaults
{
# Please note that you need a log_type line to be able to use log_on_success
# and log_on_failure. The default is the following :
# log_type = SYSLOG daemon info
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}

4.You can change telnet port number by edit /etc/services with this line:

telnet        8100/tcp

5.If you’re not satisfied with default configuration.Edit etc/xinetd.d/telnet, add following:

# default: on
# description: The telnet server serves telnet sessions; it uses
# unencrypted username/password pairs for authentication.
service telnet
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}

add these lines as you like:

only_from = 192.168.120.0/24 #Only users in 192.168.120.0 can access to
only_from = .bob.com #allow access from bob.com
no_access = 192.168.120.{101,105} #not allow access from the two IP.
access_times = 8:00-9:00 20:00-21:00 #allow access in the two times
......

6.Use this command to start telnet server:

sudo /etc/init.d/xinetd start
sudo /etc/init.d/xinetd stop
sudo /etc/init.d/xinetd restart

Reference Link

ModuleNotFoundError: No module named 'psycopg2'

  Odoo 18:  Traceback (most recent call last): File "/home/bodedra/odoo18/demo/src/odoo/./odoo-bin", line 5, in ...