delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2021/06/13/13:20:47

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Sun, 13 Jun 2021 19:19:27 +0200 (CEST)
From: Roland Lutz <rlutz AT hedmen DOT org>
To: "Claudio Fabri (clafi AT gmx DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
Subject: Re: [geda-user] PCB can no longer imports schematic
In-Reply-To: <trinity-0a59e913-75aa-4e05-911e-2ae7aa43afcf-1623600634718@3c-app-mailcom-bs16>
Message-ID: <alpine.DEB.2.21.2106131901090.1159@nimbus>
References: <trinity-f4e69ccb-b2bb-4ee0-85c3-f30957761225-1623237572882 AT 3c-app-mailcom-bs08> <alpine DOT DEB DOT 2 DOT 21 DOT 2106091750380 DOT 8283 AT nimbus> <trinity-173a0efa-ea79-4f07-b77a-b9c93a0d3d83-1623444822237 AT 3c-app-mailcom-bs16> <alpine DOT DEB DOT 2 DOT 21 DOT 2106131312150 DOT 18206 AT nimbus>
<trinity-0a59e913-75aa-4e05-911e-2ae7aa43afcf-1623600634718 AT 3c-app-mailcom-bs16>
User-Agent: Alpine 2.21 (DEB 202 2017-01-01)
MIME-Version: 1.0
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--8323329-2070337137-1623604767=:1159
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8BIT

On Sun, 13 Jun 2021, Claudio Fabri (clafi AT gmx DOT com) [via 
geda-user AT delorie DOT com] wrote:
> OMG! You're my saviour (at least so far ;-)
>
> I indeed have an accented character in the current directory name. I ran 
> gnetlist --list-backends from another directory and I now get a list of 
> backends.

Hmm.  I tried that, but that works fine on my machine.

Do you use a non-UTF8 locale?

> ERROR: Could not find backend `pcbfwd' in load path.
>
> […]
>
> ~# gnetlist --list-backends | grep -i pcb
>  [PG]  PCB
>  [PG]  gsch2pcb
>  [PG]  liquidpcb
>  [P ]  pcbfwd
>  [PG]  pcbpins
>
> This works: gnetlist -g PCB -o oscillator.net oscillator.sch
> This doesn't: gnetlist -g pcbfwd -o oscillator.net oscillator.sch
>
> I've also inspected the list of files for package pcb (I have version 
> 4.2.2) and there's also a file named gnet-pcbfwd.scm in 
> /usr/share/gEDA/scheme/.

Ah, yes.  There are two variants for most backends: the legacy Guile one 
(used with the -g option) and the newer Python one (used with -p). 
Traditionally, the pcbfwd backend was supplied by PCB, so either PCB needs 
to be installed to the same prefix as gEDA/gaf (so gnetlist finds the 
gnet-pcbfwd.scm file), or the backend paths need to be adjusted correctly. 
gEDA/gaf comes with its own Python version of the pcbfwd backend, so using 
`-p pcbfwd' would work, but AFAIK, PCB doesn't allow changing the import 
command.

You can add the directory to which gnet-pcbfwd.scm was installed by PCB to 
the backend load path by adding the following line to your "gafrc" or 
"gnetlistrc" file:

   (scheme-directory "PCBPREFIX/share/gEDA/scheme/")

where PCBPREFIX needs to replaced with the directory PCB was installed to 
(like "/usr/local").  Now, "gnetlist --list-backends" should yield

   [PG]  pcbfwd

with a G indicating that the Guile version of the backend was found.

Roland

--8323329-2070337137-1623604767=:1159--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019