Capybara-webkit QtGui requires version 29.0.0 or later - libpng

Hi I'm trying to do some basic messing around with capybara-webkit.
When I try to include the Capybara::DSL I get the following error
dyld: Library not loaded: /usr/local/lib/libpng15.15.dylib
Referenced from: /usr/local/lib/QtGui.framework/Versions/4/QtGui
Reason: Incompatible library version: QtGui requires version 29.0.0 or
later, but libpng15.15.dylib provides version 21.0.0
/Users/brian/.rvm/gems/ruby-1.9.3-p374#rails3211/gems/capybara-webkit-0.14.2/lib/capybara/webkit/connection.rb:95:in
`initialize': Can't assign requested address - connect(2)
(Errno::EADDRNOTAVAIL)
Can anyone help? Confused.
Thanks

looks like it was an old edition of imagemagick that was the problem. Downloading latest version solved it.

Related

How to get AWS frameworks working in Xcode 11?

I'm trying to get AWS frameworks working in Xcode(version 11.2.1) by importing them manually. The only way I get them working is by adding them in the Embed Frameworks under Build Phases. Everything is fine until I import AWSMobileClient in one of my swift files. Here things go wrong. If I try to build project on device simulator I get this error:
Could not find module 'AWSMobileClient' for target 'x86_64-apple-ios-simulator'; found: arm64, armv7-apple-ios, arm64-apple-ios, arm, armv7
Then I change to physical device and I get this error:
Module compiled with Swift 5.1 cannot be imported by the Swift 5.1.2 compiler: /Users/lukacefarin/Library/Mobile Documents/com~apple~CloudDocs/Projects/InoSupport/AWSMobileClient.framework/Modules/AWSMobileClient.swiftmodule/arm64-apple-ios.swiftmodule
I read about this error on stack overflow and it seems that I can't do much except waiting that AWS will fix that.
Is there any workarounds? All my project frameworks are imported manually so I don't want to use Cocoapods or Carthage.
EDITED on 9 February 2020:
I posted this issue on GitHub and get replay that they are working on the solution. Till then use dependency managers I guess.
I was facing the same problem as you can see, my local swift version is 5.1.3.
"Incompatible Swift version - framework was built with 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7) and the local version is 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)."
So, I had to look for aws-sdk-ios version compatible with my installed swift version 5.1.3.
Your installed swift version is 5.1.2.
During my tries, I found an aws-sdk-ios version compatible with your local version of swift 5.1.2.
Try to use aws-sdk-ios "2.13.0", my log says that this framework was built with 5.1.2.
*** Checking out aws-sdk-ios at "2.13.0"
*** Downloading aws-sdk-ios.framework binary at "AWS SDK for iOS 2.13.0"
*** Skipped installing aws-sdk-ios.framework binary due to the error:
"Incompatible Swift version - framework was built with 5.1.2 (swiftlang-1100.0.278 clang-1100.0.33.9) and the local version is 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)."

NCO, Library not loaded

I am trying to run the NCO executable ncks in the terminal window. I found that I needed to create a .bashrc file to initially get started in addition to installing NCO from MacPorts. Now when I run ncks I get this error.
dhcp-v219-194:~ mlaf$ ncks
dyld: Library not loaded: #rpath/libssh2.1.dylib
Referenced from: /Users/matthewlaffin/anaconda/bin/ncks
Reason: image not found
Trace/BPT trap: 5
I am new to terminal and NCO but I have read that there could be an error in the path name which results in NCO not being able to find the Library. Does anyone have any insight into how to fix this?
The error message is from (ana)conda, not from MacPorts, because the ncks executable /Users/matthewlaffin/anaconda/bin/ncks is in your (ana)conda directory, and it is trying to find an (ana)conda library that apparently not installed. Not sure why. See this issue for a possible solution.
If you did not have (ana)conda installed, then presumably your default NCO would be from MacPorts, and the MacPorts installation works so long as your PATH and LD_LIBRARY_PATH are correctly set.

Trouble Installing Flutter on OSX

I followed the install instructions for Flutter on OSX, and ended up with this error:
"Dart_NewStringFromUTF8 expects argument 'str' to be valid UTF-8."
Checking the github issues, this one seems to be closed but was not helpful in resolving. I have no weird characters in my file path.
I cannot find anything else on it that will resolve this error, nor do I know what/where to check to find out what is causing this. Anyone else ran into this issue on OSX?
I was able to fix this error by running flutter in verbose mode:
flutter doctor -v
This gave me clues on where the issue was on my machine. There was a directory with a non UTF-8 character and that tripped up the installation process. Renaming that directory solved the error.

upgrading libmosquitto from 1.1.3 to 1.4.8 in iOS

I am working on a project where I am using libmosquitto 1.1.3. It is working fine with WITH_TLS flags for ssl.
Now I have to upgrade the library to latest version which is 1.4.8.
I was unable to download new library but it does not have WITH_TLS flag in it.
When I copied this Preprocessor to my file it gave error openssl/ssl.h file not found.
Any on using this library in iOS , Please suggest something.
I solved the problem, After a lot of research, I came to know that the difference between Two library is the Version 1.1.3 has WITH_TLS flag setting only in one file/place. But Version 1.4.8 of Mosquito has some new file related to TLS and WITH_TLS has to be set there too.
After setting this flag at two places I am successfully abel to compile..
:)

Capybara Webkit - Unable to start server

After pulling down an existing Rails project to my local machine, running the test suite throws an error when trying to run our feature tests which use the capybara-webkit gem. The tests run fine on all the other dev machines, as well as Codeship, so it has been narrowed down to my machine.
The first error when running the specs:
dyld: Library not loaded: #rpath/lib/QtWebKit.framework/Versions/4/QtWebKit
Referenced from: /Users/myname/.rvm/gems/ruby-1.9.3-p448myproject/gems/capybara-webkit-1.2.0/bin/webkit_server
Reason: image not found
From what I can gather, it's looking for the webkit_server executable and can't find it. So I did a search for it myself and found it here:
/usr/local/Cellar/qt/4.8.6/lib/QtWebKit.framework/Versions/4
So the discrepancy here is in #rpath from what I can tell. I guess the question here is where is #rpath pointing, and where should my QtWebkit.framework be?
The second error when running the specs:
An error occurred in an after hook
Errno::EADDRNOTAVAIL: Can't assign requested address - connect(2)
occurred at /Users/myname/.rvm/gems/ruby-1.9.3-p448#myproject/gems/capybara-webkit-1.2.0/lib/capybara/webkit/connection.rb:84:in `initialize'
I'm assuming this is a byproduct of the previous error, but have included it anyway.
So far, we've done a few other things to try and remedy the situation:
Removed and reinstalled Qt4 using Homebrew (via this post:
Error using capybara-webkit (really QtWebKit webkit_server) on MacOS X due to libpng version incompatibility)
Updated the capybara-webkit gem to 1.2.0 from 1.0.0
Verified that the output of which QMake makes sense (shows /usr/local/bin/QMake)
Reinstalled X11
Edit: Just installed Qt from source - No luck
After searched for a long time, I finally found that capybara-webkit version is the problem. So update your gem capybara-webkit should fix this. At least it solved my problem.
I've used the cheat code to increase the WEBKIT_SERVER_START_TIMEOUT constant time.
Capybara::Webkit.configure do |config|
config.class.parent::Connection.send(:remove_const,:WEBKIT_SERVER_START_TIMEOUT)
config.class.parent::Connection::WEBKIT_SERVER_START_TIMEOUT = 30
end

Resources