pod install error: curl: (18) transfer closed with 54357829 bytes remaining to read - cocoapods

pod install, TwilioVoice update error.
pod install
Analyzing dependencies
Downloading dependencies
Installing AFNetworking (3.2.1)
Installing CocoaAsyncSocket (7.6.3)
Installing CocoaLumberjack (3.5.3)
Installing GoogleMaps (3.4.0)
Installing GooglePlaces (3.4.0)
Installing Masonry (1.1.0)
Installing SDWebImage (4.4.7)
Installing TwilioVideo (2.10.2)
Installing TwilioVoice (5.1.2)
[!] Error installing TwilioVoice
[!] /usr/bin/curl -f -L -o /var/folders/zl/014s9t8x7n90s8thffl59zx40000gn/T/d20200728-3792-5cbjyi/file.zip https://github.com/twilio/twilio-voice-ios/releases/download/5.1.2/TwilioVoice.framework.zip --create-dirs --netrc-optional --retry 2
% Total % Received % Xferd Average Speed Time Time Time Current <br>
Dload Upload Total Spent Left Speed <br>
100 638 100 638 0 0 489 0 0:00:01 0:00:01 --:--:-- 490 <br>
3 53.6M 3 1852k 0 0 3034 0 5:09:01 0:10:25 4:58:36 0 <br>
curl: (18) transfer closed with 54357829 bytes remaining to read <br>
TwilioVoice.podspec.json
{
"name": "TwilioVoice",
"version": "5.1.2",
"summary": "Twilio Voice",
"description": "Twilio Voice makes it easy to embed VoIP directly into your iOS apps.",
"homepage": "http://www.twilio.com/docs/api/voice-sdk",
"platforms": {
"ios": "10.0"
},
"license": {
"type": "Commercial",
"text": "Copyright © 2011-2017 Twilio, Inc. All rights reserved. Use of this software is subject to the terms and conditions of the Twilio Terms of Service located at http://www.twilio.com/legal/tos"
},
"authors": {
"Twilio": "help#twilio.com"
},
"source": {
"http": "https://github.com/twilio/twilio-voice-ios/releases/download/5.1.2/TwilioVoice.framework.zip"
},
"documentation_url": "https://twilio.github.io/twilio-voice-ios/docs/5.1.2",
"vendored_frameworks": "Build/iOS/TwilioVoice.framework",
"requires_arc": true,
"xcconfig": {
"OTHER_LDFLAGS": "-ObjC"
}
}
I can open and download the zip in Chroom with https://github.com/twilio/twilio-voice-ios/releases/download/5.1.2/TwilioVoice.framework.zip. But not install with the pod. Why? How can I resolve this?

The issue has done. Close the Proxifier and then pod install.

Related

PackageNotFoundError: Package not found: 'conda' Package 'conda' is not installed in C:\Users\user\AppData\Local\Programs\Python\Python39

