Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 16:55
    namtzigla opened #1627
  • 14:36

    the-hogfather on v16.0.0-prerelease.6

    (compare)

  • 14:20
    peterebden commented #1590
  • 13:34

    peterebden on master

    Release prerelease 6 (#1626) (compare)

  • 13:34
    peterebden closed #1626
  • 13:12
    peterebden review_requested #1626
  • 13:12
    peterebden opened #1626
  • 13:11

    peterebden on master

    Make individual sandbox dirs co… (compare)

  • 13:11
    peterebden closed #1622
  • 13:04
    peterebden commented #1601
  • 12:42
    peterebden synchronize #1622
  • 12:22

    peterebden on master

    Stop sending output files & dir… (compare)

  • 12:22
    peterebden closed #1624
  • 11:32
    peterebden synchronize #1622
  • 10:15
    Tatskaari labeled #1597
  • 10:12
    Tatskaari closed #1615
  • 10:12
    Tatskaari commented #1615
  • 09:04
    peterebden commented #1615
  • 09:04
    peterebden reopened #1615
  • Mar 07 19:07
    sagikazarmark opened #1625
alaroldai
@alaroldai:matrix.org
[m]
FWIW though I did inspect the "pex" file before, and it was only four bytes long
Jonathan Poole
@tatskaari:matrix.org
[m]
We wrote a little program called jarcat that we use to concatenate zip (.jar, and .pex) files together which is must faster than unzipping and rezipping them. Maybe it's not happy with the .zip for some reason.
Oh well that seems wrong...
alaroldai
@alaroldai:matrix.org
[m]
hmm
well, now I have a different problem!
failing to import the numpy C extensions
Jonathan Poole
@tatskaari:matrix.org
[m]
You probably need to mark numpy as not being zipsafe. There's a flag on the pip_libarary()/python_wheel() rules.
alaroldai
@alaroldai:matrix.org
[m]
yep, had a look at that
but I'm running with a fresh clone of the codelabs
Jonathan Poole
@tatskaari:matrix.org
[m]
the problem is that python libraries sometimes expect to find resources as files and it can't if they're xipped up
alaroldai
@alaroldai:matrix.org
[m]
and it looks like it's already marked as not zipsafe
Jonathan Poole
@tatskaari:matrix.org
[m]
Bah it's probably trying to compile numpy from sources because your platform doesn't have a .whl available or something
alaroldai
@alaroldai:matrix.org
[m]
that might be it - I guess I can try replacing it with a python_wheel rule instead of pip_library...
I guess that'll add a bunch of extra complexity though
Jonathan Poole
@tatskaari:matrix.org
[m]
Yeah but those expect you to host them yourself... pip is a nightmare to interface with. It's so inconsistent across platforms. Sorry about that.
I might try and go through the codelabs on manjaro. I think I have a vm for it somewhere. A little chocca a the moment though.
alaroldai
@alaroldai:matrix.org
[m]
Yeah, no worries! I'll keep hacking around a bit and come back here if I come up with anything useful.
Thanks for your help!
Jonathan Poole
@tatskaari:matrix.org
[m]
No worries, the long term plan is to fork pip and bend it to my iron will but I've got v16 to get out the door first.
3 replies
Alex Eales
@AlexEales
@tatskaari:matrix.org ^ sorry wouldn't let me send in thread
alaroldai
@alaroldai:matrix.org
[m]
The logs are from Please, but the direct install of numpy with pip produces an error with the same root cause when importing numpy from a python shell.
(Symbol cblas_sgemm not found)
Possibly numpy expects libatlas to be installed / linked?
Jonathan Poole
@Tatskaari
Sounds probable. Like i said pip is a real pain.
1 reply
It doesn't support cross compiling so you have to have CI agents for each arch you want to support (unless you home brew your installs)
skaar
@uberidle:matrix.org
[m]
Jonathan Poole: It might be worth getting our local python_wheel hack cleaned up - because you don't have to host the wheel externally - you can just build the wheel locally and feed the OUT directly to python_wheel
2 replies
e.g
PeterCz
@PeterCz
I have please in a docker image on windows. It's able to build but the next step is failing. Docker logs end at [4/5] and the next command seems to be 0:plz run: plz-out/bin/module/aws/file.sh base dev and the error message is: CRITICAL: Error running command plz-out/<path>file.sh: no such file or directory. What can be wrong here?
5 replies
skaar
@uberidle:matrix.org
[m]
@Tatskaari: at least with WSL1 you would bind mount /mnt/c to /c and put your $HOME in the /c/Users/<user> - and then the host access / file system stuff work mostly work properly between something like Desktop Docker and your WSL sessions.
Although, the WSL fs-layer is trash, so you are pretty much better off running Please with Linux inside a VM.
And if you need an IDE, VS Code's ssh-remote works quite well
Jonathan Poole
@Tatskaari
Yeah i tried please under /mnt and it's just so slow. Going through 2 layers of syscalls really ruins performance.
Native windows support it rising up my priority list though. A lot of the C++ guys I've been speaking to say Bazel's msvc support is janky and their dep on Java is a dealbreaker
If we solve those for them, they'd be more likely to take Please over CMake
Is native windows support something that would benefit anybody here that's already using Please?
Florin STAN
@namtzigla
@Tatskaari could you take a quick look over #1627 ?
I don't remember having this in the past.
thanks
Jonathan Poole
@Tatskaari
Could you paste me your go_get() rules if you have them to hand? Will save me some time.
that's the last thing before I start writing the doc :)
Jonathan Poole
@Tatskaari
Oh is this distroless images? :D
Florin STAN
@namtzigla
yes
mostly dockerless docker
b
;)
Jonathan Poole
@Tatskaari
Hang on I can send you a PR to migrate to go_modules() if you like
Florin STAN
@namtzigla
no problem
thanks
Jonathan Poole
@Tatskaari
Will try and figure out why go_get() is broke first though
Florin STAN
@namtzigla
Thanks!