Python Forum
Debian 11 Bullseye | Python 3.9.x | pip install mysql-connector-python-rf problems
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Debian 11 Bullseye | Python 3.9.x | pip install mysql-connector-python-rf problems
#1
Question 
Debian 11 Bullseye | Python 3.9.x | pip install mysql-connector-python-rf problems

I just installed a fresh Debian 11 Bullseye w/ Python 3.9.x

Installing my previous Python modules I only ran into 1 problem; mysql-connector-python-rf (which is what I need to properly continue my Python Journey).

The following is the error I receive in (root):

Error:
root@FireDragon:~# pip3 install mysql-connector-python-rf Collecting mysql-connector-python-rf Downloading mysql-connector-python-rf-2.2.2.tar.gz (11.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.9/11.9 MB 2.9 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Using legacy 'setup.py install' for mysql-connector-python-rf, since package 'wheel' is not installed. Installing collected packages: mysql-connector-python-rf Running setup.py install for mysql-connector-python-rf ... error error: subprocess-exited-with-error × Running setup.py install for mysql-connector-python-rf did not run successfully. │ exit code: 1 ╰─> [6 lines of output] usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help error: option --single-version-externally-managed not recognized [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure × Encountered error while trying to install package. ╰─> mysql-connector-python-rf note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure. root@FireDragon:~#

The following is the error I receive with my username (brandon):


Error:
brandon@FireDragon:~$ pip3 install mysql-connector-python-rf Defaulting to user installation because normal site-packages is not writeable Collecting mysql-connector-python-rf Downloading mysql-connector-python-rf-2.2.2.tar.gz (11.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.9/11.9 MB 3.0 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Using legacy 'setup.py install' for mysql-connector-python-rf, since package 'wheel' is not installed. Installing collected packages: mysql-connector-python-rf Running setup.py install for mysql-connector-python-rf ... error error: subprocess-exited-with-error × Running setup.py install for mysql-connector-python-rf did not run successfully. │ exit code: 1 ╰─> [6 lines of output] usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help error: option --single-version-externally-managed not recognized [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure × Encountered error while trying to install package. ╰─> mysql-connector-python-rf note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure. brandon@FireDragon:~$
Thank you everyone for this forum!

Best Regards,

Brandon Kastning
“And one of the elders saith unto me, Weep not: behold, the Lion of the tribe of Juda, the Root of David, hath prevailed to open the book,...” - Revelation 5:5 (KJV)

“And oppress not the widow, nor the fatherless, the stranger, nor the poor; and ...” - Zechariah 7:10 (KJV)

#LetHISPeopleGo

Reply
#2
Since the problem clearly lies with the package mysql-connector-python-rf,
I'd contact the maintainer of the package (found here: https://pypi.org/project/mysql-connector-python-rf/ ) and send them the same info provided here

You may get an answer here as well, but perhaps sooner with maintainer.
BrandonKastning likes this post
Reply
#3
Look at date of mysql-connector-python-rf 2017
Use the official update one mysql-connector-python or a alterative like PyMySQL( pure-Python MySQL client library).
BrandonKastning likes this post
Reply
#4
Thumbs Up 
Larz60,

Thank you for this answer! That's a great idea!

Best Regards,

Brandon!

(Feb-05-2022, 12:00 PM)Larz60+ Wrote: Since the problem clearly lies with the package mysql-connector-python-rf,
I'd contact the maintainer of the package (found here: https://pypi.org/project/mysql-connector-python-rf/ ) and send them the same info provided here

You may get an answer here as well, but perhaps sooner with maintainer.
“And one of the elders saith unto me, Weep not: behold, the Lion of the tribe of Juda, the Root of David, hath prevailed to open the book,...” - Revelation 5:5 (KJV)

“And oppress not the widow, nor the fatherless, the stranger, nor the poor; and ...” - Zechariah 7:10 (KJV)

#LetHISPeopleGo

Reply
#5
Thumbs Up 
snippsat,

I wonder why I had -rf package rather than "mysql-connector-python"; Thank you! I was able to find and install the package as follows:

I haven't tested it yet! If I run into a problem I won't hesitate to ask you! Thank you again!

Install:

root@FireDragon:~# pip3 install mysql-connector-python
Collecting mysql-connector-python
  Downloading mysql_connector_python-8.0.28-cp39-cp39-manylinux1_x86_64.whl (37.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 37.6/37.6 MB 2.6 MB/s eta 0:00:00
Collecting protobuf>=3.0.0
  Downloading protobuf-3.19.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 2.6 MB/s eta 0:00:00
Installing collected packages: protobuf, mysql-connector-python
Successfully installed mysql-connector-python-8.0.28 protobuf-3.19.4
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
root@FireDragon:~#
Best Regards,

Brandon!
(Feb-05-2022, 12:26 PM)snippsat Wrote: Look at date of mysql-connector-python-rf 2017
Use the official update one mysql-connector-python or a alterative like PyMySQL( pure-Python MySQL client library).
“And one of the elders saith unto me, Weep not: behold, the Lion of the tribe of Juda, the Root of David, hath prevailed to open the book,...” - Revelation 5:5 (KJV)

“And oppress not the widow, nor the fatherless, the stranger, nor the poor; and ...” - Zechariah 7:10 (KJV)

#LetHISPeopleGo

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question Install Python Using ShellScript Sudheer 1 1,001 Mar-12-2025, 03:50 AM
Last Post: Tishat73
  MariaDB Connector/Python; version mismatch shopgeek 1 473 Feb-24-2025, 05:06 AM
Last Post: from1991
  I'm trying to install python 3.11.11 on windows 10 - it doesn't work Petonique 2 1,566 Feb-04-2025, 05:42 PM
Last Post: snippsat
  Problems writing a large text file in python Vilius 4 952 Dec-21-2024, 09:20 AM
Last Post: Pedroski55
  MetaTrader 5 and Python problems with RSI and Alligator chart integration arturolv 0 486 Nov-28-2024, 06:25 PM
Last Post: arturolv
  Install a module to a specific to Python Installation (one of many)) tester_V 2 1,792 Oct-29-2024, 03:25 PM
Last Post: snippsat
  Python install issue redreign83 2 770 Oct-04-2024, 07:59 AM
Last Post: Larz60+
  SOLVED: Install mailer module in Python 3.11.2? Calab 3 2,121 Jul-03-2024, 02:03 PM
Last Post: Calab
Question No disconnect method for snowflake.connector ? Calab 0 796 Jun-11-2024, 09:42 PM
Last Post: Calab
  Python Code Help - pip install PyMuPDF python-docx pillow Splishsplash92 3 1,873 Jun-05-2024, 06:49 AM
Last Post: Pedroski55

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020