my problem started when I tried to use conda create -n nam python3 and got conda.exceptions.CondaRuntimeError:
The following packages will be downloaded:
package | build
---------------------------|-----------------
vs2015_runtime-14.0.25420 | 0 2.0 MB
vc-14 | 0 703 B
python-3.6.2 | 0 31.5 MB
certifi-2016.2.28 | py36_0 214 KB
wheel-0.29.0 | py36_0 129 KB
wincertstore-0.2 | py36_0 14 KB
setuptools-36.4.0 | py36_1 534 KB
pip-9.0.1 | py36_1 1.7 MB
------------------------------------------------------------
Total: 36.0 MB
The following NEW packages will be INSTALLED:
certifi: 2016.2.28-py36_0
pip: 9.0.1-py36_1
python: 3.6.2-0
setuptools: 36.4.0-py36_1
vc: 14-0
vs2015_runtime: 14.0.25420-0
wheel: 0.29.0-py36_0
wincertstore: 0.2-py36_0
Proceed ([y]/n)?
Fetching packages ...
vs2015_runtime 100% |###############################| Time: 0:00:00 3.63 MB/s
vc-14-0.tar.bz 100% |###############################| Time: 0:00:00 140.66 kB/s
python-3.6.2-0 100% |###############################| Time: 0:00:05 5.56 MB/s
certifi-2016.2 100% |###############################| Time: 0:00:00 1.18 MB/s
wheel-0.29.0-p 100% |###############################| Time: 0:00:00 1.02 MB/s
wincertstore-0 100% |###############################| Time: 0:00:00 4.84 MB/s
setuptools-36. 100% |###############################| Time: 0:00:00 1.64 MB/s
pip-9.0.1-py36 100% |###############################| Time: 0:00:01 1.68 MB/s
Extracting packages ...
[ COMPLETE ]|##################################################| 100%
Linking packages ...
An unexpected error has occurred. | 0%
Please consider posting the following information to the
conda GitHub issue tracker at:
https://github.com/conda/conda/issues
Current conda install:
platform : win-64
conda version : 4.2.7
conda is private : False
conda-env version : 4.2.7
conda-build version : not installed
python version : 3.9.12.final.0
requests version : 2.28.1
root environment : C:\Users\user\AppData\Local\Programs\Python\Python39 (writable)
default environment : C:\Users\user\AppData\Local\Programs\Python\Python39
envs directories : C:\Users\user\AppData\Local\Programs\Python\Python39\envs
package cache : C:\Users\user\AppData\Local\Programs\Python\Python39\pkgs
channel URLs : https://repo.continuum.io/pkgs/free/win-64/
https://repo.continuum.io/pkgs/free/noarch/
https://repo.continuum.io/pkgs/pro/win-64/
https://repo.continuum.io/pkgs/pro/noarch/
https://repo.continuum.io/pkgs/msys2/win-64/
https://repo.continuum.io/pkgs/msys2/noarch/
config file : None
offline mode : False
$ C:\Users\user\miniconda3\Scripts\conda-script.py create -n nam python
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\conda\install.py", line 201, in yield_lines
with open(path) as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python39\\pkgs\\vs2015_runtime-14.0.25420-0\\info\\has_prefix'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\conda\install.py", line 209, in yield_lines
raise StopIteration
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\conda\cli\install.py", line 405, in install
execute_actions(actions, index, verbose=not context.quiet)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\conda\plan.py", line 643, in execute_actions
inst.execute_instructions(plan, index, verbose)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\conda\instructions.py", line 134, in execute_instructions
cmd(state, arg)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\conda\instructions.py", line 78, in LINK_CMD
link(state['prefix'], dist, lt, index=state['index'])
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\conda\install.py", line 943, in link
has_prefix_files = read_has_prefix(join(info_dir, 'has_prefix'))
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\conda\install.py", line 248, in read_has_prefix
return {pr.filepath: (pr.placeholder, pr.filemode) for pr in parsed_lines}
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\conda\install.py", line 248, in <dictcomp>
return {pr.filepath: (pr.placeholder, pr.filemode) for pr in parsed_lines}
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\conda\install.py", line 247, in <genexpr>
parsed_lines = (parse_line(line) for line in yield_lines(path))
RuntimeError: generator raised StopIteration
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\conda\exceptions.py", line 472, in conda_exception_handler
return_value = func(*args, **kwargs)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\conda\cli\main.py", line 144, in _main
exit_code = args.func(args, p)
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\conda\cli\main_create.py", line 68, in execute
install(args, parser, 'create')
File "C:\Users\user\AppData\Local\Programs\Python\Python39\lib\site-packages\conda\cli\install.py", line 420, in install
raise CondaRuntimeError('RuntimeError: %s' % e)
conda.exceptions.CondaRuntimeError: Runtime error: RuntimeError: generator raised StopIteration
my version is conda 4.2 and
I discovered that it's no longer supported, so I used conda update conda and got
PackageNotFoundError: Package not found: 'conda' Package 'conda' is not installed in C:\Users\user\AppData\Local\Programs\Python\Python39
, tried to reinstall anaconda and still got the same error.
"C:\Users\user\AppData\Local\Programs\Python\Python39"
has nothing to do with Anaconda. This the path where standard Python from python.org is installed. Why didn't you mention the 2 Python installations?
Anyhow, before you can use Anaconda you have activate it, preferably using the Anaconda prompt. Only then can you update conda.
And do yourself a favour: Either learn some conda basics from https://conda.io/projects/conda/en/latest/user-guide/getting-started.html
or remove it from your system.

Bad/illegal format or missing URL - Passing variable value inside custom curl [duplicate]

