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 To: "Claudio Fabri (clafi AT gmx DOT com) [via geda-user AT delorie DOT com]" Subject: Re: [geda-user] PCB can no longer imports schematic In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-2070337137-1623604767=:1159" 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 Precedence: bulk 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--