No matching distribution found for num2words==0.5.4

Hi,
I´m trying to update my installation.
Current versions
ERPNext: v10.1.5 (master)
Frappe Framework: v10.1.2 (master)

tryed to run bench update.
At section ==> ./env/bin/pip install --upgrade pip
rhe script fires this error:
Could not find a version that satisfies the requirement num2words==0.5.4 (from frappe->-r ./apps/erpnext/requirements.txt (line 1)) (from versions: )
No matching distribution found for num2words==0.5.4 (from frappe->-r ./apps/erpnext/requirements.txt (line 1))
I insalled num2words manual, the installed version is the current one 0.5.7
did not fix my problem.

Can anyone help?
best regards

go to frappe-bench directory, then

bench setup env
./env/bin/pip2 install --force-reinstall num2words==0.5.4
bench switch-to-master
bench update --requirements
bench retry-upgrade
1 Like

Hi, yashodhan,

When I run `bench setup env’

It produce error:

INFO:bench.utils:virtualenv -q env -p /usr/bin/python
Already using interpreter /usr/bin/python
Traceback (most recent call last):
  File "/usr/local/bin/virtualenv", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 713, in main
    symlink=options.symlink)
  File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 925, in create_environment
    site_packages=site_packages, clear=clear, symlink=symlink))
  File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 1231, in install_python
    shutil.copyfile(executable, py_executable)
  File "/usr/lib/python2.7/shutil.py", line 83, in copyfile
    with open(dst, 'wb') as fdst:
IOError: [Errno 26] Text file busy: '/home/ims/erpnext/frappe-bench/env/bin/python'
Traceback (most recent call last):
  File "/home/ims/.local/bin/bench", line 11, in <module>
    load_entry_point('bench', 'console_scripts', 'bench')()
  File "/home/ims/erpnext/bench-repo/bench/cli.py", line 40, in cli
    bench_command()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/ims/erpnext/bench-repo/bench/commands/setup.py", line 88, in setup_env
    setup_env(python=python)
  File "/home/ims/erpnext/bench-repo/bench/utils.py", line 176, in setup_env
    exec_cmd('virtualenv -q {} -p {}'.format('env', python), cwd=bench_path)
  File "/home/ims/erpnext/bench-repo/bench/utils.py", line 159, in exec_cmd
    raise CommandFailedError(cmd)
bench.utils.CommandFailedError: virtualenv -q env -p /usr/bin/python

When I run ./env/bin/pip2 install --force-reinstall num2words==0.5.4

It produce error:

Collecting num2words==0.5.4
From cffi callback <function _verify_callback at 0x7ff41e3045f0>:
Traceback (most recent call last):
  File "/home/ims/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/OpenSSL/SSL.py", line 313, in wrapper
    _lib.X509_up_ref(x509)
AttributeError: 'module' object has no attribute 'X509_up_ref'
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),)': /simple/num2words/
From cffi callback <function _verify_callback at 0x7ff41ba8ad70>:
Traceback (most recent call last):
  File "/home/ims/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/OpenSSL/SSL.py", line 313, in wrapper
    _lib.X509_up_ref(x509)
AttributeError: 'module' object has no attribute 'X509_up_ref'
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),)': /simple/num2words/
From cffi callback <function _verify_callback at 0x7ff41ba8ac80>:
Traceback (most recent call last):
  File "/home/ims/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/OpenSSL/SSL.py", line 313, in wrapper
    _lib.X509_up_ref(x509)
AttributeError: 'module' object has no attribute 'X509_up_ref'
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),)': /simple/num2words/
From cffi callback <function _verify_callback at 0x7ff41ba440c8>:
Traceback (most recent call last):
  File "/home/ims/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/OpenSSL/SSL.py", line 313, in wrapper
    _lib.X509_up_ref(x509)
AttributeError: 'module' object has no attribute 'X509_up_ref'
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),)': /simple/num2words/
From cffi callback <function _verify_callback at 0x7ff41ba44230>:
Traceback (most recent call last):
  File "/home/ims/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/OpenSSL/SSL.py", line 313, in wrapper
    _lib.X509_up_ref(x509)
AttributeError: 'module' object has no attribute 'X509_up_ref'
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),)': /simple/num2words/
From cffi callback <function _verify_callback at 0x7ff41ba44398>:
Traceback (most recent call last):
  File "/home/ims/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/OpenSSL/SSL.py", line 313, in wrapper
    _lib.X509_up_ref(x509)
AttributeError: 'module' object has no attribute 'X509_up_ref'
  Could not fetch URL https://pypi.org/simple/num2words/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/num2words/ (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),)) - skipping
  Could not find a version that satisfies the requirement num2words==0.5.4 (from versions: )
No matching distribution found for num2words==0.5.4

But, when I run bench retry-upgrade

It works.

Thanks.

Ex: cd ~/frappe-bench/

./env/bin/pip2 uninstall pyOpenSSL

What is your ./env/bin/python -V && ./env/bin/pip -V ??

hi i`am also got eror
i had follow this command but no luck

