Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Dannon
@dannon
In general, do you think python syntax is shifting more functional though?
Things like next(iter(mylist)) instead of mylist[0], etc.
Nicola Soranzo
@nsoranzo
You probably refer to d.keys()[0]-> next(iter(d.keys()))
Dannon
@dannon
Right. I'm not asking about any specific changes, though, or even the Galaxy codebase here. I'm just talking Python in general.
Nicola Soranzo
@nsoranzo
which is a workaround needed to support both Python2 (where d.keys() is not an iterator) and Python3 where dict_keys does not support indexing
Dannon
@dannon
(I realize why we now do next(iter(..), it just feels unfortunate)
Nicola Soranzo
@nsoranzo
Surely many methods return iterables instead of lists in Python3, not sure if that's a shift towards functional programming or just trying to be efficient
Dannon
@dannon
Hrmm, k.
Nicola Soranzo
@nsoranzo
https://docs.python.org/3/library/functional.html is a bit richer than in Py2, but not that much
galaxybot
@galaxybot
[mrscribe] Title: 10. Functional Programming Modules Python 3.6.4 documentation (at docs.python.org)
Nicola Soranzo
@nsoranzo
@martenson I've added a commit to galaxyproject/galaxy#5681, hope that's OK
Martin Cech
@martenson
I am happy you did, please do this any time to any of my PRs.
And I will buy you a beer.
Let's say for every dozen?
That is ~a shot of beer for each commit. ;)
Nicola Soranzo
@nsoranzo
Deal!
Martin Cech
@martenson
@dannon how come some of your commits are not verified/signed? https://github.com/galaxyproject/galaxy/commits/dev
galaxybot
@galaxybot
[mrscribe] Title: Commits · galaxyproject/galaxy · GitHub (at github.com)
Martin Cech
@martenson
(just curious)
Dannon
@dannon
Hrmm...
Oh! I bet the signed ones are from my mac, but the unsigned are from my linux box.
Martin Cech
@martenson
That makes sense.
Dannon
@dannon
Yeah. I keep bouncing back and forth between the two boxes. I probably need to just pick one.
That, and configure the linux box git sig correctly, in any event.
Martin Cech
@martenson
someone please merge galaxyproject/galaxy#5685
galaxybot
@galaxybot
[mrscribe] Title: [18.01] add security announcement to the release notes by martenson · Pull Request #5685 · galaxyproject/galaxy · GitHub (at github.com)
Dannon
@dannon
Is galaxyproject/galaxy#5572 something we need to get into 18.01?
galaxybot
@galaxybot
[mrscribe] Title: Fix/default role type on auto created roles by scholtalbers · Pull Request #5572 · galaxyproject/galaxy · GitHub (at github.com)
Dannon
@dannon
(there's cruft from the retargeting, looks like, but the fix itself is what I'm referring to)
Qiang Gu
@qiagu
galaxyproject/galaxy#5687
Galaxy uWSGI process got Segmentation Fault on OS X. This problem happens occasionally in my MAC. I feel it's a problem of uWSGI, not Galaxy. Maybe an upgrade of uWSGI could solve the problem.
Nicola Soranzo
@nsoranzo
@natefoo ^
Nate Coraor
@natefoo
@qiagu: can you try ./.venv/bin/pip uninstall -y uwsgi && ./.venv/bin/pip install --no-cache-dir --no-binary :all: -y uwsgi?
Qiang Gu
@qiagu
The uninstallation worked, but the installation didn't.
error: no such file or directory: '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/libpython2.7.a'
error linking uWSGI
Nate Coraor
@natefoo
that's strange
Qiang Gu
@qiagu
Also, 'no option -y' for the installation part. The message was produced by removing the '-y'.
Dannon
@dannon
D'oh. Was just replying to the github issue you made.
Nate Coraor
@natefoo
oh right, pip install doesn't have a prompt
Dannon
@dannon
After we tracked down the issue I was having with the uwsgi wheel you built a new one, right?
Nate Coraor
@natefoo
yeah i think?
Dannon
@dannon
Yeah, I thought so too, was just trying to track through all we did to fix it.
:q
...
Ok, so mine was __CF_USER_TEXT_ENCODING being set or not causing the segfault.
(when unset, reliably segfaulted -- when set everything was peachy)
Nate Coraor
@natefoo
yeah but that was a red herring.
here's the fix i ultimately applied: unbit/uwsgi#1680
galaxybot
@galaxybot
[mrscribe] Title: Reinitialize environ after uwsgi_setup_reload() when running as a CPython extension on macOS by natefoo · Pull Request #1680 · unbit/uwsgi · GitHub (at github.com)
Dannon
@dannon
Hrmm. Not a peep on the PR on their end, kind of a bummer.
Nate Coraor
@natefoo
yeah. =(
and unfortunately the wheel should already be fixed.