PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Wednesday the 8th of July, 2015

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[00:08:41] <tdsmith> is pypi feeling well? i'm getting HTTP 500's trying to upload a package with twine
[00:12:19] <tdsmith> (ping dstufft, gently ^)
[00:15:36] <agronholm> I'm getting 503 trying to upload docs
[00:28:02] <tdsmith> nevermind, i'm back in biz
[12:57:54] <superfly> ohi
[12:58:14] <superfly> I'm having a problem trying to use pip pgrammatically to install a package
[12:58:41] <superfly> I've got 2 packages I'm building myself, and one depends on the other.
[12:58:56] <superfly> I'm installing them into a virtualenv
[13:00:05] <superfly> The first one installs fine, but when I try to install the second one, it complains that it can't find the first
[13:02:33] <superfly> My "install_package.py" file: http://pastebin.com/KU3ThNAC
[13:06:51] <superfly> pip output when I try to install the second package: http://pastebin.com/ezf3pA6w
[16:59:41] <Everlost> hello!
[16:59:49] <Everlost> I'm trying to pip install zbar
[16:59:55] <Everlost> but it fails with :
[17:00:02] <Everlost> zbarmodule.h:26:18: fatal error: zbar.h: No such file or directory
[17:01:31] <xafer> I think you will need to install libzbar-dev
[17:01:51] <xafer> (apt-get install libzbar-dev or something related)
[17:55:22] <Everlost> thanks :)
[20:26:43] <vmonteco> Hello!
[20:57:49] <vmonteco> I have a little problem with pip, I have a requirements file, but it doesn't install the correct version of a package. :S
[20:58:04] <vmonteco> What could be the reason?
[21:47:45] <aclark> vmonteco: not specifying the version?
[21:48:29] <vmonteco> I did
[21:48:49] <vmonteco> aclark: Django==1.6.11 should work, no?
[21:49:24] <aclark> vmonteco: looks good to me!
[21:49:37] <Andarilho> Hi! I have a question about data files. How can I have a installation mutable file in a setuptools package? Like a config file or a activity history. For what I understand files under "data_files" may be zipped an thus are read only...
[21:50:06] <vmonteco> aclark: But after my pip install, I get a Django==1.7.4 with a pip freeze
[21:50:55] <aclark> vmonteco: sounds fishy
[21:51:59] <aclark> Andarilho: you don't typically write data within the package…
[21:52:49] <vmonteco> aclark: I agree. But I don't understand why this does this.
[21:53:08] <aclark> vmonteco: maybe you froze the wrong installation… hard to say
[21:53:26] <Andarilho> So I should do something like asking user for a location... right?
[21:53:43] <Andarilho> Or are there other solutions?
[21:54:19] <vmonteco> aclark: http://pastebin.com/raw.php?i=KFgEdhE7 here is my requirements file, I just do a pip install -r in a fresh Venv... :/
[21:54:20] <aclark> Andarilho: environment variables maybe… e.g. data_dir = os.getenv('DATA_DIR', '/tmp/data')
[21:54:49] <aclark> vmonteco: go look in the site-packages of the venv and make sure
[21:55:15] <vmonteco> aclark: make sure of the version of the django I installed in it?
[21:55:32] <vmonteco> aclark: isn't pip freeze enough?
[21:55:41] <Andarilho> vmonteco: I see. Thanks for the help!
[21:56:04] <vmonteco> Andarilho: wrong nick I guess :P
[21:56:26] <Andarilho> True!
[21:56:27] <aclark> vmonteco: "works for me" http://dpaste.com/0BKCY51
[21:56:29] <Andarilho> :)
[21:56:46] <Andarilho> Thanks aclark!
[21:56:52] <aclark> Andarilho: np! good luck
[21:57:32] <vmonteco> aclark: In fact, this also works on my Archlinux, but when I try on the Mac I use at my school, I have this weird problem.
[21:58:25] <aclark> vmonteco: and no, pip freeze is not enough unless you are sure you are using the right pip
[21:58:33] <vmonteco> And I can't figure out why
[21:58:56] <vmonteco> aclark: If I have the name of the Venv at the beginning of my prompt, isn't this correct?
[21:59:17] <aclark> vmonteco: maybe!? hard to say from here
[21:59:38] <aclark> (look in site-packages)
[21:59:52] <vmonteco> I will
[22:01:43] <vmonteco> aclark: Wait : You're right.
[22:02:40] <vmonteco> aclark: In my site-packages, I have a beautiful VERSION = (1, 6, 11, 'final', 0) at the beginning of my __init__.py
[22:03:22] <vmonteco> So my project uses the wrong site-packages?..
[22:05:40] <vmonteco> Oh... I think I see what the problem could be : when I work in my Venv, the first paths in my PYTHONPATH are the main paths, not the ones from the venv. Is that normal?
[22:16:33] <_habnabit> so i have install_requires=['some-pkg ~= 1.0.0'] and extras_require={'dev': ['some-pkg[feature']}, but it seems that pip is ignoring the second requirement and not installing the dependencies listed for that extra
[22:16:43] <_habnabit> i'm still trying to narrow this down but that seems to be the case
[22:18:54] <_habnabit> yeah, as soon as i remove the install_requires, it tries to install the extra's deps
[22:42:59] <_habnabit> well i traced through the code
[22:43:31] <_habnabit> https://github.com/pypa/pip/blob/7.1.0/pip/req/req_set.py#L251-L263 this is the code path it's hitting
[22:43:49] <_habnabit> it seems that it should ideally take the set union of all extras