This question already has answers here:
Are shell scripts sensitive to encoding and line endings?
(14 answers)
Closed 1 year ago.
I am using a Linux shell (Ubuntu 20.04) in my Windows 10 Machine. I have a bash script that is supposed to
Go through a .txt file that contains a list of IPs
Curl each IP using a site https://ipinfo.io/ for a modified curl output
#!/bin/bash
input="/mnt/d/Docs/BR Resources/iplist.txt"
while IFS= read -r line
do
curl https://ipinfo.io/$line
done < "$input"
The expected output for each IP in the loop is :
{ "ip": "xx.xx.xx.xx",
"hostname": "c0241.brsol.com",
"city": "Ashburn",
"region": "Virginia",
"country": "US",
"loc": "xx.xxxx,xx.xxxx",
"org": "BR, Inc.",
"postal": "xxxxx",
"timezone": "America/New_York",
"readme": "https://ipinfo.io/missingauth" }
However, what I get as the output is this error :
curl: (3) URL using bad/illegal format or missing URL
Example excerpt of iplist.txt
36.13.6.167
252.125.137.71
204.50.68.40
136.122.209.112
203.47.25.30
223.96.93.56
64.137.82.169
11.183.223.40
199.169.87.25
119.198.39.119
The issue seems to be that the value of $line is not being passed alongside the rest of the curl command.
How can I fix this to get the modified Curl output for each IP in this .txt file?
I did below steps on my windows machine which generated the output:
Converted the file to dos2unix.exe ./test.sh
test.sh:
# !/usr/bin/bash
input="iplist.txt"
while IFS= read -r line
do
curl https://ipinfo.io/$line
done < "$input"
Ouput recieved:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 300 100 300 0 0 300 0 0:00:01 --:--:-- 0:00:01 532
{
"ip": "36.13.6.167",
"hostname": "kd036013006167.ppp-bb.dion.ne.jp",
"city": "Saitama",
"region": "Saitama",
"country": "JP",
"loc": "35.9081,139.6566",
"org": "AS2516 KDDI CORPORATION",
"postal": "330-0853",
"timezone": "Asia/Tokyo",
"readme": "https://ipinfo.io/missingauth"
} % Total % Received % Xferd Average Speed Time Time Time Current
bash version : GNU bash, version 4.3.42(4)-release

Elasticsearch scroll query returning with error

I'm trying to run an elasticsearch query with scrolling. Here's what I'm trying to do, but it is not working. I'm following the instructions here: https://www.elastic.co/guide/en/elasticsearch/reference/6.7/search-request-scroll.html
$ curl -u $(whoami) -XPOST 'https://myhost.io/elasticsearch/_msearch?scroll=1m' --data-binary #query.json -H "kbn-version:6.7.1" | jq
Enter host password for user '<first.last>':
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 973 0 96 100 877 321 2933 --:--:-- --:--:-- --:--:-- 3254
{
"statusCode": 500,
"error": "Internal Server Error",
"message": "An internal server error occurred"
}
Does anyone know why this doesn't work? If I remove the '?scroll=1m', this query works just fine.
You just need to expand the size of the scroll which is set probably to a smaller size

The async task did not return valid JSON

