How can i solve this problem

Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 564, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 2662, in load_entry_point
return ep.load()
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 2316, in load
return self.resolve()
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 2322, in resolve
module = import(self.module_name, fromlist=[‘name’], level=0)
File “/home/frappe/.bench/bench/cli.py”, line 3, in
from bench.utils import is_root, PatchError, drop_privileges, get_env_cmd, get_cmd_output, get_frappe
File “/home/frappe/.bench/bench/utils.py”, line 1, in
import os, sys, shutil, subprocess, logging, itertools, requests, json, platform, select, pwd, grp, multiprocessing, hashlib
File “/usr/local/lib/python2.7/dist-packages/requests/init.py”, line 84, in
from urllib3.contrib import pyopenssl
File “/usr/local/lib/python2.7/dist-packages/urllib3/contrib/pyopenssl.py”, line 46, in
import OpenSSL.SSL
File “/usr/lib/python2.7/dist-packages/OpenSSL/init.py”, line 8, in
from OpenSSL import rand, crypto, SSL
File “/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py”, line 118, in
SSL_ST_INIT = _lib.SSL_ST_INIT
AttributeError: ‘module’ object has no attribute ‘SSL_ST_INIT’

Hi when/how do you arrive at this error?

hi @Murugan,

ideally a topic in this forum helps the thread starter as well as anybody else who might face the same or similar problem with ERPNext. In order to achieve this it is essential to have a descriptive subject line and a good description of the problem rather then just an error message.

Would you mind to ad this to your topic here?

New app creation time

kindly share your erpnext and frappe version

from jinja2 import Environment, PackageLoader

version = “4.1.0”

env = Environment(loader=PackageLoader(‘bench.config’))

FRAPPE_VERSION = None

def set_frappe_version(bench_path=‘.’):
from .app import get_current_frappe_version
global FRAPPE_VERSION
if not FRAPPE_VERSION:
FRAPPE_VERSION = get_current_frappe_version(bench_path=bench_path)

from future import unicode_literals, print_function

from six import iteritems, text_type, string_types
from werkzeug.local import Local, release_local
import os, sys, importlib, inspect, json

public

from .exceptions import *
from .utils.jinja import get_jenv, get_template, render_template, get_email_from_template

version = ‘8.8.4’
title = “Frappe Framework”

local = Local()

if you are creating new bench repo and you are using command ‘sudo pip install -e bench-repo’ then
try using command ‘pip install -e bench-repo

or

try using command ‘sudo python -m easy_install --upgrade pyOpenSSL’.