B2F / Succss

A CSS regression testing tool.

Home Page:http://succss.ifzenelse.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Struggling to get up and running

benedfit opened this issue · comments

I've just installed succss via npm -g succss and get the following errors:

$ succss

yields:

raceback (most recent call last):
  File "/usr/local/bin/succss", line 88, in <module>
    call(allArgs)
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
$ succss add test.js

yields:

Traceback (most recent call last):
  File "/usr/local/bin/succss", line 88, in <module>
    call(allArgs)
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

I was however able to clone this repository and run the test successfully

Hello benedfit, thanks trying succss out.

What OS version are you using ?
What is the output of the following command:

whereis succss

Hi, I'm using OSX 10.10.3

whereis succss doesn't return anything, but which succss returns /usr/local/bin/succss

Ok now can you get a symlink path with:

ls -l /usr/local/bin/succss

I doubt the problem is with python, it is working fine with 2.7.8 and you get it running by cloning the repository. I can hardly see what is causing the problem.

EDIT: isn't the install keyword mandatory with npm (using the -g option) ?

Running that seems to have solved the problem. I did originally have Python 2.7.7, and didn't already have PhantomJS installed when I first installed. Having uninstalled and reinstalled the problem has gone away so I'll chalk it up to one of these two factors.

Thanks for the help

@B2F sorry, but I'm still having some issues

Running succss add succss-config.js gives me the following information:

Test file: /usr/local/lib/node_modules/succss/bin/../succss-bridge.js
CasperError: CasperJS couldn't find module succss.js
Wrong succss arguments. Type succss help for infos.
See succss.ifzenelse.net for more infos.

EDITED

Do you have this problem with the binary from the cloned repository ?
If not, does the /usr/local/lib/node_modules/succss/succss.js file exists ?
If it does, try editing the /usr/local/lib/node_modules/succss/succss-bridge.js with:

var succss = require('./succss').Succss.call(Succss);

At line 114

That didn't fix anything unfortunately. I don't have this issue when working with the cloned repo

It could be, but the issue you mention is for phantomjs v1.9.1, what version are you using (I have 1.9.8) ?
Also, what happens when you run the git cloned succss binary from outside its directory (your /home/user dir for example) ? It should throw the error, else I doubt you have the /usr/local/lib/node_modules/succss/succss.js file installed.

Hi, I run succss on Ubuntu fine. But in Mac, I have same problem:

Traceback (most recent call last):
  File "/usr/local/bin/succss", line 88, in <module>
    call(allArgs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Can you help me fix it, please.

Thank you,
Huy.

Luckily, I just install BackstopJS + PhantomCSS and then SUCCSS will run fine.
Thanks.

I figured out you needed casperjs and phantomjs installed separately with npm install -g, the issue of the op appears when both of the previous are missing system wide. That also explains why installing BackstopJS and/or PhantomCSS fixes the issue.
I should update the documentation accordingly.

This didn't fix it for me:

$ sudo npm install -g backstopjs phantomcss
$ sudo npm install -g succss 
$ succss

Results in:

Traceback (most recent call last):
  File "/usr/bin/succss", line 25, in <module>
    call(requiredArgs)
  File "/usr/lib/python2.7/subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

I'm running
Ubuntu 14.04.3 LTS
Linux 3.13.0-65-generic x86_64
node v4.2.1
npm 2.14.7

Please run:

npm install -g phantomjs
npm install -g casperjs

Why the need to install globally? It would be nice to use local packages:

./node_modules/.bin/succss

It is by no way meant to be a per project dependency, it would be unnecessarily redundant, the bin is not tied to any projects other than itself.
Only configuration files are specific to projects.
The only valid reason for having a local package would be to choose what version to use depending on the project, but I don't plan to make a new major version of succss so there is no point.