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

[-- Attachment #1 --]
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

[-- Attachment #2 --]
<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:monospace">On Sat, Nov 12, 2022 at 9:10 AM LuMiWa wrote:</div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">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>
  File &quot;/usr/local/share/inkscape/extensions/other/clipart/import_web_image.py&quot;, line 47, in &lt;module&gt;<br>
    from import_sources import RemoteSource, RemoteFile, RemotePage<br>
  File &quot;/usr/local/share/inkscape/extensions/other/clipart/import_sources.py&quot;, line 26, in &lt;module&gt;<br>
    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 style="font-family:monospace" class="gmail_default">The error is due to &quot;inkspace&quot; *ass*uming that &quot;requests&quot;</div><div style="font-family:monospace" class="gmail_default">module would already be available. Either it (original software)</div><div style="font-family:monospace" class="gmail_default">needs to intercept the error &amp; ask user to install the</div><div style="font-family:monospace" class="gmail_default">missing package. Or, the FreeBSD port needs to unconditionally</div><div style="font-family:monospace" class="gmail_default">have &quot;requests&quot; as the run time dependency.</div><div style="font-family:monospace" class="gmail_default"><br></div><div style="font-family:monospace" class="gmail_default">LuMiWa,</div><div style="font-family:monospace" class="gmail_default"><br></div><div style="font-family:monospace" class="gmail_default">Try again after installing the &quot;py39-requests&quot; package ...</div><div style="font-family:monospace" class="gmail_default"><br></div><div style="font-family:monospace" class="gmail_default">  pkg install 
py39-requests</div><div style="font-family:monospace" class="gmail_default"><br></div><div style="font-family:monospace" class="gmail_default">... if you are running Python 3.9 (&quot;python --version&quot; would</div><div style="font-family:monospace" class="gmail_default">tell). Else, adjust &quot;39&quot; in &quot;py39&quot; for your version of</div><div style="font-family:monospace" class="gmail_default">python.</div><div style="font-family:monospace" class="gmail_default"><br></div><div style="font-family:monospace" class="gmail_default"><br></div><div style="font-family:monospace" class="gmail_default">- parv</div><div style="font-family:monospace" class="gmail_default"><br></div></div></div>

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