PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Thursday the 10th of December, 2015

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[00:47:07] <FichteFoll> quick question, is using `python setup.py register` (with setuptools) safe now for recent versions?
[09:03:59] <t4nk230> hi
[09:04:30] <zahlman> I tried to `pip install pywin32`, and received the error `Could not find any downloads that satisfy the requirement pywin32`. Is that simply because my version of python isn't supported?
[09:05:06] <t4nk230> which os are u using
[09:07:20] <mgedmin> well, the pywin32 project hasn't uploaded any files to pypi
[09:07:21] <mgedmin> go bug them
[09:07:26] <mgedmin> sourceforge, oh my
[09:07:47] <zahlman> I found http://stackoverflow.com/questions/14913607/how-to-install-win32com-module-in-a-virtualenv
[09:08:30] <zahlman> ... wait, you can have a project page on pypi without actually hosting the project there?
[09:08:45] <mgedmin> define "hosting"
[09:08:50] <mgedmin> and yes, you can
[09:09:14] <mgedmin> older versions of setuptools would crawl all pages reachable from the pypi index looking for links that look like maybe they point to downloadable archives
[09:09:20] <mgedmin> newer versions of setuptools/pip stopped doing that
[09:09:30] <mgedmin> there was a transition and everything
[09:09:48] <mgedmin> but of course nobody updates dead projects :/
[09:10:08] <zahlman> heh
[09:14:00] <zahlman> looks like the pypi page doesn't even have correct classifiers; the sf page is showing builds for 3.4 and 3.5
[09:15:59] <mgedmin> the project can't be dead if there are builds for 3.5
[09:16:09] <mgedmin> maybe some gentle prodding is necessary
[09:16:20] <mgedmin> in the form of a wishlist bug
[09:16:47] <mgedmin> or maybe they have problems compiling wheels
[09:16:54] <zahlman> I mean, in that case I'd say 'get off sourceforge; people still use that?', but :)
[09:17:02] <mgedmin> and there's little point in uploading sdists since end users tend not to have C compilers on windows
[09:17:20] <mgedmin> "would you pleas consider migrating to github" might be a more politic phrasing
[09:17:29] <zahlman> indeed
[09:17:45] <zahlman> it does look like it's intended that you just run an installer.
[09:17:57] <zahlman> this project is by Mark Hammond, a name I remember
[09:18:17] <zahlman> iirc he's been credited in the Python installer as 'without whose help Python for Windows would still be Python for DOS'
[09:18:38] <zahlman> it really would be nice for python's windows support in general to be more transparent.
[09:20:08] <zahlman> there does appear to be a (zipped) source distribution, though, setup.py and all.
[09:21:10] <mgedmin> which is good
[09:21:59] <zahlman> looks like I can give the path to the .zip directly to pip? am I reading the help correctly?
[09:25:05] <zahlman> sigh, the setup.py is written for 2.x. Is there some way to tell pip to 2to3-ize it as part of the process?
[09:26:48] <mgedmin> if they have binary builds, use those
[09:26:54] <mgedmin> if they're not in wheel format, use wheel convert
[09:27:06] <zahlman> ... what the hell. This setup.py has an explicit `is_py3k` check at the top, but uses incompatible 2.x print statements
[09:27:09] <zahlman> that's definitely a bug.
[09:27:25] <zahlman> they have... installer exes, ugh.
[09:27:54] <mgedmin> https://sourceforge.net/p/pywin32/feature-requests/113/
[09:28:08] <mgedmin> created: 2015-03-03
[09:28:46] <mgedmin> also https://sourceforge.net/p/pywin32/feature-requests/110/
[09:29:03] <mgedmin> oh hey look: https://pypi.python.org/pypi/pypiwin32
[09:30:41] <zahlman> excellent! thanks for the search-fu :)
[09:31:46] <zahlman> too bad that `pip install pywin32` doesn't find pypiwin32.
[09:35:05] <mgedmin> hmm, glyph is a pypi maintainer for both projects; he could upload the wheels into pywin32
[09:37:05] <zahlman> ...ahaha. pip claims it installed successfully (into my virtualenv, even, which apparently isn't supposed to be possible http://sourceforge.net/p/pywin32/bugs/669/)
[09:37:19] <zahlman> but it reported an error in 'compiling' the python scripts
[09:37:40] <zahlman> and I was rather amused by what tripped it up.
[09:38:33] <zahlman> https://gist.github.com/zahlman/6674e92744018741b86c
[09:39:17] <zahlman> I guess 2to3 can't handle that.
[09:41:06] <mgedmin> oh my wow
[09:41:17] <mgedmin> you're basically doing archaeology there
[09:41:27] <mgedmin> (btw script compiling errors during pip install are harmless)
[09:42:00] <zahlman> I figured. well, it still means I can't import win32comext.mapi.mapisend and expect it to work as is ;)
[09:42:59] <zahlman> I guess it would have worked to use `globals()` instead, since then the value would be found in global lookup on the old versions, and ignored on 3.x+ (and also not be invalid syntax)
[09:43:17] <zahlman> but you would have had to have been pretty psychic to anticipate that in 2.3-ish days :)
[09:45:24] <zahlman> (since it's in a venv anyway, I'm going to just delete those lines. although I suspect the installer modified my registry quite a bit anyway, which would make it not such a clean virtualization)
[12:03:16] <lumidee> hi, how do i write 'console_scripts': [ 'gymail-cli = gymail: argparse_entrypoint',] if my function argparse_entrypoint is in the file /gymail/gymail.py? /gymail is the top package directory, there's non above. i get this error message: ImportError: module 'gymail' has no attribute 'argparse_entrypoint'. strangely the cli command still works though this error appears. i also tried 'console_scripts': [ 'gymail-cli = gymail.gymail:
[12:03:16] <lumidee> argparse_entrypoint',]
[14:01:35] <jml> If I have a project that needs --process-dependency-links to work (temporarily using a fork of a dependency while we wait for fixes to be merged), is there any way I can configure pip so that `pip install -e .[dev]` automatically uses --process-dependency-links?
[14:03:11] <mgedmin> something like export PIP_PROCESS_DEPENDENCY_LINKS=true?
[14:03:32] <mgedmin> maybe a config file in ~/.config/pip?
[14:03:48] <mgedmin> iirc every pip option can be set three ways: on the command line, via environtment, via config file
[14:04:02] <mgedmin> https://pip.pypa.io/en/stable/user_guide/#configuration
[14:15:47] <jml> mgedmin: interesting, thanks
[14:16:08] <jml> but I think I'd still have to convince everyone in our dev team to do that.
[14:17:49] <mgedmin> do your devs do `pip install -e .[dev]` by hand?
[14:17:56] <mgedmin> maybe create a Makefile to automate that
[14:18:06] <mgedmin> have the makefile do `pip install --process-dependency-links -e .[dev]`
[14:18:12] <ronny> jml: do you have a own devpi instance, at my workplace we upload local versions to a devpi instance, pin those and require all devs to use the devpi
[14:24:29] <jml> ronny: yeah, we do have that, but we don't yet require all devs to do anything like that.
[14:24:53] <jml> sounds like no matter what I do, it'll involve a change that needs to be communicated to all devs.
[14:25:37] <ronny> jml: exactly
[14:25:56] <ronny> jml: some things need people coomunication, so do it
[14:26:14] <ronny> *communication
[14:26:24] <jml> ok, thanks.
[14:27:21] <mgedmin> buildout is nice for situations like this: you add a '[buildout] find-links = https://our.intranet/forked-packages/' to buildout.cfg and everyone will get the right bits next time they run 'make' (or bin/buildout)
[14:27:27] <mgedmin> shame about buildout not supporting wheels
[14:40:48] <a-tal> jml: you can put —process-dependency-links in your requirements.txt
[14:47:46] <ronny> mgedmin: buildout is a mess tho (it tries to do too much at once)
[14:48:06] <mgedmin> buildout is terribly undermaintained
[14:51:52] <ronny> there are by no means the human ressources behind it to do whatit set out to do
[20:38:28] <ronny> jaraco: ping?
[20:38:35] <jaraco> heya ronny
[20:38:55] <jaraco> Regarding setuptools_scm #72, I was in the process of doing a merge when I first encountered the error.
[20:39:08] <jaraco> And I think that’s the factor (that I didn’t mention in the ticket).
[20:39:28] <jaraco> I probably finished the merge while I worked out the setuptools_scm issue, but the merge was likely implicated.
[20:39:32] <jaraco> I’ll test and see if I can replicate it.
[20:43:14] <jaraco> hmm. A repo in a pre-commit merged state seems to work with 1.9 but not 1.10.
[20:43:24] <jaraco> I’ll create a repro case.
[20:45:08] <ronny> jaraco: i made a minimal one and it works, what git version?
[20:45:22] <jaraco> latest mercurial
[20:45:40] <ronny> hmm, gah, *facepalm*
[20:45:59] <ronny> i managed to mess up by trying with git instead of hg
[20:46:30] <ronny> jaraco: btw, is it reasonable to do pr#s agaisnt your setuptools repo on gh?
[20:47:12] <jaraco> ronny: it’s acceptable, yes. In some ways it’s nicer (travis checks).
[20:48:01] <ronny> jaraco: im hoping i can finish m bb > gh importer bz the weekend (username mapping based on a actual human checked maping is missing)
[20:49:08] <jaraco> !pm ronny
[20:49:08] <pmxbot> Arrggh ye be doin' good work, ronny!
[20:49:13] <jaraco> That’s great to hear.
[20:52:03] <ronny> jaraco: i udnerstood the bug, there is a hg template i should be giving with a newline and expect more than one line, i can make test
[20:52:20] <jaraco> Great. Thanks.
[21:02:50] <ronny> jaraco: i think i have a fix
[21:04:26] <ronny> jaraco: i have a fix, preparing a release
[21:04:43] <jaraco> !jm ronny
[21:04:43] <pmxbot> ronny さん, あなたわよくやっています! (ronny san, anata wa yoku yatte imasu!) - (^_−)−☆
[21:05:03] <jaraco> !norris ronny
[21:05:03] <pmxbot> ronny can cut through a hot knife with butter.
[21:05:59] <ronny> heh
[21:07:23] <zahlman> what is 'jm' supposed to stand for?
[21:07:29] <jaraco> !help jm
[21:07:29] <pmxbot> !jm: None
[21:07:32] <ronny> jaraco: btw, i need admin perms on the pypa setuptools_scm repo, i'd like to enable appevoyer
[21:07:35] <jaraco> “japanese motivate"
[21:07:43] <zahlman> aha
[21:07:47] <ronny> !norris
[21:07:47] <pmxbot> #pypa was once on Wheel of Fortune and was the first to spin. The next 29 minutes of the show consisted of everyone standing around awkwardly, waiting for the wheel to stop.
[21:07:50] <jaraco> Part of the ‘motivation’ package.
[21:08:07] <ronny> !norris hell
[21:08:07] <pmxbot> hell runs Windows 10 on his Etch-a-Sketch.
[21:08:16] <ronny> lol
[21:10:40] <ronny> jaraco: released :)
[21:11:25] <jaraco> I’ll have the opportunity to test momentarily.
[21:19:52] <jaraco> Works! Thanks for the super-rapid response.
[21:25:54] <ronny> jaraco: im happy it turned out something simple :)
[21:26:36] <jaraco> elegance begets simplicity
[22:20:57] <FichteFoll> !logs
[22:20:57] <pmxbot> http://chat-logs.dcpython.org/channel/pypa
[22:32:56] <FichteFoll> !help
[22:32:56] <pmxbot> !8ball (8) !acronym (ac) !anchorman !annoy (a, bother) !bender (bend) !bitchingisuseless (qbiu) !blame !bless !boo !bottom10 (bottom) !calc !chain !cheer (c) !c
[22:32:57] <pmxbot> ompliment (surreal) !config !ctlaltdel (controlaltdelete, controlaltdelete, cad, restart, quit) !curse !dance (d) !danke (dankeschoen, ds) !deal !define (def) !
[22:32:58] <pmxbot> demotivate (dm) !disembowel (dis, eviscerate) !duck (ducky) !embowel (reembowel) !emergencycompliment (ec, emercomp) !esperantomotivate (em) !excuse (e) !featur
[22:32:58] <pmxbot> ecreep (fc) !fight !flip !fm (frenchmotivate) !fml !gettowork (gtw) !gm (germanmotivate) !golfclap (clap) !google (g) !grail !haiku !hal (2001) !hangover !help
[22:32:59] <pmxbot> (h) !hire !imotivate (im, ironicmotivate) !insult !jm (japanesemotivate) !job (card) !karma (k) !keelhaul (kh) !klingon (klingonism) !lm (latinmotivate) !log !l
[22:32:59] <pmxbot> ogo !logs !lunch (lunchpick, lunchpicker) !meaculpa (apology, apologize) !motivate (m, appreciate, thanks, thank, gracias) !murphy (law) !nailedit (nail, n) !na
[22:33:00] <pmxbot> stygram (nerf, passive, bcc) !norris !notify !oregontrail (otrail) !panic (pc) !password (pw, passwd) !paste !pick (p, p:, pick:) !pm (piratemotivate) !progress
[22:33:00] <pmxbot> !quote (q) !r (r) !resolv !roll !rubberstamp (approve) !saysomething !schneier !send_text !simpsons (simp) !stab (shank, shiv) !storytime (story) !strategy !st
[22:33:01] <pmxbot> rike !tgif !therethere (poor, comfort) !ticker (t) !tinytear (tt, tear, cry) !top10 (top) !translate (trans, googletrans, googletranslate) !troutslap (slap, ts)
[22:33:02] <pmxbot> !urbandict (urb, ud, urbandictionary, urbandefine, urbandef, urbdef) !version (ver) !where (last, seen, lastseen) !wolframalpha (wa) !zinger (zing) !zoidberg (
[22:33:02] <pmxbot> zoid)
[22:33:16] <FichteFoll> ugh, I expected /notice
[22:35:58] <ionelmc> !therethere FichteFoll
[22:35:58] <pmxbot> There there FichteFoll... There there.
[22:36:28] <ionelmc> !cad
[22:36:29] <pmxbot> Really?
[22:41:46] <zahlman> !wa mass of earth / population of earth
[22:41:49] <pmxbot> Zoiks! An error occurred: 'HTTPMessage' object has no attribute 'gettype'
[22:41:50] <pmxbot> !wa Wolfram Alpha rules
[22:42:04] <zahlman> :\
[22:42:27] <zahlman> !wa Wolfram Alpha rules
[22:42:32] <pmxbot> Zoiks! An error occurred: 'HTTPMessage' object has no attribute 'gettype'
[22:42:33] <pmxbot> !wa Wolfram Alpha rules
[22:42:36] <zahlman> (just in case that was a suggestion)
[22:42:37] <zahlman> oh well.
[22:43:26] <zahlman> !e
[22:43:26] <pmxbot> because Bill Gates is a Jehovah's witness and so nothing can work on St. Swithin's day.
[22:45:36] <FichteFoll> !version
[22:45:37] <pmxbot> 1112.1
[22:45:47] <FichteFoll> ... what kind of bot is this?
[22:48:09] <zahlman> its primary purpose is logging, AFAIK.
[22:57:24] <FichteFoll> I mean, does it use some known IRC bot framework or is it custom-coded?
[23:20:23] <jaraco> https://github.com/yougov/pmxbot
[23:20:31] <jaraco> It’s written in Python and uses the ‘irc’ library.
[23:22:15] <jaraco> shame !wa is broken...
[23:32:20] <jaraco> !version python
[23:32:20] <pmxbot> 3.4.1
[23:33:33] <jaraco> !version pmxbot-wolframalpha
[23:33:33] <pmxbot> 2.0.2
[23:33:39] <jaraco> !version wolframalpha
[23:33:39] <pmxbot> 1.0.2
[23:49:18] <jaraco> !version wolframalpha
[23:49:19] <pmxbot> 1.4
[23:49:24] <jaraco> !version pmxbot-wolframalpha
[23:49:24] <pmxbot> 2.0.2
[23:49:35] <jaraco> !wa What’s the weather in Washington, DC?
[23:49:55] <jaraco> !wa What’s the temperature in Washington, DC?
[23:50:04] <jaraco> !wa 3+5
[23:50:06] <pmxbot> 8
[23:50:24] <jaraco> !wa What was the high temperature in Washington DC on Nov 5, 2015
[23:50:42] <jaraco> drat. I’ve seen that work before. alas, not today.