Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Struggling to get up and running #1

Closed
benedfit opened this issue Jun 16, 2015 · 16 comments
Closed

Struggling to get up and running #1

benedfit opened this issue Jun 16, 2015 · 16 comments

Comments

@benedfit
Copy link

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

@B2F
Copy link
Owner

B2F commented Jun 16, 2015

Hello benedfit, thanks trying succss out.

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

whereis succss

@benedfit
Copy link
Author

Hi, I'm using OSX 10.10.3

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

@B2F
Copy link
Owner

B2F commented Jun 16, 2015

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) ?

@benedfit
Copy link
Author

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

@benedfit benedfit reopened this Jun 16, 2015
@benedfit
Copy link
Author

@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

@B2F
Copy link
Owner

B2F commented Jun 16, 2015

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

@benedfit
Copy link
Author

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

@benedfit
Copy link
Author

@B2F
Copy link
Owner

B2F commented Jun 17, 2015

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.

@SLyHuy
Copy link

SLyHuy commented Aug 20, 2015

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.

@SLyHuy
Copy link

SLyHuy commented Aug 20, 2015

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

@B2F
Copy link
Owner

B2F commented Oct 13, 2015

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.

@B2F B2F closed this as completed Oct 13, 2015
@Cride5
Copy link

Cride5 commented Oct 22, 2015

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

@B2F
Copy link
Owner

B2F commented Oct 22, 2015

Please run:

npm install -g phantomjs
npm install -g casperjs

@edouard-lopez
Copy link

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

./node_modules/.bin/succss

@B2F
Copy link
Owner

B2F commented Dec 5, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants