You can run it

pip install mysqlclient==2.0.1


On Wed, Feb 17, 2021 at 8:53 PM Brijesh Soni <[email protected]> wrote:

> Hello All,
>
>
> I have Install the Python 3.6 32Bit with My SQL 32bit and Install the
> mysqlclient==1.3.11
>
> but when I am starting the Django with the
>
> runserver command, I am getting below Error
>
> Thanks in Advance.
>
> ===============
> Error occurred while reading WSGI handler: Traceback (most recent call
> last): File "d:\StockMarketPy\venv36\Lib\site-packages\wfastcgi.py", line
> 791, in main env, handler = read_wsgi_handler(response.physical_path) File
> "d:\StockMarketPy\venv36\Lib\site-packages\wfastcgi.py", line 633, in
> read_wsgi_handler handler = get_wsgi_handler(os.getenv("WSGI_HANDLER"))
> File "d:\StockMarketPy\venv36\Lib\site-packages\wfastcgi.py", line 600, in
> get_wsgi_handler handler = __import__(module_name,
> fromlist=[name_list[0][0]]) File "D:\StockMarketPy\src\root\wsgi.py", line
> 16, in <module> application = get_wsgi_application() File
> "d:\StockMarketPy\venv36\lib\site-packages\django\core\wsgi.py", line 12,
> in get_wsgi_application django.setup(set_prefix=False) File
> "d:\StockMarketPy\venv36\lib\site-packages\django\__init__.py", line 24, in
> setup apps.populate(settings.INSTALLED_APPS) File
> "d:\StockMarketPy\venv36\lib\site-packages\django\apps\registry.py", line
> 114, in populate app_config.import_models() File
> "d:\StockMarketPy\venv36\lib\site-packages\django\apps\config.py", line
> 211, in import_models self.models_module =
> import_module(models_module_name) File
> "c:\python36-32\lib\importlib\__init__.py", line 126, in import_module
> return _bootstrap._gcd_import(name[level:], package, level) File
> "D:\StockMarketPy\src\common\models.py", line 4, in <module> from
> django.contrib.auth.models import AbstractBaseUser, PermissionsMixin,
> UserManager File
> "d:\StockMarketPy\venv36\lib\site-packages\django\contrib\auth\models.py",
> line 2, in <module> from django.contrib.auth.base_user import
> AbstractBaseUser, BaseUserManager File
> "d:\StockMarketPy\venv36\lib\site-packages\django\contrib\auth\base_user.py",
> line 48, in <module> class AbstractBaseUser(models.Model): File
> "d:\StockMarketPy\venv36\lib\site-packages\django\db\models\base.py", line
> 122, in __new__ new_class.add_to_class('_meta', Options(meta, app_label))
> File "d:\StockMarketPy\venv36\lib\site-packages\django\db\models\base.py",
> line 326, in add_to_class value.contribute_to_class(cls, name) File
> "d:\StockMarketPy\venv36\lib\site-packages\django\db\models\options.py",
> line 206, in contribute_to_class self.db_table =
> truncate_name(self.db_table, connection.ops.max_name_length()) File
> "d:\StockMarketPy\venv36\lib\site-packages\django\db\__init__.py", line 28,
> in __getattr__ return getattr(connections[DEFAULT_DB_ALIAS], item) File
> "d:\StockMarketPy\venv36\lib\site-packages\django\db\utils.py", line 214,
> in __getitem__ backend = load_backend(db['ENGINE']) File
> "d:\StockMarketPy\venv36\lib\site-packages\django\db\utils.py", line 111,
> in load_backend return import_module('%s.base' % backend_name) File
> "c:\python36-32\lib\importlib\__init__.py", line 126, in import_module
> return _bootstrap._gcd_import(name[level:], package, level) File
> "d:\StockMarketPy\venv36\lib\site-packages\django\db\backends\mysql\base.py",
> line 29, in <module> from .introspection import DatabaseIntrospection #
> isort:skip File
> "d:\StockMarketPy\venv36\lib\site-packages\django\db\backends\mysql\introspection.py",
> line 16, in <module> class
> DatabaseIntrospection(BaseDatabaseIntrospection): File
> "d:\StockMarketPy\venv36\lib\site-packages\django\db\backends\mysql\introspection.py",
> line 27, in DatabaseIntrospection FIELD_TYPE.JSON: 'JSONField',
> AttributeError: module 'MySQLdb.constants.FIELD_TYPE' has no attribute
> 'JSON' StdOut: StdErr:
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/323d7da8-a17d-4e8e-b6a9-84adc0499f89n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/323d7da8-a17d-4e8e-b6a9-84adc0499f89n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAE59x8eh%3D0Ef7B2bvF8WKAjAMTWrRe2DNQEekfdO7MTMORJtPA%40mail.gmail.com.

Reply via email to