Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on MySQL installation #429

Open
tdoucet-ecotel opened this issue Mar 24, 2023 · 0 comments
Open

Error on MySQL installation #429

tdoucet-ecotel opened this issue Mar 24, 2023 · 0 comments

Comments

@tdoucet-ecotel
Copy link

OS: Ubuntu Server 22.04
Error Log:
fatal: [0101lab-openwisp-01]: FAILED! => {
"attempts": 5,
"changed": false,
"cmd": [
"/opt/openwisp2/env/bin/pip3",
"install",
"-U",
"MySQL-python"
],
"invocation": {
"module_args": {
"chdir": null,
"editable": false,
"executable": null,
"extra_args": null,
"name": [
"MySQL-python"
],
"requirements": null,
"state": "latest",
"umask": null,
"version": null,
"virtualenv": "/opt/openwisp2/env",
"virtualenv_command": "virtualenv",
"virtualenv_python": "python3",
"virtualenv_site_packages": true
}
},
"msg": "stdout: Collecting MySQL-python\n Using cached MySQL-python-1.2.5.zip (108 kB)\n Preparing metadata (setup.py): started\n Preparing metadata (setup.py): finished with status 'error'\n\n:stderr: error: subprocess-exited-with-error\n \n × python setup.py egg_info did not run successfully.\n │ exit code: 1\n ╰─> [8 lines of output]\n Traceback (most recent call last):\n File "", line 2, in \n File "", line 34, in \n File "/tmp/pip-install-9sgaavur/mysql-python_c8e98d77a0de4afb8993f25f625b0062/setup.py", line 13, in \n from setup_posix import get_config\n File "/tmp/pip-install-9sgaavur/mysql-python_c8e98d77a0de4afb8993f25f625b0062/setup_posix.py", line 2, in \n from ConfigParser import SafeConfigParser\n ModuleNotFoundError: No module named 'ConfigParser'\n [end of output]\n \n note: This error originates from a subprocess, and is likely not a problem with pip.\nerror: metadata-generation-failed\n\n× Encountered error while generating package metadata.\n╰─> See above for output.\n\nnote: This is an issue with the package mentioned above, not pip.\nhint: See above for details.\n"

playbook:

  • hosts: 0101lab-openwisp-01
    become: "{{ become | default('yes') }}"
    roles:
    • openwisp.openwisp2
      vars:
      openwisp2_radius: true
      openwisp2_freeradius_install: true
      openwisp2_radius_urls: true
      openwisp2_default_from_email: "openwisp2@1001lab-openwisp-01.eco-tel.co"
      openwisp2_database:
      engine: "django.db.backends.mysql"
      options: "read_default_file': '/etc/mysql/client.cnf"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant