![]() ![]() Self.db_table = truncate_name(self.db_table, _name_length()) New_class.add_to_class('_meta', Options(meta, app_label))įile "/Users/salishkumar/backend/tiffinwala/venv/lib/python3.9/site-packages/django/db/models/base.py", line 326, in add_to_classįile "/Users/salishkumar/backend/tiffinwala/venv/lib/python3.9/site-packages/django/db/models/options.py", line 207, in contribute_to_class "/Users/salishkumar/backend/tiffinwala/venv/lib/python3.9/site-packages/django/contrib/auth/models.py", line 3, inįrom _user import AbstractBaseUser, BaseUserManagerįile "/Users/salishkumar/backend/tiffinwala/venv/lib/python3.9/site-packages/django/contrib/auth/base_user.py", line 47, inįile "/Users/salishkumar/backend/tiffinwala/venv/lib/python3.9/site-packages/django/db/models/base.py", line 122, in new Return _bootstrap._gcd_import(name, package, level)įile "", line 986, in _find_and_load_unlockedįile "", line 228, in _call_with_frames_removed Self.models_module = import_module(models_module_name)įile "/Users/salishkumar/opt/anaconda3/lib/python3.9/importlib/init.py", line 127, in import_module ImportError: dlopen(/Users/salishkumar/backend/tiffinwala/venv/lib/python3.9/site-packages/MySQLdb/_, 0x0002): symbol not found in flat namespace '_mysql_affected_rows'ĭuring handling of the above exception, another exception occurred:įile "/Users/salishkumar/backend/tiffinwala/manage.py", line 22, inįile "/Users/salishkumar/backend/tiffinwala/manage.py", line 18, in mainįile "/Users/salishkumar/backend/tiffinwala/venv/lib/python3.9/site-packages/django/core/management/init.py", line 425, in execute_from_command_lineįile "/Users/salishkumar/backend/tiffinwala/venv/lib/python3.9/site-packages/django/core/management/init.py", lineįile "/Users/salishkumar/backend/tiffinwala/venv/lib/python3.9/site-packages/django/init.py", line 24, in setupįile "/Users/salishkumar/backend/tiffinwala/venv/lib/python3.9/site-packages/django/apps/registry.py", line 114, in populateįile "/Users/salishkumar/backend/tiffinwala/venv/lib/python3.9/site-packages/django/apps/config.py", line 300, in import_models (venv) (base) tiffinwala % python3 manage.py makemigrationsįile "/Users/salishkumar/backend/tiffinwala/venv/lib/python3.9/site-packages/MySQLdb/init.py", line 18, in I have installed native m1 python 3.9, project working perfectly with sqlite but when I switch database to mysql although I have downloaded mysql client $ sudo symbols homebrew-x86/Cellar//5.7.34/lib/libmysqlclient.dylib -arch x86_64 | grep mysql_affected_rowsĠx0000000000003fe7 ( 0xd) mysql_affected_rows Īnyone found the solution? I am struggling with this problem I guess that symbol only exists in the x86_64 architecture version of the MySQL client. ![]() Mysql workbench for mac m1 install#I got derailed for many hours because I had copied and pasted the wrong version of the mysql library in my lastĬurl -L | tar xz -strip 1 -C homebrew-x86Īrch -x86_64 homebrew-x86/bin/brew installĮxport PATH="/opt/homebrew-x86/opt//bin:$PATH"ĬPPFLAGS="-I/opt/homebrew-x86/opt//include" LDFLAGS="-L/opt/homebrew-x86/opt//lib" MYSQLCLIENT_CFLAGS="-I/opt/homebrew-x86/Cellar//5.7.32/include/mysql" MYSQLCLIENT_LDFLAGS="-L/opt/homebrew-x86/Cellar//5.7.32/lib -lmysqlclient" arch -x86_64 pip install -I -vvv mysqlclientĪnd then, again as jcbloch suggests, I verified the installation by checking that the mysql_affected_rows symbol is present. Make sure to double check all the paths below before executing these commands. And, I had to include an LDFLAGS variable to point to the x86_64 openssl library. And, I ended up with a slightly later version of MySQL client than jcbloch did. Python package and to drop all the cached pip libraries so that you don't just end up reinstalling the cached incorrect package again. What differs is that I made sure to include an uninstall of any borked mysqlclient ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |