Skip to content

OSX - installation failed #189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
johaven opened this issue Jul 6, 2017 · 5 comments · Fixed by #212
Closed

OSX - installation failed #189

johaven opened this issue Jul 6, 2017 · 5 comments · Fixed by #212

Comments

@johaven
Copy link

johaven commented Jul 6, 2017

Python version: 3.6.1
Osx: 10.12.5

pip install mysqlclient
Collecting mysqlclient
  Using cached mysqlclient-1.3.10.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/gk/1zzx8k855qj02gb3flvt_tfw0000gn/T/pip-build-_gwy_khc/mysqlclient/setup.py", line 17, in <module>
        metadata, options = get_config()
      File "/private/var/folders/gk/1zzx8k855qj02gb3flvt_tfw0000gn/T/pip-build-_gwy_khc/mysqlclient/setup_posix.py", line 54, in get_config
        libraries = [dequote(i[2:]) for i in libs if i.startswith('-l')]
      File "/private/var/folders/gk/1zzx8k855qj02gb3flvt_tfw0000gn/T/pip-build-_gwy_khc/mysqlclient/setup_posix.py", line 54, in <listcomp>
        libraries = [dequote(i[2:]) for i in libs if i.startswith('-l')]
      File "/private/var/folders/gk/1zzx8k855qj02gb3flvt_tfw0000gn/T/pip-build-_gwy_khc/mysqlclient/setup_posix.py", line 12, in dequote
        if s[0] in "\"'" and s[0] == s[-1]:
    IndexError: string index out of range

Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/gk/1zzx8k855qj02gb3flvt_tfw0000gn/T/pip-build-_gwy_khc/mysqlclient/
@methane
Copy link
Member

methane commented Jul 6, 2017

Report it to Oracle, not here.

@methane methane closed this as completed Jul 6, 2017
@johaven
Copy link
Author

johaven commented Jul 6, 2017

Why Oracle ? Setup_posix.py crashed, it does not catch error no ?

@methane
Copy link
Member

methane commented Jul 6, 2017

Why don't you search closed issues?
I answered same question many many many times!!!

Since I use Github, many users ask to me very easily.
I must reply them while it's Oracle's fault!
But since Oracle doesn't use Github for issue tracker, no one report it to Oracle!!

Please read closed issues and report it to Oracle's issue tracker.

@johaven
Copy link
Author

johaven commented Jul 6, 2017

To avoid the issue, a small warning message in the code instead of this crash would be better.
Thank you for your patience, do not forget to take a little holiday ;)

@methane
Copy link
Member

methane commented Jul 6, 2017

I'm not God. I don't show good warning for unexpected wrong output from other components.

I filed bug report: https://bugs.mysql.com/bug.php?id=86971
And I surprised no one filed it already, while I read this issue several times.

So I think no one really want's to fix it. People just want to ask a question easily.
People feel Github easy and maintainer is free tech support.

gvoysey added a commit to gvoysey/mysqlclient-python that referenced this issue Nov 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants