PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Tuesday the 30th of June, 2015

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[06:49:21] <lansman> hello guys, i got old version of setuptools_scm, upgraded it to new by 'pip install setuptools_scm --upgrade', but 'setup.py bdist_wheel' on my project seems to used old version. Tell me please is there any cache that i'd like to clear
[06:59:28] <ronny> lansman: do you have a .eggs folder?
[07:00:06] <ronny> lansman: setuptools has some stragne behaviour wrt setup_requires, its sometimes necessary to clean the eggs folder, in case of doublt, directly set the requirement to a high version
[07:00:35] <lansman> it was, i deleted it, but it doesn't help
[07:01:23] <ronny> lansman: did you install setuptools_scm by setup.py install or easy_install once?
[07:01:57] <lansman> i insleed setuptools_scm by pip
[07:02:02] <lansman> installed*
[07:02:30] <lansman> it seems i've solved the problem
[07:02:36] <lansman> but have got another one
[07:03:00] <lansman> let me explain, but when i issued 'pip list' i've seen my package istalled but there was an error message near it 'Error when trying to get requirement for VCS system Command "hg showconfig paths.default" failed with error code 1
[07:03:58] <lansman> i went directly to hgrc file in .hg in my project and added in sections [paths] constant default=<path_to_project_folder>
[07:04:21] <lansman> is it ok solution?
[07:05:16] <ronny> lansman: im not sure i follow,
[07:08:16] <lansman> when i added that constant to hgrc,
[07:08:34] <lansman> 'pip list' becames work ok
[07:09:06] <lansman> but i'm checking right now, and it seems no, problem isn't solved
[07:09:29] <ronny> lansman: you might have a botched virtualenv, recreate it
[07:09:40] <lansman> i'm not in virtualenv
[07:09:57] <ronny> then where did you install setuptools_scm? global?
[07:10:23] <ronny> also what os are you on
[07:10:37] <lansman> ronny: yes, global, Windows 7
[07:10:41] <lansman> i deleted setuptools_scm by 'pip uninstall setuptools_scm', and i deleted .eggs, build, dist, <my_proj>.egg-info folders in my project directory
[07:11:11] <ronny> lansman: how did you figure its using a old version?
[07:24:22] <lansman> ronny: i've just tried to fund proofs, that i'm using old version but cannot, probably i use the last and there is a old bug there i've supposed to be fixed, i have to investigate it..
[07:24:46] <lansman> find*
[07:26:10] <lansman> ronny: but i have another problem, i can see my package in 'pip list' output like 'MY_PACKAGE (0.0.0, 'pack_to_project_on_my_HDD)''
[07:26:32] <lansman> path_to_project_on_my_HDD* sorry for typos
[07:27:01] <lansman> why is there a path to my project on HDD in 'pip list' output?
[08:42:02] <lansman> guys, how to delete package installed in editable mode?
[08:50:27] <glyph> lansman: pip uninstall?
[08:50:52] <lansman> glyph: doesn't work, developing package is still in the 'pip list' output
[08:51:18] <lansman> glyph: neither 'python2 setup.py develop --uninstall' works
[08:51:25] <glyph> lansman: pip uninstall <packagename> not pip uninstall .
[08:51:27] <ronny> re
[08:51:47] <ronny> lansman: sorry, internet at work failed me and i had n way to reconnect to my server
[08:52:24] <lansman> ronny: it's okay, it happens :)
[08:52:24] <ronny> lansman: never use python setup.py ... to install anything, always use pip
[08:52:34] <ronny> lansman: what distro are you on?
[08:52:43] <lansman> ronny: i use python setup.py to build wheel, i use Windows
[08:53:00] <glyph> lansman: you don't need to install the package to build a wheel
[08:53:31] <lansman> i know but i occasionally installed and don't know how to delete it now
[08:54:53] <lansman> i can see <my_pachage_name> in site-packages folder together with <my_package-0.0.0.dist-info> folder, it isn't deleted after my tryings to delete it
[08:56:10] <ronny> lansman: that sounds suspiciously like you have a broken setuptools_scm around
[08:56:45] <ronny> lansman: can you perhaps di a pip install setuptools_scm==1.5.1 followed by python setup.py egg_info in the projet
[08:57:35] <lansman> i've deleted setuptools_scm at this moment, okay, i'll try it
[08:58:05] <lansman> are you sure 1.5.1? probably 1.5.4?
[08:58:40] <ronny> lansman: there was a win32 issue introduced thati thought i fixed, so the older version should work more certainly
[08:58:54] <ronny> lansman: fyi, im the author of setuptools_scm
[08:59:23] <lansman> Collecting setuptools-scm==1.5.1
[08:59:23] <lansman> Could not find a version that satisfies the requirement setuptools-scm==1.5.1 (from versions: 0.26, 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.4.1, 1.5.0, 1.5.2, 1.5.3, 1.5.4)
[09:00:05] <ronny> oh, right, that one was removed due to my packaginf mistake, sorry
[09:00:25] <ronny> please try 1.5.0 and 1.5.2
[09:02:31] <lansman> ronny: that bug with TypeError "environment can only contain strings" have been already fixed or not?
[09:03:23] <lansman> ronny: i've issued both the commands, what is next?
[09:04:28] <ronny> lansman: that fix is in 1.5.4
[09:04:38] <ronny> lansman: check what version is in your egg info folder
[09:06:07] <lansman> ronny: let me be precise: version of what?
[09:06:29] <ronny> lansman: the version setuptools_scm extracted should be put into the metadata
[10:02:59] <lansman> ronny: sorry, i'm on my work place and was distracted
[10:05:11] <lansman> in folder <my_project>.egg-info there is no info about setuptools-sc
[10:20:01] <ronny> lansman: what does python setup.py --version output?
[10:20:40] <lansman> ronny: 0.1.dev90+n80eec607bac7.d20150630
[10:22:21] <ronny> now remove the dist folder, and do python setup.py bdist_wheel once and see of thats also the version of the wheel
[10:25:33] <lansman> yes, a <myproj>-0.1.dev90+n80eec607bac7.d20150630-py2-none-any.whl appeared in dist
[10:25:44] <lansman> ronny: should i install it?
[10:29:53] <lansman> ronny: i've instaled it, it required --upgrade param to do it. But it seems doesn't change anything, there is still my project in editable mode in 'pip list' output: MY_SCRIPT (0.1.dev90+n80eec607bac7.d20150630, PATH_TO_MY_SCRIPT_FOLDER)
[11:46:43] <ronny> lansman: as fat as i can tell setuptools_scm works correct for you now
[11:46:46] <ronny> *far
[11:51:07] <lansman> ronny: it seems works only on 1.5.0, i've tried to upgrade to 1.5.4 right now and've got TypeError: environment can only contain strings. Are you going to fix it and, if so, when?
[11:52:12] <ronny> lansman: i have to recheck why it appeared again, i was under the impression it was fixed, but i cant take a look a it while at work
[11:55:56] <ronny> lansman: so maybe this afternoon, but if rl strikes, at the end of the week
[11:56:12] <ronny> lansman: btw, python2 or python3?
[11:56:21] <ronny> oh, wait, python2
[11:56:27] <lansman> ronny: yes, python2
[11:56:49] <lansman> ronny: ask me and i send you any logs etc whatever your want
[11:57:56] <ronny> lansman: the issue is known, and wil lbe fixed
[11:58:17] <ronny> not haivng a windows box is a pain
[11:59:09] <ronny> lansman: im not certain when i get my hands at it (currently my free time is limited due to personal constraints)
[12:02:22] <lansman> ronny: it's okay, it's very nice you do fixes in your library at all
[12:35:21] <ronny> unfortunately currently its rather sporadic :/
[14:14:38] <nemo> So... I'm using pip for the first time
[14:14:50] <nemo> for some gcalcli thingy that seemed neat
[14:14:56] <nemo> error: [Errno 13] Permission denied: '/usr/lib/python2.7/site-packages/gcalcli-3.3-py2.7.egg-info'
[14:15:06] <nemo> O_o it wants to install under /usr/lib by default?
[14:15:12] <nemo> is there any way to make it not do that?
[14:15:21] <nemo> would prefer $HOME but will settle for /usr/local
[14:18:56] <nemo> hm... http://stackoverflow.com/questions/7143077/how-can-i-install-packages-in-my-home-folder-with-pip says --user
[14:18:59] <nemo> let's see
[14:19:47] <tos9> nemo: Yeah. You want --user.
[14:20:03] <tos9> (I assume you're coming from npm or something. Unfortunately --user isn't the default [yet? ha ha :(] for pip)
[14:20:19] <nemo> ugh. it refetches all intermediate packages when reattempting
[14:20:53] <tos9> nemo: what version of pip?
[14:21:07] <tos9> newer ones will automatically use a local cache, and will look there even after failed installs
[14:21:19] <nemo> you guys need something like /usr/portage/distfiles
[14:21:20] <nemo> ah
[14:21:35] <nemo> [I] dev-python/pip (1.5.6@30/06/15): Installs python packages -- replacement for easy_install
[14:21:53] <nemo> appears all the recent ones are flagged as ~ experimental... someone is slacking
[14:22:06] <nemo> https://packages.gentoo.org/package/dev-python/pip
[14:22:40] <nemo> tos9: I'm certainly more familiar w/ npm than pip
[14:22:44] <nemo> tos9: but, yeah, npm or cpan
[14:22:59] <tos9> Well cpan is another story :P
[14:23:07] <nemo> actually, spent some frustrated time ranting 'cause the blog post I was following assumed I knew how to get pip
[14:23:15] <nemo> and I was having some trouble finding it in portage
[14:23:22] <nemo> but that was just me being blind I think
[14:23:26] <nemo> and machine not updated maybe
[14:24:18] <tos9> well, there's also unfortunately lots of outdated / wrong packaging information out there :/
[14:46:47] <nemo> tos9: my guess is it has languished in unstable due to lack of testing/feedback on the gentoo bug tracker from someone capable of promoting to stable
[14:47:09] <nemo> but, eh, my use of python is pretty limited. so long as I can get this one thing working, I'll be happy ☺
[14:48:56] <nemo> my other fairly common use of python is a 20 line script that someone wrote for me and I use to fix up nethack, and that amusingly a good dozen python coders I've linked it to, seem incapable of porting to python 3
[14:49:05] <nemo> I get the feeling python 2 may end up existing forever...
[14:49:18] <tos9> nemo: It probably will :).
[14:53:47] <ionelmc> humour this question: why do you have to use gentoo's pip package?
[14:54:02] <ionelmc> are there issues with installing pip "normally" ?
[14:54:59] <nemo> in general I prefer to use package managers to mess w/ the system rather than doing things manually
[14:55:14] <nemo> the reasons for that probably fall under "why use package managers at all"
[14:55:31] <nemo> automatic updates, easy install, dependencies, easy uninstall, not losing track of files, avoiding conflicts...
[14:55:49] <nemo> anyway, doesn't seem I need one of the newer versions of pip, but if I did, I'd flag it as ~arch in config and move on
[14:56:02] <nemo> but someone who cares might want to file a bug about it ☺
[14:56:57] <nemo> hunting for existing pip bugs. this is the only one I've found so far. https://bugs.gentoo.org/show_bug.cgi?id=529954
[14:57:05] <nemo> notes need to stabilise. but has gotten no attention since
[15:15:39] <ionelmc> nemo: seems ridiculous to praise automatic updates given your predicament
[15:16:03] <ionelmc> nemo: also, pip doesn't have any dependencies (it bundles all its dependencies)
[15:16:06] <nemo> I'm not in a predicament? I just installed it and moved on?
[15:16:20] <nemo> I initially came by 'cause I didn't know about --user
[15:16:24] <nemo> which I found on stackoverflow
[15:16:29] <ionelmc> ah well
[15:16:32] <nemo> I'd commented it was refetching packages which seemed non-optimal
[15:16:44] <nemo> if I was going to install anything else w/ it, I'd certainly update the package
[15:16:49] <ionelmc> i'm just hating on outdated packaging :)
[15:16:51] <ionelmc> nevermind me
[15:17:01] <nemo> ionelmc: well, if you are, please bug the gentoo folks in the bug I linked ☺
[15:17:03] <nemo> or file a new one
[15:17:14] <ionelmc> ah well, i don't use gentoo
[15:17:17] <nemo> I have an account there, but tbh, don't care that much
[15:17:20] <ionelmc> i use ubuntu, same crap
[15:17:28] <nemo> I barely even bug them for Hedgewars, which I do have some responsibility to
[15:17:32] <nemo> ionelmc: well. are you a pip maintainer?
[15:17:41] <nemo> bugging distros is a responsible maintainer thingy
[15:17:44] <nemo> we do it every release
[15:18:31] <ionelmc> not a pip maintainer, just another use with "opinion on things" haha
[15:18:37] <ionelmc> s/use/user/
[15:18:40] <nemo> kk
[15:19:13] <nemo> but. yeah. clearly no one has done so for pip. has just been accumulating maintainance package bumps
[23:35:02] <agronholm> I'm seeing that on Jython, when pip installing anything, the commands put in the bin directory are not marked executable
[23:35:14] <agronholm> easy_install, on the other hand, works correctly