8.10.4 has requirement num2words==0.5.4, but you'll have num2words 0.5.5 which is incompatible.
requests 2.18.4 has requirement urllib3<1.23,>=1.21.1, but you'll have urllib3 1.23 which is incompatible.
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/home/frappe/frappe-bench/env/lib/python2.7/site-packages/num2words-0.5.4.dist-info/DESCRIPTION.rst'
Consider using the `--user` option or check the permissions.

Traceback (most recent call last):
  File "/usr/local/bin/bench", 8.10.4 has requirement num2words==0.5.4, but you'll have num2words 0.5.5 which is incompatible.
requests 2.18.4 has requirement urllib3<1.23,>=1.21.1, but you'll have urllib3 1.23 which is incompatible.
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/home/frappe/frappe-bench/env/lib/python2.7/site-packages/num2words-0.5.4.dist-info/DESCRIPTION.rst'
Consider using the `--user` option or check the permissions.

Traceback (most recent call last):
  File "/usr/local/bin/bench", line 11, in <module>
    load_entry_point('bench', 'console_scripts', 'bench')()
  File "/home/frappe/.bench/bench/cli.py", line 40, in cli
    bench_command()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/frappe/.bench/bench/commands/update.py", line 60, in update
    _update(pull, patch, build, bench, auto, restart_supervisor, restart_systemd, requirements, no_backup, force=force, reset=reset)
  File "/home/frappe/.bench/bench/commands/update.py", line 76, in _update
    update_requirements(bench_path=bench_path)
  File "/home/frappe/.bench/bench/utils.py", line 435, in update_requirements
    install_requirements(pip, req_file)
  File "/home/frappe/.bench/bench/utils.py", line 499, in install_requirements
    exec_cmd("{pip} install -q -r {req_file}".format(pip=pip, req_file=req_file))
  File "/home/frappe/.bench/bench/utils.py", line 159, in exec_cmd
    raise CommandFailedError(cmd)line 11, in <module>
    load_entry_point('bench', 'console_scripts', 'bench')()
  File "/home/frappe/.bench/bench/cli.py", line 40, in cli
    bench_command()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/frappe/.bench/bench/commands/update.py", line 60, in update
    _update(pull, patch, build, bench, auto, restart_supervisor, restart_systemd, requirements, no_backup, force=force, reset=reset)
  File "/home/frappe/.bench/bench/commands/update.py", line 76, in _update
    update_requirements(bench_path=bench_path)
  File "/home/frappe/.bench/bench/utils.py", line 435, in update_requirements
    install_requirements(pip, req_file)
  File "/home/frappe/.bench/bench/utils.py", line 499, in install_requirements
    exec_cmd("{pip} install -q -r {req_file}".format(pip=pip, req_file=req_file))
  File "/home/frappe/.bench/bench/utils.py", line 159, in exec_cmd
    raise CommandFailedError(cmd)