-
Notifications
You must be signed in to change notification settings - Fork 921
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
Invalid CSS when running tests #1931
Comments
So install it then. Note that it's only a warning so it doesn't actually matter if it's not installed, it just means the images won't get optimised. |
But when I Running the test"bundle exec rake test:db",it occurred "rake aborted. error:ENOENT:No such file or directory - phantoms".What's the matter? |
I have no idea, but it's nothing to do with that warning. |
I installed phantoms and ran the test"bundle exec rake test:db"again, the error above did't occur anymore, but there are some other errors, like this: ActionView::Template::Error: Invalid CSS after "../common.scss": expected "{", was "" Could you tell me how to solve this problem? |
You installed "phantoms" despite neither of us knowing what is is? or did you mean "phantomjs"? That should have been installed when you installed the gem bundle so it sounds like something is seriously wrong with your installation, or you haven't been following the instructions. |
I'm sorry I made a spelling mistake, and what I mean is "phantomjs" actually. I'm so sorry. And I follow the instructions on https://github.com/openstreetmap/openstreetmap-website/blob/master/INSTALL.md strictly. But there are many problems during the installation. When I ran the test"bundle exec rake test:db", there are more than 200 errors occurred,like this: ActionView::Template::Error: Invalid CSS after "../common.scss": expected "{", was "" I really don't know how to solve it ? And I think you may be able to solve these problems. I really need your help. Thank you very much. |
I have no idea how to solve it because I have no idea what's causing it. You'll need to debug it. |
Reopening as per #1692 - this is an installation support issue (running tests) which @zerebubuth and I are happy to help with. |
@carrieandal could you please post the entire output from "bundle exec rake test:db" into a new gist at https://gist.github.com/ and add the link in a comment here. Could you also do the same for "git status" so that we can check that none of your files have been changed by mistake. |
It doesn't seem to affect subsequent operations.Because I don't need something with graph. Thanks for your help.@gravitystorm@tomhughes |
Closing due to no response from the reporter. If you can provide the debugging output that I mention above, then we can reopen this issue and help you solve the problem! |
Hi all. I have same problem when run Thanks |
@gravitystorm @tomhughes please take a look at this. I also am faccing the |
Nobody is maintaining the docker configuration so it's very unlikely to work. |
@tomhughes I am working on the docker support and faced this issue while running -- |
Well why it's happening is easy - you presumably don't have phantomjs installed. |
I don't think that's the case because I modified |
Right but it's the phantomjs executable that's missing - the gem is just a bit of ruby that tries to figure out what platform it is running on and then use curl to download a suitable executable. In can well imagine that docker is confusing it's attempt to identify the platform, or perhaps you don't have curl installed, or the network access isn't working - try looking for error messages as it tries to download and install phantomjs. It's probably better to install phantomjs yourself if you can - it will probably be more reliable. |
@tomhughes thanks for explaining that bit. Just to clearly by "install phantomjs yourself" do you mean install it via |
Not really, no. If this is Ubuntu that I'd just |
In more general terms if it isn't packaged then https://phantomjs.org/download.html is the place to start. |
Though both Debian/Ubuntu has We can use this method mention here to install Installation vai |
Phantomjs is very old. Perhaps a good time to switch to headless chrome. |
There are no good solutions sadly - cross-platform instructions for installing chrome are also non-trivial :-( Or rather for installing chromium because we probably shouldn't insist on the googlified version. |
When I Create the databases using"bundle exec rake db:create",it reports some errors like
“pngcrush not found,please provide proper binary or disable this worker()—no--pngcrush argument or‘:pngcrush →false’ through options ”.
“advpng not found,please provide proper binary or disable this worker()—no--advpng argument or‘:advpng →false’ through options ”.
It seems that these errors are related to image.Does the file "openstreetmap-website" on https://github.com/openstreetmap/openstreetmap-website.git lack some useful things?How can I fit it?
The text was updated successfully, but these errors were encountered: