Closed edcodes closed 1 year ago
I couldn't reproduce this following the steps bellow and using pyenv as virtual envs manager.
Install python 3.10:
pyenv install 3.10
Create virtual env named dbmf2 with given python version :
pyenv virtualenv 3.10 dbmf2
Activate dbmf virtual env:
pyenv activate dbmf2
Install the package:
pip install django-bootstrap-modal-forms
Output:
(dbmf2) ~/github/django-bootstrap-modal-forms master ✔ pip install django-bootstrap-modal-forms
Collecting django-bootstrap-modal-forms
Downloading django_bootstrap_modal_forms-3.0.0-py3-none-any.whl (28 kB)
Collecting Django>=3.2
Using cached Django-4.2-py3-none-any.whl (8.0 MB)
Collecting asgiref<4,>=3.6.0
Using cached asgiref-3.6.0-py3-none-any.whl (23 kB)
Collecting sqlparse>=0.3.1
Using cached sqlparse-0.4.4-py3-none-any.whl (41 kB)
Installing collected packages: sqlparse, asgiref, Django, django-bootstrap-modal-forms
Successfully installed Django-4.2 asgiref-3.6.0 django-bootstrap-modal-forms-3.0.0 sqlparse-0.4.4
[notice] A new release of pip is available: 23.0.1 -> 23.1.2
[notice] To update, run: python3.10 -m pip install --upgrade pip
(dbmf2) ~/github/django-bootstrap-modal-forms master ✔ pip freeze
asgiref==3.6.0
Django==4.2
django-bootstrap-modal-forms==3.0.0
sqlparse==0.4.4
I create virtualenv with python 3.10 : ` sudo apt install software-properties-common -y sudo add-apt-repository ppa:deadsnakes/ppa sudo apt install python3.10 sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev sudo apt install python3-pip sudo apt-get install python3.10-dev python3.10-venv
virtualenv --python=/usr/bin/python3.10 constenv
source constenv/bin/activate
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
` When i install django-bootstrap-modal-forms i get this error:
` (constenv) user@vmware20g:~/const$ pip install django-bootstrap-modal-forms Collecting django-bootstrap-modal-forms Using cached django-bootstrap-modal-forms-2.2.0.tar.gz (31 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: Django>=1.8 in /home/user/constenv/lib/python3.10/site-packages (from django-bootstrap-modal-forms) (4.0.1) Requirement already satisfied: sqlparse>=0.2.2 in /home/user/constenv/lib/python3.10/site-packages (from Django>=1.8->django-bootstrap-modal-forms) (0.4.2) Requirement already satisfied: asgiref<4,>=3.4.1 in /home/user/constenv/lib/python3.10/site-packages (from Django>=1.8->django-bootstrap-modal-forms) (3.4.1) Building wheels for collected packages: django-bootstrap-modal-forms Building wheel for django-bootstrap-modal-forms (setup.py) ... error ERROR: Command errored out with exit status 1: command: /home/user/constenv/bin/python3.10 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zyzrf3zu/django-bootstrap-modal-forms_9d0025b42a394707a8fc052c01d6f168/setup.py'"'"'; file='"'"'/tmp/pip-install-zyzrf3zu/django-bootstrap-modal-forms_9d0025b42a394707a8fc052c01d6f168/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-ysfp6zvw cwd: /tmp/pip-install-zyzrf3zu/django-bootstrap-modal-forms_9d0025b42a394707a8fc052c01d6f168/ Complete output (85 lines): running bdist_wheel running build running build_py creating build creating build/lib creating build/lib/setup copying setup/settings.py -> build/lib/setup copying setup/init.py -> build/lib/setup copying setup/urls.py -> build/lib/setup copying setup/wsgi.py -> build/lib/setup creating build/lib/examples copying examples/init.py -> build/lib/examples copying examples/tests.py -> build/lib/examples copying examples/admin.py -> build/lib/examples copying examples/apps.py -> build/lib/examples copying examples/views.py -> build/lib/examples copying examples/models.py -> build/lib/examples copying examples/urls.py -> build/lib/examples copying examples/forms.py -> build/lib/examples creating build/lib/bootstrap_modal_forms copying bootstrap_modal_forms/init.py -> build/lib/bootstrap_modal_forms copying bootstrap_modal_forms/utils.py -> build/lib/bootstrap_modal_forms copying bootstrap_modal_forms/compatibility.py -> build/lib/bootstrap_modal_forms copying bootstrap_modal_forms/mixins.py -> build/lib/bootstrap_modal_forms copying bootstrap_modal_forms/forms.py -> build/lib/bootstrap_modal_forms copying bootstrap_modal_forms/generic.py -> build/lib/bootstrap_modal_forms creating build/lib/tests copying tests/tests_functional.py -> build/lib/tests copying tests/base.py -> build/lib/tests copying tests/init.py -> build/lib/tests copying tests/tests_unit.py -> build/lib/tests creating build/lib/examples/migrations copying examples/migrations/init.py -> build/lib/examples/migrations copying examples/migrations/0001_initial.py -> build/lib/examples/migrations running egg_info writing django_bootstrap_modal_forms.egg-info/PKG-INFO writing dependency_links to django_bootstrap_modal_forms.egg-info/dependency_links.txt writing requirements to django_bootstrap_modal_forms.egg-info/requires.txt writing top-level names to django_bootstrap_modal_forms.egg-info/top_level.txt reading manifest file 'django_bootstrap_modal_forms.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'LICENSE' writing manifest file 'django_bootstrap_modal_forms.egg-info/SOURCES.txt' creating build/lib/bootstrap_modal_forms/static creating build/lib/bootstrap_modal_forms/static/js copying bootstrap_modal_forms/static/js/jquery.bootstrap.modal.forms.js -> build/lib/bootstrap_modal_forms/static/js copying bootstrap_modal_forms/static/js/jquery.bootstrap.modal.forms.min.js -> build/lib/bootstrap_modal_forms/static/js installing to build/bdist.linux-x86_64/wheel running install running install_lib Traceback (most recent call last): File "", line 1, in
File "/tmp/pip-install-zyzrf3zu/django-bootstrap-modal-forms_9d0025b42a394707a8fc052c01d6f168/setup.py", line 10, in
setup(
File "/home/user/constenv/lib/python3.10/site-packages/setuptools/init.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.10/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/lib/python3.10/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/user/constenv/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 259, in run
self.run_command('install')
File "/usr/local/lib/python3.10/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/user/constenv/lib/python3.10/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/usr/local/lib/python3.10/distutils/command/install.py", line 580, in run
self.run_command(cmd_name)
File "/usr/local/lib/python3.10/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.10/distutils/dist.py", line 984, in run_command
cmd_obj.ensure_finalized()
File "/usr/local/lib/python3.10/distutils/cmd.py", line 107, in ensure_finalized
self.finalize_options()
File "/home/user/constenv/lib/python3.10/site-packages/setuptools/command/install_lib.py", line 17, in finalize_options
self.set_undefined_options('install',('install_layout','install_layout'))
File "/usr/local/lib/python3.10/distutils/cmd.py", line 290, in set_undefined_options
setattr(self, dst_option, getattr(src_cmd_obj, src_option))
File "/usr/local/lib/python3.10/distutils/cmd.py", line 103, in getattr
raise AttributeError(attr)
AttributeError: install_layout. Did you mean: 'install_platlib'?
ERROR: Failed building wheel for django-bootstrap-modal-forms Running setup.py clean for django-bootstrap-modal-forms Failed to build django-bootstrap-modal-forms Installing collected packages: django-bootstrap-modal-forms Running setup.py install for django-bootstrap-modal-forms ... error ERROR: Command errored out with exit status 1: command: /home/user/constenv/bin/python3.10 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zyzrf3zu/django-bootstrap-modal-forms_9d0025b42a394707a8fc052c01d6f168/setup.py'"'"'; file='"'"'/tmp/pip-install-zyzrf3zu/django-bootstrap-modal-forms_9d0025b42a394707a8fc052c01d6f168/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-99piojec/install-record.txt --single-version-externally-managed --compile --install-headers /home/user/constenv/include/site/python3.10/django-bootstrap-modal-forms cwd: /tmp/pip-install-zyzrf3zu/django-bootstrap-modal-forms_9d0025b42a394707a8fc052c01d6f168/ Complete output (77 lines): running install running build running build_py creating build creating build/lib creating build/lib/setup copying setup/settings.py -> build/lib/setup copying setup/init.py -> build/lib/setup copying setup/urls.py -> build/lib/setup copying setup/wsgi.py -> build/lib/setup creating build/lib/examples copying examples/init.py -> build/lib/examples copying examples/tests.py -> build/lib/examples copying examples/admin.py -> build/lib/examples copying examples/apps.py -> build/lib/examples copying examples/views.py -> build/lib/examples copying examples/models.py -> build/lib/examples copying examples/urls.py -> build/lib/examples copying examples/forms.py -> build/lib/examples creating build/lib/bootstrap_modal_forms copying bootstrap_modal_forms/init.py -> build/lib/bootstrap_modal_forms copying bootstrap_modal_forms/utils.py -> build/lib/bootstrap_modal_forms copying bootstrap_modal_forms/compatibility.py -> build/lib/bootstrap_modal_forms copying bootstrap_modal_forms/mixins.py -> build/lib/bootstrap_modal_forms copying bootstrap_modal_forms/forms.py -> build/lib/bootstrap_modal_forms copying bootstrap_modal_forms/generic.py -> build/lib/bootstrap_modal_forms creating build/lib/tests copying tests/tests_functional.py -> build/lib/tests copying tests/base.py -> build/lib/tests copying tests/init.py -> build/lib/tests copying tests/tests_unit.py -> build/lib/tests creating build/lib/examples/migrations copying examples/migrations/init.py -> build/lib/examples/migrations copying examples/migrations/0001_initial.py -> build/lib/examples/migrations running egg_info writing django_bootstrap_modal_forms.egg-info/PKG-INFO writing dependency_links to django_bootstrap_modal_forms.egg-info/dependency_links.txt writing requirements to django_bootstrap_modal_forms.egg-info/requires.txt writing top-level names to django_bootstrap_modal_forms.egg-info/top_level.txt reading manifest file 'django_bootstrap_modal_forms.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'LICENSE' writing manifest file 'django_bootstrap_modal_forms.egg-info/SOURCES.txt' creating build/lib/bootstrap_modal_forms/static creating build/lib/bootstrap_modal_forms/static/js copying bootstrap_modal_forms/static/js/jquery.bootstrap.modal.forms.js -> build/lib/bootstrap_modal_forms/static/js copying bootstrap_modal_forms/static/js/jquery.bootstrap.modal.forms.min.js -> build/lib/bootstrap_modal_forms/static/js running install_lib Traceback (most recent call last): File "", line 1, in
File "/tmp/pip-install-zyzrf3zu/django-bootstrap-modal-forms_9d0025b42a394707a8fc052c01d6f168/setup.py", line 10, in
setup(
File "/home/user/constenv/lib/python3.10/site-packages/setuptools/init.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.10/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/lib/python3.10/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.10/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/user/constenv/lib/python3.10/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/usr/local/lib/python3.10/distutils/command/install.py", line 580, in run
self.run_command(cmd_name)
File "/usr/local/lib/python3.10/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.10/distutils/dist.py", line 984, in run_command
cmd_obj.ensure_finalized()
File "/usr/local/lib/python3.10/distutils/cmd.py", line 107, in ensure_finalized
self.finalize_options()
File "/home/user/constenv/lib/python3.10/site-packages/setuptools/command/install_lib.py", line 17, in finalize_options
self.set_undefined_options('install',('install_layout','install_layout'))
File "/usr/local/lib/python3.10/distutils/cmd.py", line 290, in set_undefined_options
setattr(self, dst_option, getattr(src_cmd_obj, src_option))
File "/usr/local/lib/python3.10/distutils/cmd.py", line 103, in getattr
raise AttributeError(attr)
AttributeError: install_layout. Did you mean: 'install_platlib'?
ERROR: Command errored out with exit status 1: /home/user/constenv/bin/python3.10 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zyzrf3zu/django-bootstrap-modal-forms_9d0025b42a394707a8fc052c01d6f168/setup.py'"'"'; file='"'"'/tmp/pip-install-zyzrf3zu/django-bootstrap-modal-forms_9d0025b42a394707a8fc052c01d6f168/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-99piojec/install-record.txt --single-version-externally-managed --compile --install-headers /home/user/constenv/include/site/python3.10/django-bootstrap-modal-forms Check the logs for full command output.
`