sapling icon indicating copy to clipboard operation
sapling copied to clipboard

sl silently fails on macosx if python3.11 is used

Open mhlakhani opened this issue 10 months ago • 6 comments

I installed sapling from the website (on an apple silicon mac) following the instructions on the website: https://sapling-scm.com/docs/introduction/installation (I tried both brew install sapling and the prebuilt bottles instructions)

Expected behavior: Commands work fine Actual behavior: Running any sl command (even --help) just silently exits with a nonzero exit code, and there's no way to debug what's wrong.

I suspect https://github.com/facebook/sapling/issues/714 might share a root cause, but that focuses on installation from source, while my complaint is on the behavior at runtime following the official instructions on the site

mhlakhani avatar Sep 02 '23 21:09 mhlakhani

Sorry for the late response. If you were able to reproduce, could you share the output of:

CHGDISABLE=1 CHGDEBUG=1 SAPLING_LOG=debug sl version
echo $?

?

quark-zju avatar Sep 15 '23 03:09 quark-zju

If I see it again I'll give that a try, but I'm not sure what made it happen in the first place.

ahupp avatar Sep 16 '23 17:09 ahupp

@quark-zju : It went away for me after a reboot.

It's been a bit so my memory is fuzzy but I do remember working on and doing a brew install pytorch around that time which might have installed a different version of python which could have conflicted. Uninstalling that, and reinstalling sapling/the right python version at that time didn't work but a reboot did

mhlakhani avatar Sep 17 '23 05:09 mhlakhani

@quark-zju : It went away for me after a reboot.

It's been a bit so my memory is fuzzy but I do remember working on and doing a brew install pytorch around that time which might have installed a different version of python which could have conflicted. Uninstalling that, and reinstalling sapling/the right python version at that time didn't work but a reboot did

Possibly the same issue as https://github.com/facebook/sapling/issues/659 in that case

alex-statsig avatar Sep 18 '23 16:09 alex-statsig

@quark-zju

❯ CHGDISABLE=1 CHGDEBUG=1 SAPLING_LOG=debug sl version
using chg: false, because CHGDISABLE=1
Sapling 0.2.20230523-092610+f12b7eee
❯ echo $?
0
❯ python3 --version
Python 3.11.5

uhthomas avatar Sep 19 '23 14:09 uhthomas

A system reboot fixed it, as observed by others.

uhthomas avatar Sep 19 '23 14:09 uhthomas