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

Casperjs binary cannot be found in PATH #14

Open
pwalsh opened this issue Aug 15, 2013 · 8 comments
Open

Casperjs binary cannot be found in PATH #14

pwalsh opened this issue Aug 15, 2013 · 8 comments

Comments

@pwalsh
Copy link

pwalsh commented Aug 15, 2013

It is on PATH, I can use casperjs via command line.

I have installed casperjs with brew on Mac OS X

Still, screamshot doesn't find casperjs.

"which casperjs" gives:

/usr/local/bin/casperjs

"casperjs" gives:

CasperJS version 1.0.2 at /usr/local/Cellar/casperjs/1.0.2/libexec, using PhantomJS version 1.9.1

Usage: casperjs [options] script.[js|coffee] [script argument [script argument ...]]
casperjs [options] test [test path [test path ...]]
casperjs [options] selftest

Options:

--help Prints this help
--version Prints out CasperJS version

Read the docs http://casperjs.org/

My .bash_profile has:

export PATH=/usr/local/bin:$PATH

@leplatrem
Copy link
Collaborator

Strange. That's exactly the way to go... Can you echo your PATH env variable (print os.getenv("PATH")) with the same python as Django ?

I guess we should add a setting to specify the full path to casperjs binary, instead of scanning $PATH...

@pwalsh
Copy link
Author

pwalsh commented Aug 16, 2013

Sure, here is my PATH env variable from the virtualenv of the project:

/Users/paulwalsh/Sites/environments/open-budget/bin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/local/Cellar/gettext/0.18.1.1/bin:/usr/local/share/npm/bin:/usr/local/share/python:/Users/paulwalsh/Sites/gcutil-1.8.2:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/local/Cellar/gettext/0.18.1.1/bin:/usr/local/share/npm/bin:/usr/local/share/python:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin

@leplatrem
Copy link
Collaborator

I just added a CASPERJS_CMD setting.

I can't say it fixes this bug, but it should help you :)

@pwalsh
Copy link
Author

pwalsh commented Aug 18, 2013

Ok, I'll give it a try.

@jonnypolite
Copy link

I had this problem. I had to run a chmod 755 on casperjs before it could be found.

@cperezortiz
Copy link

did it work? @pwalsh

@pwalsh
Copy link
Author

pwalsh commented Dec 16, 2014

Blast from the past. I don't remember. I gave up on using django-screamshot.

@leplatrem
Copy link
Collaborator

@cperezortiz does casperjs work when you run it in command line ? (i.e. phantomjs is well installed etc. ?)

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

4 participants