PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Wednesday the 6th of April, 2016

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[07:59:51] <tj__> hey, i'm foolin around with debian, django, python3 and virtualenv and i can't "pip3 install mysqlclient" in virtualenv, it gives me the "Command python setup.py egg_info failed with error code 1 in...". I tried installing 'n upgrading setuptools, i read the 3 stackoverflow pages, didn't find anything useful for me. does anyone have an idea?
[08:02:29] <tj__> same thing if i try to install psycoppg2... for postgreSQL
[08:02:48] <tj__> psycopg2*
[08:16:15] <meshy> tj__: could paste the whole traceback here, please? https://dpaste.de/
[08:16:42] <tj__> yah, thanks, just a min
[08:17:58] <tj__> $ pip3 install mysqlclient
[08:17:58] <tj__> Collecting mysqlclient
[08:17:59] <tj__> Using cached mysqlclient-1.3.7.tar.gz
[08:17:59] <tj__> Complete output from command python setup.py egg_info:
[08:17:59] <tj__> /bin/sh: 1: mysql_config: not found
[08:18:01] <tj__> Traceback (most recent call last):
[08:18:03] <tj__> File "<string>", line 1, in <module>
[08:18:06] <tj__> File "/tmp/pip-build-1_fptgx4/mysqlclient/setup.py", line 17, in <module>
[08:18:09] <tj__> metadata, options = get_config()
[08:18:11] <tj__> File "/tmp/pip-build-1_fptgx4/mysqlclient/setup_posix.py", line 44, in get_config
[08:18:14] <tj__> libs = mysql_config("libs_r")
[08:18:16] <tj__> File "/tmp/pip-build-1_fptgx4/mysqlclient/setup_posix.py", line 26, in mysql_config
[08:18:19] <tj__> raise EnvironmentError("%s not found" % (mysql_config.path,))
[08:18:22] <tj__> OSError: mysql_config not found
[08:18:27] <tj__> ----------------------------------------
[08:18:29] <tj__> Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-1_fptgx4/mysqlclient/
[08:19:09] <tj__> ah, sory, i shoulda.... yeah... : ))
[08:19:15] <tj__> dpaste.de...
[08:20:01] <tj__> https://dpaste.de/HGrj
[08:20:04] <tj__> is this it?
[08:25:06] <meshy> tj__: the readme [1] suggests that there might be some packages you need installed.
[08:25:07] <meshy> https://github.com/PyMySQL/mysqlclient-python
[08:25:40] <meshy> tj__: have you run `sudo apt-get install python3-dev libmysqlclient-dev`?
[08:26:16] <tj__> no, but i am working in a virtualenv, do global apt-get install affect my virtualenv?
[08:27:39] <meshy> tj__: yeah, some system packages need to be installed globally even when using a virtualenv
[08:28:01] <tj__> meshy: oh, that's cool, let me do it : )
[08:28:09] <meshy> tj__: ace :)
[08:30:33] <tj__> meshy: IT WORKED !
[08:30:47] <tj__> meshy: pretty thanks > ^_^ <
[08:31:03] <meshy> tj__: fantastic!
[08:31:07] <meshy> tj__: you're welcome :)
[11:19:34] <gadget> Hello. I'm trying to copy a json file into EGG-INFO when installing a package. Is there another way of doing this other than creating a method to run with a egg_info.writers entry point?
[11:20:21] <gadget> or if that sounds like an odd thing to do; the high level thing that I'm trying to achieve is to supply some arbitrary metadata about my package to a consumer application through pkg_resources
[11:29:57] <ronny> gadget: what kind of data do you want to supply?
[11:32:14] <gadget> Preferably some json about what things the plugin provides to the consumer application
[11:33:00] <dstufft> gadget: I think egg_info.writers is the primary way
[11:33:08] <dstufft> you might be able to hack it by overriding some command though