You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am on the latest stable Poetry version, installed using a recommended method.
I have searched the issues of this repo and believe that this is not a duplicate.
I have consulted the FAQ and blog for any relevant entries or release notes.
If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.
Issue
When running pytests under my poetry environment on a mac M2 chip, I get the following error:
E ImportError: dlopen(/Users/Jake/Library/Caches/pypoetry/virtualenvs/fig-etl-wTxwD1sp-py3.11/lib/python3.11/site-packages/MySQLdb/_mysql.cpython-311-darwin.so, 0x0002): symbol not found in flat namespace '_mysql_affected_rows'
I understand this is probably due to mismatched binaries, but since I'm not directly installing mysqldb. This seems related to this issue, but there is no specific poetry fix:
I see no reason to suspect a poetry bug. Indeed the repeated appearance of the same issue in the mysqlclient issue tracker from people who are not using poetry tends to lead to the opposite conclusion
please make a (much) more convincing case that this is a poetry issue - or close
Thanks @dimbleby - you are correct, this is not related to poetry.
Just documenting because this was so frustrating for me:
The solution is to brew uninstall the corresponding mysql and mysql-connector packages in both the arm (/opt/homebrew/bin/brew) and x86 version (/usr/local/bin/brew ) of brew and then reinstall mysql (brew install mysql) making sure you are in an arm terminal.
Then you have to destroy the existing poetry environment and re-install. and It should work.
-vvv
option) and have included the output below.Issue
When running pytests under my poetry environment on a mac M2 chip, I get the following error:
I understand this is probably due to mismatched binaries, but since I'm not directly installing mysqldb. This seems related to this issue, but there is no specific poetry fix:
PyMySQL/mysqlclient#496
The text was updated successfully, but these errors were encountered: