You are not logged in.

#1 2011-06-05 17:36:47

dedanna1029
Member
From: Cheyenne, WY, US
Registered: 2010-10-01
Posts: 98

lexical error: invalid char in json text.

A debate on where to post this, made it win out here. If it's in the wrong area, please let me know.

Ever since the pacman update to 3.5 (wherein powerpill, etc. were removed), I've been getting an error when attempting to run yaourt:

$ yaourt lib32-glibc
lexical error: invalid char in json text.
                                       <html> <head> <title>Tor is not
                     (right here) ------^

yaourt does nothing further from there. Yes, Tor is installed, but it does this even when Tor/Vidalia are not running.

Any clue as to what this might be? I've googled and searched here, but nothing matches this exact situation, and those that are similar don't appear to have resolutions.

This is on both Gnome3 (fallback) and KDE, completely updated Arch system (other than what could be found in yaourt).

There have been other errors here and there too, but this one is the one that comes up the most. pacman itself doesn't do this, IIRC.

Thanks.

Edit: I do know that lib32-glibc doesn't exist any more. This is merely an example. It does it with any <packagename>.

Last edited by dedanna1029 (2011-06-05 17:40:17)

Offline

#2 2011-06-05 17:47:26

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: lexical error: invalid char in json text.

Have you tried reinstalling yaourt?

Offline

#3 2011-06-05 18:53:41

dedanna1029
Member
From: Cheyenne, WY, US
Registered: 2010-10-01
Posts: 98

Re: lexical error: invalid char in json text.

Think I'm going to go do that, and on the advice of someone at our forum, check out and see if there's a line in pacman.conf that might be doing this.

I had seen a tip to rebuild package-query, but that would mean re-installing the whole shootin' sh'bang of pacman, etc., which right now, well, let's just say I'm lazy. tongue

Offline

#4 2011-06-05 19:25:01

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: lexical error: invalid char in json text.

That error is being thrown by yajl, which package-query links to. Rebuilding package-query is likely your solution if it happens for all packages.

Offline

#5 2011-06-05 21:19:17

dedanna1029
Member
From: Cheyenne, WY, US
Registered: 2010-10-01
Posts: 98

Re: lexical error: invalid char in json text.

Okay, this is putting me into major error, major "sux" city. Tried reinstalling yaourt using the top manual method here, and that gave an error:

$ yaourt lib32-glibc
/usr/lib/yaourt/basicfunctions.sh: line 12: package-query: command not found

... when it had just been rebuilt and reinstalled using that method (I had to rename the yaourt and package-query folders in /home first to get a fresh start with it).

So, I renamed the folders in /home again, and used the second method of installing, by re-adding the repo and pacman -Sy. All righty then...

$ yaourt glibc
1 core/glibc 2.13-5 [7.15 M] (base) [installed]
    GNU C Library
2 extra/kdesdk-kmtrace 4.6.3-2 [0.06 M] (kde kdesdk) [installed]
    A KDE tool to assist with malloc debugging using glibc´s "mtrace" 
    functionality
3 extra/nss-mdns 0.10-3 [0.01 M]
    glibc plugin providing host name resolution via mDNS
---------->lexical error: invalid char in json text.
                                       <html> <head> <title>Tor is not
                     (right here) ------^<-----------
==> Enter n° of packages to be installed (ex: 1 2 3 or 1-3)
==> -------------------------------------------------------

sad

*frustrated

Would someone please post their output of "yaourt glibc" for comparison?

Thanks.

Last edited by dedanna1029 (2011-06-05 21:22:40)

Offline

#6 2011-06-05 22:17:04

dedanna1029
Member
From: Cheyenne, WY, US
Registered: 2010-10-01
Posts: 98

Re: lexical error: invalid char in json text.

Thanks to someone who obviously knows how to search this forum better than I can, I'm going to try downgrading yajl:  https://bbs.archlinux.org/viewtopic.php?id=117606

Except for one slight problem there...

# pacman -U yajl-1.0.11-3-i686.pkg.tar.xz
warning: downgrading package yajl (2.0.2-1 => 1.0.11-3)
resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: package-query: requires yajl>=2.0

Last edited by dedanna1029 (2011-06-05 22:25:32)

Offline

#7 2011-07-02 21:45:05

dedanna1029
Member
From: Cheyenne, WY, US
Registered: 2010-10-01
Posts: 98

Re: lexical error: invalid char in json text.

This error, even after json updates (and IIRC yajl's been updated too since this started), etc., is still preventing me from being able to use yaourt. It's a big vicious circle. The alternatives to use are all in yaourt (such as clyde, etc.), and I can't use yaourt to get them. There are other packages I need from AUR as well; nothing is working. If I stop tor, then I get a curl error.

yaourt nautilus-dropbox
curl error: Couldn't connect to server

I think this must have to do with tor.

I've rebuilt package-query, the works, everything suggested. It r still broke here.

Thanks.

Last edited by dedanna1029 (2011-07-02 21:48:46)

Offline

#8 2011-07-02 22:22:23

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: lexical error: invalid char in json text.

You get a curl error when you stop tor because you're still trying to hit the proxy defined by HTTP_PROXY or whatnot.

Last edited by falconindy (2011-07-02 22:22:45)

Offline

#9 2011-07-03 02:13:28

dedanna1029
Member
From: Cheyenne, WY, US
Registered: 2010-10-01
Posts: 98

Re: lexical error: invalid char in json text.

falconindy wrote:

You get a curl error when you stop tor because you're still trying to hit the proxy defined by HTTP_PROXY or whatnot.

That's kind of what I'm figuring, but when tor's running, I get the error posted initially:

lexical error: invalid char in json text.
                                       <html> <head> <title>Tor is not
                     (right here) ------^

yaourt does work with sudo correctly, but we're not supposed to let packages build as root, so...

Offline

#10 2011-07-03 17:17:30

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: lexical error: invalid char in json text.

It works with sudo because root doesn't have the http_proxy environment var set.... package-query's curl implementation is lacking something to work properly with proxies.

Offline

#11 2011-07-03 21:09:29

dedanna1029
Member
From: Cheyenne, WY, US
Registered: 2010-10-01
Posts: 98

Re: lexical error: invalid char in json text.

Right, I get that.

What I need is a solution to run it properly as regular user. When tor is running, I get one error. When it's not, I get the other. The only way it does work is with sudo, and that we aren't supposed to do for yaourt. I tried it; and got the warning against building packages as root.

Last edited by dedanna1029 (2011-07-03 21:10:26)

Offline

Board footer

Powered by FluxBB