ANSIBLE VERSION
ansible --version
ansible 2.0.2.0
config file =
configured module search path = Default w/o overrides
OS / ENVIRONMENT
MacOS 10.9
SUMMARY
I want to launch shell command to build docker image asynchronously, the build is success but this error occured:
fatal: [192.168.0.1]: FAILED! => {"changed": false, "failed": true, "msg": "The async task did not return valid JSON: No JSON object could be decoded"}
STEPS TO REPRODUCE
<!---
For bugs, show exactly how to reproduce the problem.
For new features, show how the feature would be used.
-->
I manually executed the python snippet ansible executes:
/root/.ansible/tmp/ansible-tmp-1465081459.8-258691745536723/command
/root/.ansible/tmp/ansible-tmp-1465081459.8-258691745536723/arguments
The result is
{
"changed": true,
"end": "2016-06-05 07:12:38.323820",
"stdout": "Sending build context to Docker daemon 12.8 kB\r\r
Step 1 : FROM centos:6.6
---> 87dd25f5ba5c
Step 2 : RUN yum groupinstall -y development
---> Using cache
---> dc1b778350d5
Step 3 : RUN yum install -y vim bzip2-devel hostname tar zlib-dev
---> Using cache
---> d4538794340e
Step 4 : RUN curl https://bootstrap.pypa.io/get-pip.py | python -
---> Using cache
---> cd3cd13b11db
Step 5 : RUN pip install envtpl
---> Using cache
---> 574514eb6d91
Step 6 : WORKDIR /tmp
---> Using cache
---> 3750674900e6
Step 7 : ENV SCALA_VERSION 2.11
---> Using cache
---> 8316460b0264
Step 8 : ENV KAFKA_VERSION 0.9.0.1
---> Using cache
---> aa8f9cf12288
Step 9 : ENV KAFKA_HOME /usr/share/kafka_\"$SCALA_VERSION\"-\"$KAFKA_VERSION\"
---> Using cache
---> 38c1243614ac
Step 10 : RUN yum install -y tar libcurl libcurl-devel rrdtool rrdtool-devel perl-devel libgcrypt-devel gcc make gcc-c++ yajl-devel libxml2-devel libxml-2.0 java-1.7.0-openjdk java-1.7.0-openjdk-devel
---> Using cache
---> 8350d7ba311a
Step 11 : RUN curl -L -O http://mirrors.tuna.tsinghua.edu.cn/apache/kafka/\"$KAFKA_VERSION\"/kafka_\"$SCALA_VERSION\"-\"$KAFKA_VERSION\".tgz && tar xfz kafka_\"$SCALA_VERSION\"-\"$KAFKA_VERSION\".tgz -C /usr/share/
---> Using cache
---> 485916280855
Step 12 : RUN mkdir -p /usr/local/bin/
---> Using cache
---> 2a3427511ef0
Step 13 : ADD start-kafka.sh /usr/local/bin/start-kafka.sh
---> Using cache
---> 6cd1ae0c2abc
Step 14 : RUN chmod +x /usr/local/bin/start-kafka.sh
---> Using cache
---> 4ba3e949839e
Step 15 : ADD zookeeper.properties.j2 \"$KAFKA_HOME\"/config/
---> Using cache
---> db8bfa4cce0d
Step 16 : ADD server.properties.j2 \"$KAFKA_HOME\"/config/
---> Using cache
---> b2d93fd06892
Step 17 : EXPOSE 2181 9092
---> Using cache
---> 25f1e2136c2c
Step 18 : RUN mv /etc/localtime /etc/localtime.bak
---> Using cache
---> 1cf4fc533f3a
Step 19 : RUN ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
---> Using cache
---> b6bae747bc32
Step 20 : CMD /usr/local/bin/start-kafka.sh
---> Using cache
---> 9920101ececa
Successfully built 9920101ececa",
"cmd": "docker build -t elk/kafka /tmp/dockerfile/kafka",
"rc": 0,
"start": "2016-06-05 07:12:38.253244",
"stderr": "",
"delta": "0:00:00.070576",
"invocation": {
"module_args": {"warn": true,
"executable": null,
"chdir": null,
"_raw_params": "docker build -t elk/kafka /tmp/dockerfile/kafka",
"removes": null,
"creates": null,
"_uses_shell": true
}
},
"warnings": []
}
The task I execute is
- name: build or check kafka docker image
shell: docker build -t {{ image_name }} /tmp/dockerfile/kafka
async: 2400 # wait seconds
poll: 5 # poll wait seconds
I finally struggled to solve this problem. I added code to print the result in line 445 under file executor/task_executor.py:
return dict(failed=True, msg=u"The async task did not return valid JSON: error:%s result:%s" % (to_unicode(e), result))
Then I found some invalid json text: /etc/profile.d/lang.sh: line 19: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory\\r\\n
After I fixed this locale problem with the help of this link, this problem disappeared.

Go - is it possible to have Google Chrome browser embedded like webkit in Go? to make Mac, Windows, Linux compatible?

I need to prepare a Go application which will be used for distribution, on launch it will open Google Chrome browser within Go (like modal window or single window GUI) and that can be deployed to Mac, Windows, Linux for execution.
I have tried command line execution with Go to Google Chrome but that does not solve my problem to re-size/move/drag/customized design window.
Any idea if there is any working stable binding for Go and Google Chrome browser? (like webKit)
EDIT:
1) how to make it: http://www.youtube.com/watch?v=IhcUWEN6uTY
2) some other way: https://groups.google.com/forum/#!topic/golang-nuts/oFhXm4Rx1HM
1) install nodejs ( http://www.youtube.com/watch?v=ogprXGQWrQk )
$ wget http://nodejs.org/dist/v0.10.25/node-v0.10.25.tar.gz
./configure && make && make install
$ node --version
v0.10.25
$ node
> 1+1
2
2) Prepare project
$ mkdir /var/tmp/go; cd /var/tmp/go
$ npm init
$ cat >> package.json <\EOF
{
"name": "go",
"version": "0.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"window": {
"title": "Sample Application 2",
"toolbar": true,
"frame": true,
"width": 850,
"height": 500",
"position": "center",
"resizable": true,
"icon": "sample.png"
}
"author": "",
"license": "ISC"
}
EOF
$ cat >> index.js <\EOF
Hello world
EOF
$ zip go.nw index.js package.json
3) Run
A) get node-webkit
$ cd /var/tmp/
$ wget https://s3.amazonaws.com/node-webkit/v0.8.4/node-webkit-v0.8.4-linux-x64.tar.gz;
mv node-webkit-v0.8.4-linux-x64.tar.gz node-webkit;
B) play
$ cp /var/tmp/go/go.nw /var/tmp/node-webkit/
$ ./nw go.nw

Resources