From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] need help with adding python-mysqldb
Date: Tue, 5 Apr 2016 00:39:48 +0200 [thread overview]
Message-ID: <5702ED34.5060405@mind.be> (raw)
In-Reply-To: <CAPTQzABFmehM_FhTOvMWO9Jmc63u8BLX1sG1B_zDU=OED57nVA@mail.gmail.com>
On 04/05/16 00:28, Anatoly Asviyan wrote:
> Hi
> I am trying to add python-mysqldb package. I 've patched buildroot (the patch is
> here
> https://gist.githubusercontent.com/aanatoly/997d7ced70aaf9e13d57b5cc85751862/raw/3d71a992e748d9c40ca1961b0dd951fb300184d0/python-mysqldb.patch)
>
> but make fails with this error
>
>>>> python-mysqldb 1.2.5 Downloading
> --2016-04-05 00:55:28--http://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.5.zip
> Resolvingpypi.python.org <http://pypi.python.org> (pypi.python.org <http://pypi.python.org>)... 185.31.17.223
> Connecting topypi.python.org <http://pypi.python.org> (pypi.python.org <http://pypi.python.org>)|185.31.17.223|:80... connected.
> HTTP request sent, awaiting response... 301 Moved Permanently
> Location:https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.5.zip [following]
> --2016-04-05 00:55:29--https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.5.zip
> Connecting topypi.python.org <http://pypi.python.org> (pypi.python.org <http://pypi.python.org>)|185.31.17.223|:443... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 108935 (106K) [application/octet-stream]
> Saving to: `/home/me/work/buildroot-x86_64/output/build/.MySQL-python-1.2.5.zip.ip6WvS/output'
>
> 100%[=====================================================================================================================>] 108,935 --.-K/s in 0.1s
>
> 2016-04-05 00:55:29 (946 KB/s) - `/home/me/work/buildroot-x86_64/output/build/.MySQL-python-1.2.5.zip.ip6WvS/output' saved [108935/108935]
>
> WARNING: no hash file for MySQL-python-1.2.5.zip
>>>> python-mysqldb 1.2.5 Extracting
> /home/me/work/buildroot-x86_64/dl/MySQL-python-1.2.5.zip | tar --strip-components=1 -C /home/me/work/buildroot-x86_64/output/build/python-mysqldb-1.2.5 -xf -
> /bin/bash: /home/me/work/buildroot-x86_64/dl/MySQL-python-1.2.5.zip: Permission denied
> tar: This does not look like a tar archive
> tar: Exiting with failure status due to previous errors
That's a zip file, so you'll have to give custom extract commands to unzip it.
> make[1]: *** [/home/me/work/buildroot-x86_64/output/build/python-mysqldb-1.2.5/.stamp_extracted] Error 2
> make: *** [_all] Error 2
>
>
> It looks like it runs "foo.zip | tar ..." instead of "unzip foo.zip | tar ...".
> I can't figure why. Other zip'ed packages are built ok, for example python-keyring.
Look at PYTHON_KEYRING_EXTRACT_CMDS.
However, MySQL-python seems to be dead. Why not use the better-maintained
PyMySQL? There is already a patch for it:
http://patchwork.ozlabs.org/patch/602638/
Regards,
Arnout
>
> --
> Regards, Anatoly
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
next prev parent reply other threads:[~2016-04-04 22:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-04 22:28 [Buildroot] need help with adding python-mysqldb Anatoly Asviyan
2016-04-04 22:39 ` Arnout Vandecappelle [this message]
2016-04-04 23:59 ` Steve Calfee
2016-04-05 0:24 ` Anatoly Asviyan
2016-04-05 0:53 ` Steve Calfee
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5702ED34.5060405@mind.be \
--to=arnout@mind.be \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.