Installing Cocoapods Error - swift

When I try to install cocoapods I get this error message:
ERROR: Could not find a valid gem 'cocoapods' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect
returned=1 errno=0 state=SSLv2/v3 read server hello A: tlsv1 alert
protocol version (https://rubygems.org/latest_specs.4.8.gz)
I thought I had already downloaded cocoapods but when I check for the version using
pods --version
I get this:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:296:in to_specs': Could not find 'cocoapods' (>= 0) among 30 total gem(s) (Gem::LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/dependency.rb:307:into_spec'
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in gem'
from /usr/local/bin/pod:22:in'
Any ideas on how to fix it? Thanks in advance and sorry for the formatting.

Figured it out! Just had to update Ruby and it worked. Credit to this post: How to update Ruby Version 2.0.0 to the latest version in Mac OSX Yosemite?

Related

how to install staza for python 3.7 (this command is returning error (!pip install stanza ))

I am trying to instal stanza for lemmatization purposes using this command: !pip install stanza but it's returning the following error. Please help I am new to python.
Collecting stanza
Using cached stanza-1.1.1-py3-none-any.whl (227 kB)
ERROR: Could not find a version that satisfies the requirement torch>=1.3.0 (from stanza) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch>=1.3.0 (from stanza)
Same problem. I went to https://pytorch.org/get-started/locally/ and installed the torch, then it was solved.

Generamba setup failes when using Cocoapods

Only when using cocoapods(after run pod install), generamba setup failes with the following message when settin path to a .xcodeproj.
The path to a .xcodeproj file of the project is 'GrambaSample.xcodeproj'. Do you want to use it? (yes/no) yes
/Library/Ruby/Gems/2.3.0/gems/xcodeproj-1.4.2/lib/xcodeproj/project/object.rb:321:in `configure_with_plist': [!] Xcodeproj doesn't know about the following attributes {"inputFileListPaths"=>[], "outputFileListPaths"=>[]} for the 'PBXShellScriptBuildPhase' isa. (RuntimeError)
This error won't appear is not using cocoapods.
How can I be able to setup Generamba while using cocoapods.
To avoid this issue you should update CocoaPods to the latest beta version by executing
gem install cocoapods --pre
Latest beta version of CocoaPods now using inputFileListPaths and outputFileListPaths.
More info here See .xcfilelist Support

WARNING: Unable to pull data from 'http://gems.github.com': bad response Not Found 404 (http://gems.github.io/specs.4.8.gz)

I tried install rails 6.0.0 using command
gem install rails --pre
output:
....
WARNING: Unable to pull data from 'http://gems.github.com': bad
response Not Found 404 (http://gems.github.io/specs.4.8.gz) 40 gems
installed
System Configuration:
Mac OSX 10.13.6
ruby 2.6.1p33 (2019-01-30 revision 66950) [x86_64-darwin17]
OpenSSL 1.0.2h 3 May 2016
Since this is the test configuration with rails 6 beta, I like to clear all system warning in order to focus in rails.
Is there any solution to clear the warning?
Here what I did.
Go to my github account and add new gpg (after created new one)
Then no more warning!

An unexpected errors occured with Yarn 1.13.0 on Xubuntu 16

I managed to get the latest Yarn v1.13.0 installed on Xubuntu 16 with their curl installation instruction.
Now I'm getting this errors trying to install a project's dependencies.
An expected error occurred:
"https://registry.yarnpkg.com/event-stream/-/event-stream-3.3.6.tgz:
Request failed \"404 Not Found\
Same 'Not Found' message is displayed by the error url.
Seems to be caused by the security issue https://github.com/dominictarr/event-stream/issues/116?utm_content=educational&utm_campaign=2018-11-28&utm_source=email-sendgrid&utm_term=13952972&utm_medium=833442
How do I fix it? How do I find the project deps that use the corrupted version of event-stream?
Seemingly was caused by an older version of Nodemon prolly affected by the security issue above. Updating it to the latest version in package.json seemed to have helped.

How to install turicreate in mac

When i try to install turicreate in my mac machine its showing the following error:
Collecting turicreate
Could not fetch URL https://pypi.python.org/simple/turicreate/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661) - skipping
Could not find a version that satisfies the requirement turicreate (from versions: )
No matching distribution found for turicreate
please help me to resolve it?
Probably there is a Python version mismatch. At the moment TuriCreate supports only 2.7, 3.5 and 3.6.
Here is more on setting up Python environment for popular ML packages on Mac -
Machine Learning Compass