Re: OfflineIMAP and Python

2015-04-29 Thread Ricardo Wurmus
Paul van der Walt writes: > On 2015-04-23 at 21:04, quoth Ludovic Courtès: >> But I suspect that gives you /usr/bin/python instead of >> /home/paul/.guix-profile/bin/python no? Changing the shebang to >> explicitly use the latter would be safer. > > Ah i hadn't understood that. Okay, i've put th

Re: OfflineIMAP and Python

2015-04-29 Thread Ludovic Courtès
Paul van der Walt skribis: > On 2015-04-23 at 21:04, quoth Ludovic Courtès: >> But I suspect that gives you /usr/bin/python instead of >> /home/paul/.guix-profile/bin/python no? Changing the shebang to >> explicitly use the latter would be safer. > > Ah i hadn't understood that. Okay, i've put t

Re: OfflineIMAP and Python

2015-04-23 Thread Paul van der Walt
On 2015-04-23 at 21:04, quoth Ludovic Courtès: > But I suspect that gives you /usr/bin/python instead of > /home/paul/.guix-profile/bin/python no? Changing the shebang to > explicitly use the latter would be safer. Ah i hadn't understood that. Okay, i've put the literal Guix python path there, b

Re: OfflineIMAP and Python

2015-04-23 Thread Ludovic Courtès
Paul van der Walt skribis: > On 2015-04-23 at 12:27, quoth Paul van der Walt: >> ..so i think you're right Ludo. What can i do about that? > > Running > > $ LD_LIBRARY_PATH=.guix-profile/lib/ offlineimap Possibly this is doing the wrong thing: still running /usr/bin/python, but running it agains

Re: OfflineIMAP and Python

2015-04-23 Thread Ludovic Courtès
Paul van der Walt skribis: > On 2015-04-21 at 17:37, quoth Ludovic Courtès: >> The ‘python’ executable is necessarily the right one, because it’s >> written in the shebang, and this operator.so is the right one too. >> >> It could be that the wrong libpython was loaded, though. > > Okay, i had so

Re: OfflineIMAP and Python

2015-04-23 Thread Paul van der Walt
On 2015-04-23 at 12:27, quoth Paul van der Walt: > ..so i think you're right Ludo. What can i do about that? Running $ LD_LIBRARY_PATH=.guix-profile/lib/ offlineimap seems to get me further, although now the error has changed to [multiple repetitions, once per folder] ERROR: ERROR in syncfolde

Re: OfflineIMAP and Python

2015-04-23 Thread Paul van der Walt
On 2015-04-21 at 17:37, quoth Ludovic Courtès: > The ‘python’ executable is necessarily the right one, because it’s > written in the shebang, and this operator.so is the right one too. > > It could be that the wrong libpython was loaded, though. Okay, i had some more time to look into this. First,

Re: OfflineIMAP and Python

2015-04-21 Thread Ricardo Wurmus
Ludovic Courtès writes: >>> ImportError: >>> /gnu/store/zla3af321lkf2n80330fw81mxgbz1gj3-python-2.7.6/lib/python2.7/lib-dynload/operator.so: >>> undefined symbol: _PyUnicodeUCS2_AsDefaultEncodedString >> >> This usually happens when you use the wrong python. > > The ‘python’ executable is neces

Re: OfflineIMAP and Python

2015-04-21 Thread Ludovic Courtès
Ricardo Wurmus skribis: > Paul van der Walt writes: > >> ImportError: >> /gnu/store/zla3af321lkf2n80330fw81mxgbz1gj3-python-2.7.6/lib/python2.7/lib-dynload/operator.so: >> undefined symbol: _PyUnicodeUCS2_AsDefaultEncodedString > > This usually happens when you use the wrong python. The ‘pytho

Re: OfflineIMAP and Python

2015-04-21 Thread Paul van der Walt
On 2015-04-21 at 13:03, quoth Ricardo Wurmus: > OfflineIMAP works fine for me when I make sure that python-2.7.6 is in > fact installed and the default "python" executable in my PATH. Weird, it seemed to help, but then gave another error (which i cannot reproduce now, it was something about the i

Re: OfflineIMAP and Python

2015-04-21 Thread Ricardo Wurmus
Paul van der Walt writes: > ImportError: > /gnu/store/zla3af321lkf2n80330fw81mxgbz1gj3-python-2.7.6/lib/python2.7/lib-dynload/operator.so: > undefined symbol: _PyUnicodeUCS2_AsDefaultEncodedString This usually happens when you use the wrong python. What does `which python` tell you? I get th

OfflineIMAP and Python

2015-04-21 Thread Paul van der Walt
Hello Guix, I wanted to try using offlineimap from Guix (i already used to use it From my regular package manager), but i'm running into what is probably a PATH problem. 8<-- $ ./pre-inst-env guix package -i offlineimap The following package will be installed: