~lioploum/offpunk-users

8 2

HTTP requires python-requests

Xavier Maillard <x@maillard.im>
Details
Message ID
<ea00cc47514e2d153a1be415e6d88813@maillard.im>
Sender timestamp
1741552699
DKIM signature
pass
Download raw message
~ ❱ offpunk
To render images inline, you need either chafa >= 1.10 or timg > 1.3.2
Welcome to Offpunk!
Type `help` to get the list of available command.
ON> t
HTTP requires python-requests
https://www.masteringemacs.org/article/understanding-minibuffer-completion already marked for syncing
ON> 

I am not really a Python expert but I am sure I have installed requests library.

-- 
Xavier Maillard (https://www.maillard.im)
Partagez votre super pouvoir! (https://dondesang.efs.sante.fr/)

GPG: 84C7 EF28 760F 49A7 D7C0  BFD7 141B AF53 291E 888D
Details
Message ID
<174155017379.7.3861518385262128207.629931443@ploum.eu>
In-Reply-To
<ea00cc47514e2d153a1be415e6d88813@maillard.im> (view parent)
Sender timestamp
1741550165
DKIM signature
pass
Download raw message
Le 25 mar 09 08:38, Xavier Maillard a écrit :
>~ ❱ offpunk
>To render images inline, you need either chafa >= 1.10 or timg > 1.3.2
>Welcome to Offpunk!
>Type `help` to get the list of available command.
>ON> t
>HTTP requires python-requests
>https://www.masteringemacs.org/article/understanding-minibuffer-completion already marked for syncing
>ON>

This definitely sounds like a bug. What is you operating system, your 
python version and offpunk version? Is it a new bug?

Can you confirm the same behaviour with offpunk latest release (2.6) and 
with offpunk latest commit on trunk?

The code that set "DO_HTTP" has been recently patched to remove some 
LibreSSL warning, I want to investigate this.


Could you open a python console ("python3") and type :

> import requests

and reply with the result?


-- 
Ploum - Lionel Dricot

Blog: https://www.ploum.net
Bikepunk: https://bikepunk.fr/
Xavier Maillard <x@maillard.im>
Details
Message ID
<86a786827781c47516983d72f813790e@maillard.im>
In-Reply-To
<174155017379.7.3861518385262128207.629931443@ploum.eu> (view parent)
Sender timestamp
1741674078
DKIM signature
pass
Download raw message
As per your request:

(x) ~ ❱ which python
/Users/x/.venv/bin/python
(x) ~ ❱ python
Python 3.12.7 (main, Nov  6 2024, 21:43:01) [Clang 13.1.6 (clang-1316.0.21.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests

No problem here.

Is my problem due to my installation ? (I am using uv to manage python libs here).

-- 
Xavier Maillard (https://www.maillard.im)
Partagez votre super pouvoir! (https://dondesang.efs.sante.fr/)

GPG: 84C7 EF28 760F 49A7 D7C0  BFD7 141B AF53 291E 888D
Xavier Maillard <x@maillard.im>
Details
Message ID
<58311957f850fc9ade83988aeb83a37b@maillard.im>
In-Reply-To
<174155017379.7.3861518385262128207.629931443@ploum.eu> (view parent)
Sender timestamp
1741674083
DKIM signature
pass
Download raw message
While at it:

(x) ~ 2m 4.4s ❱ offpunk
To render images inline, you need either chafa >= 1.10 or timg > 1.3.2
Welcome to Offpunk!
Type `help` to get the list of available command.
ON> quit
You can close your screen!
(x) ~ 11s ❱ python
Python 3.12.7 (main, Nov  6 2024, 21:43:01) [Clang 13.1.6 (clang-1316.0.21.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import timg


-- 
Xavier Maillard (https://www.maillard.im)
Partagez votre super pouvoir! (https://dondesang.efs.sante.fr/)

GPG: 84C7 EF28 760F 49A7 D7C0  BFD7 141B AF53 291E 888D
Xavier Maillard <x@maillard.im>
Details
Message ID
<a50ee510ad7512fb00b11a486c385fea@maillard.im>
In-Reply-To
<174155017379.7.3861518385262128207.629931443@ploum.eu> (view parent)
Sender timestamp
1741674084
DKIM signature
pass
Download raw message
> This definitely sounds like a bug. What is you operating system, your 
> python version and offpunk version? Is it a new bug?

I am running offpunk on a MacOS macboopro.
Python: 3.12.7
Offpunk: from git clone

Can't tell if it is new bug or not since I did not install offpunk
before onto this machine.
 
> Can you confirm the same behaviour with offpunk latest release (2.6) and 
> with offpunk latest commit on trunk?

I can confirm that pulling from git repo does not expose the requests
error but I still have problem wih timg/chafa.

-- 
Xavier Maillard (https://www.maillard.im)
Partagez votre super pouvoir! (https://dondesang.efs.sante.fr/)

GPG: 84C7 EF28 760F 49A7 D7C0  BFD7 141B AF53 291E 888D
Details
Message ID
<174167882031.8.8163223328304610595.631688307@ploum.eu>
In-Reply-To
<a50ee510ad7512fb00b11a486c385fea@maillard.im> (view parent)
Sender timestamp
1741678813
DKIM signature
pass
Download raw message
Le 25 mar 11 06:21, Xavier Maillard a écrit :
>
>> Can you confirm the same behaviour with offpunk latest release (2.6) 
>> and
>> with offpunk latest commit on trunk?
>
>I can confirm that pulling from git repo does not expose the requests
>error but I still have problem wih timg/chafa.

timg and chafa are not python libraries. Those are independent binaries 
thta should be in your PATH  (only one of those is required)


With what version do you have an error then?

-- 
Ploum - Lionel Dricot

Blog: https://www.ploum.net
Bikepunk: https://bikepunk.fr/
Xavier Maillard <x@maillard.im>
Details
Message ID
<57a2e2ccd927f0d6e6bd8c8483cb9df1@maillard.im>
In-Reply-To
<174167882031.8.8163223328304610595.631688307@ploum.eu> (view parent)
Sender timestamp
1741852723
DKIM signature
pass
Download raw message
Ok Ploum.

I brew installed chafa and now all my previous errors went away.

All is good excepti I am still struggling using offpunk :)


-- 
Xavier Maillard (https://www.maillard.im)
Partagez votre super pouvoir! (https://dondesang.efs.sante.fr/)

GPG: 84C7 EF28 760F 49A7 D7C0  BFD7 141B AF53 291E 888D
Details
Message ID
<174186092438.7.17211015873669129128.634598027@ploum.eu>
In-Reply-To
<57a2e2ccd927f0d6e6bd8c8483cb9df1@maillard.im> (view parent)
Sender timestamp
1741860915
DKIM signature
pass
Download raw message
Le 25 mar 13 07:58, Xavier Maillard a écrit :
>Ok Ploum.
>
>I brew installed chafa and now all my previous errors went away.
>
>All is good excepti I am still struggling using offpunk :)

Nice to hear. Struggling is learning, every tool has a learning curve. 

I believe that reading workflows in offpunk tutorial (or on offpunk.net) 
may really help to get an idea.

And don’t hesitate to use this list to ask questions. 

If you have any idea to improve the tutorial, please suggest them.

Welcome to offpunk!

-- 
Ploum - Lionel Dricot

Blog: https://www.ploum.net
Bikepunk: https://bikepunk.fr/
Xavier Maillard <x@maillard.im>
Details
Message ID
<aa3eec91ca24e386f6bad40ef1051921@maillard.im>
In-Reply-To
<174186092438.7.17211015873669129128.634598027@ploum.eu> (view parent)
Sender timestamp
1741931844
DKIM signature
pass
Download raw message
Thank you Ploum. As I am an old fart, I tend not to RTFM enough.

Reading through the tutorials helped a lot !

-- 
Xavier Maillard (https://www.maillard.im)
Partagez votre super pouvoir! (https://dondesang.efs.sante.fr/)

GPG: 84C7 EF28 760F 49A7 D7C0  BFD7 141B AF53 291E 888D
Reply to thread Export thread (mbox)