Easy_install Error libmysqld-dev: object "NoneType" does not have attribute "clone"

this is mistake:

(mysite)zjm1126@zjm1126-G41MT-S2:~/zjm_test/mysite$ ./bin/easy_install libmysqld-dev 
Searching for libmysqld-dev
Reading http://pypi.python.org/simple/libmysqld-dev/
Couldn't find index page for 'libmysqld-dev' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for libmysqld-dev
Best match: None
Traceback (most recent call last):
  File "./bin/easy_install", line 8, in <module>
    load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')()
  File "/home/zjm1126/zjm_test/mysite/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 1712, in main

  File "/home/zjm1126/zjm_test/mysite/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 1700, in with_ei_usage

  File "/home/zjm1126/zjm_test/mysite/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 1716, in <lambda>

  File "/usr/lib/python2.6/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.6/distutils/dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "/home/zjm1126/zjm_test/mysite/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 211, in run

  File "/home/zjm1126/zjm_test/mysite/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/easy_install.py", line 434, in easy_install

  File "/home/zjm1126/zjm_test/mysite/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/package_index.py", line 475, in fetch_distribution
AttributeError: 'NoneType' object has no attribute 'clone'

What can I do,

thank

+3
source share
2 answers

Try updating setuptools:

easy_install -U setuptools
+4
source

This error indicates that easy-install cannot find the package, which means that it was not found. You better install the dev package through the distribution package manager (apt-get, etc.)

If you carefully study the output, pay attention:

Reading http://pypi.python.org/simple/
No local packages or download links found for libmysqld-dev
Best match: None
+4
source

Source: https://habr.com/ru/post/1795975/


All Articles