If you run into trouble with PHCTool you can ask for help here.
Post Reply
[phpBB Debug] PHP Warning: in file
[ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line
1275:
count(): Parameter must be an array or an object that implements Countable
-
lockheed
- Posts: 6
- Joined: Wed 11. May 2011, 10:48
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Post
by lockheed » Wed 11. May 2011, 10:50
I installed it from Arch's AUR and when I try to run it, I get
Code: Select all
$ phctool
File "./phctool.py", line 14
print "pyGTK missed"
^
SyntaxError: invalid syntax
Needless to say, I have pyGTK installed.
-
Docet
- Posts: 44
- Joined: Wed 23. Feb 2011, 18:30
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Post
by Docet » Wed 11. May 2011, 12:50
looks more like a syntax error (as comes out from the last line). Try to download and compile sources from forum, considering this help.
http://linuxsolver.blogspot.com/2011/02 ... buntu.html
Cheers
-
lockheed
- Posts: 6
- Joined: Wed 11. May 2011, 10:48
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Post
by lockheed » Mon 16. May 2011, 00:15
So I installed newest stable version from these forums and:
Code: Select all
$ sh phctool.sh
File "./phctool.py", line 14
print "pyGTK missed"
^
SyntaxError: invalid syntax
Apparently, it has something to python version installed in Arch, This distro goes for everything newest so unless you make your code up-to-date, Arch users won't be able to use it.
-
Docet
- Posts: 44
- Joined: Wed 23. Feb 2011, 18:30
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Post
by Docet » Mon 16. May 2011, 16:12
Can you check your python version? I get the same issue if I use python >= 3... obviously it throws many other errors due to python3 diffs. You should run it with python2.... ot try to port it to python3 hehe
Cheers
-
lockheed
- Posts: 6
- Joined: Wed 11. May 2011, 10:48
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Post
by lockheed » Mon 16. May 2011, 16:14
Code: Select all
Python 3.2 (r32:88445, Apr 15 2011, 11:09:05)
[GCC 4.5.2 20110127 (prerelease)] on linux2
I'm afraid I'm stuck with it cause it comes built in with Arch.
-
Docet
- Posts: 44
- Joined: Wed 23. Feb 2011, 18:30
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Post
by Docet » Mon 16. May 2011, 16:40
you should have both versions of python, take a look...
anyway you might edit manually phctool.sh to launch "python2 phctool.py"
Cheers
-
lockheed
- Posts: 6
- Joined: Wed 11. May 2011, 10:48
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Post
by lockheed » Mon 16. May 2011, 16:45
Where would I put 'python2' in this file? I couldn't find 'python' to replace in there.
Post Reply
[phpBB Debug] PHP Warning: in file
[ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line
1275:
count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file
[ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line
1275:
count(): Parameter must be an array or an object that implements Countable