Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Nov 2022 19:22:08 -1000
From:      "parv/FreeBSD" <parv.0zero9+freebsd@gmail.com>
To:        LuMiWa <lumiwa@dismail.de>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: inkscape 1.2.1
Message-ID:  <CABObuOr=r25Ap9qabPx-rfxp=xypz6VLBVcf28S63srnHEWAjA@mail.gmail.com>
In-Reply-To: <20221112140934.157b9d6e@dismail.de>
References:  <20221112140934.157b9d6e@dismail.de>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000a51c9105ed53507e
Content-Type: text/plain; charset="UTF-8"

On Sat, Nov 12, 2022 at 9:10 AM LuMiWa wrote:

> I am using Inkscape 1.2.1 on FreeBSD 13.1 - Release - p3 and it works.
> The problem which I have is when going File - Import Web Image... than
> I got:
>
> Traceback (most recent call last):
>   File
> "/usr/local/share/inkscape/extensions/other/clipart/import_web_image.py",
> line 47, in <module>
>     from import_sources import RemoteSource, RemoteFile, RemotePage
>   File
> "/usr/local/share/inkscape/extensions/other/clipart/import_sources.py",
> line 26, in <module>
>     import requests
> ModuleNotFoundError: No module named 'requests'
>
> And I am using packages (pkg install)
>

The error is due to "inkspace" *ass*uming that "requests"
module would already be available. Either it (original software)
needs to intercept the error & ask user to install the
missing package. Or, the FreeBSD port needs to unconditionally
have "requests" as the run time dependency.

LuMiWa,

Try again after installing the "py39-requests" package ...

  pkg install py39-requests

... if you are running Python 3.9 ("python --version" would
tell). Else, adjust "39" in "py39" for your version of
python.


- parv

--000000000000a51c9105ed53507e
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-family:monospace">On Sat, Nov 12, 2022 at 9:10 AM LuMiWa wrote:</div></di=
v><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1=
ex">I am using Inkscape 1.2.1 on FreeBSD 13.1 - Release - p3 and it works.<=
br>
The problem which I have is when going File - Import Web Image... than<br>
I got:<br>
<br>
Traceback (most recent call last):<br>
=C2=A0 File &quot;/usr/local/share/inkscape/extensions/other/clipart/import=
_web_image.py&quot;, line 47, in &lt;module&gt;<br>
=C2=A0 =C2=A0 from import_sources import RemoteSource, RemoteFile, RemotePa=
ge<br>
=C2=A0 File &quot;/usr/local/share/inkscape/extensions/other/clipart/import=
_sources.py&quot;, line 26, in &lt;module&gt;<br>
=C2=A0 =C2=A0 import requests<br>
ModuleNotFoundError: No module named &#39;requests&#39;<br>
<br>
And I am using packages (pkg install)<br></blockquote><div><br></div><div s=
tyle=3D"font-family:monospace" class=3D"gmail_default">The error is due to =
&quot;inkspace&quot; *ass*uming that &quot;requests&quot;</div><div style=
=3D"font-family:monospace" class=3D"gmail_default">module would already be =
available. Either it (original software)</div><div style=3D"font-family:mon=
ospace" class=3D"gmail_default">needs to intercept the error &amp; ask user=
 to install the</div><div style=3D"font-family:monospace" class=3D"gmail_de=
fault">missing package. Or, the FreeBSD port needs to unconditionally</div>=
<div style=3D"font-family:monospace" class=3D"gmail_default">have &quot;req=
uests&quot; as the run time dependency.</div><div style=3D"font-family:mono=
space" class=3D"gmail_default"><br></div><div style=3D"font-family:monospac=
e" class=3D"gmail_default">LuMiWa,</div><div style=3D"font-family:monospace=
" class=3D"gmail_default"><br></div><div style=3D"font-family:monospace" cl=
ass=3D"gmail_default">Try again after installing the &quot;py39-requests&qu=
ot; package ...</div><div style=3D"font-family:monospace" class=3D"gmail_de=
fault"><br></div><div style=3D"font-family:monospace" class=3D"gmail_defaul=
t">=C2=A0 pkg install=20
py39-requests</div><div style=3D"font-family:monospace" class=3D"gmail_defa=
ult"><br></div><div style=3D"font-family:monospace" class=3D"gmail_default"=
>... if you are running Python 3.9 (&quot;python --version&quot; would</div=
><div style=3D"font-family:monospace" class=3D"gmail_default">tell). Else, =
adjust &quot;39&quot; in &quot;py39&quot; for your version of</div><div sty=
le=3D"font-family:monospace" class=3D"gmail_default">python.</div><div styl=
e=3D"font-family:monospace" class=3D"gmail_default"><br></div><div style=3D=
"font-family:monospace" class=3D"gmail_default"><br></div><div style=3D"fon=
t-family:monospace" class=3D"gmail_default">- parv</div><div style=3D"font-=
family:monospace" class=3D"gmail_default"><br></div></div></div>

--000000000000a51c9105ed53507e--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABObuOr=r25Ap9qabPx-rfxp=xypz6VLBVcf28S63srnHEWAjA>