昨天,Google Colab 中的以下单元格序列将起作用。
(我正在使用colab-env从 Google Drive 导入环境变量。)
今天早上,当我运行相同的代码时,出现以下错误。
这似乎是 s3fs 和 aiobotocore 的新问题。我对 Google Colab 和库版本依赖性问题有一些经验,我以前通过按特定顺序升级库来解决这些问题:
!pip install --upgrade library_name
Run Code Online (Sandbox Code Playgroud)
但是今天早上我有点被这个问题困扰。它影响了我所有的 Google Colab 笔记本,所以我认为它可能会影响使用存储在 Amazon AWS S3 中的数据和 Google Colab 的其他人。
安装的 s3fs 版本是 2021.07.0,似乎是最新的。
我正试图从import.io服务器获取数据,但直到现在我什么也没得到.但是当我使用相同代码的另一个api时another server,我得到了数据.你能告诉我我做错了吗?
这是工作代码,问题是我从import.io服务器得不到任何东西.但当我使用另一个服务如kimonolabs的另一个网址时,我从同一个代码中获取数据.对不起我的英文不好.我收到了这个响应代码:200
这是我的代码.
document.addEventListener('deviceready', onDeviceReady, false);
function onDeviceReady() {
//console.log('device is ready');
$.ajax({
type: 'GET',
url: 'https://api.import.io/store/data/6847842b-a779-46ba-874a-d1cfdcef2e3e/_query?input/webpage/url=http%3A%2F%2Fwww.girabola.com%2F%3Fp%3Djogos%26epoca%3D62%26jornada%3D1&_user=779609bc-1bfe-4bb3-aa45-465a3fc31d9a&_apikey=MY API KEY',
dataType: 'jsonp',
success: function(data) {
console.log(data); //The log dont show me nothing.
var output = '';
//output += '<ul>';
output += '<ul data-role="listview" data-inset="true">';
output += '<li data-role="list-divider">Equipa Técnica</li>';
console.log(data);
$(data.results).each(function(index, value) {
output += '<li>' + this.casa + '</li>';
});
output += '</ul>';
$('#um').append(output).listview().listview('refresh');
}
});
}
Run Code Online (Sandbox Code Playgroud) 我在下面的表单中有来自数据提取工具/网站(http://import.io)的PHP API代码块.我想要一个搜索框,从而不是一个,而是多个这些"连接器"代码块返回结果(它们被称为连接器,因为它们将您的搜索查询与通过import.io传输的结果连接起来,大概是).
我是PHP的菜鸟,所以我不知道如何解决这个问题.
<?php
$userGuid = "kjnjkn-32d2-4b1c-a9c5-erferferferferf";
$apiKey = "APIKEY";
function query($connectorGuid, $input, $userGuid, $apiKey) {
$url = "https://api.import.io/store/connector/" . $connectorGuid . "/_query?_user=" . urlencode($userGuid) . "&_apikey=" . urlencode($apiKey);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(array("input" => $input)));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
$result = curl_exec($ch);
curl_close($ch);
return json_decode($result);
}
// Query for tile WEBSEARCH
$result = query("98c9bac2-e623-4e31-8a3e-erferferferf", array(
"search_query" => "term1",
), $userGuid, $apiKey);
var_dump($result);
// Query for tile WEBSEARCH …Run Code Online (Sandbox Code Playgroud) 我已根据链接https://import.io/download/linux下载import.io
.正如它所说,我已经提取并进入import.io终端的文件夹.但是当我尝试运行时./import.io,我收到了这个错误(如下所示).请建议我解决这个问题.我感谢您的帮助.
我使用的是Ubuntu 12.04.
Java版本
java版本"1.7.0_51"
Java(TM)SE运行时环境(版本1.7.0_51-b13)
Java HotSpot(TM)64位服务器VM(版本24.51-b03,混合模式)
错误
Starting application...
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xdedda7e4, pid=12312, tid=4149622464
#
# JRE version: 7.0_09-b05
# Java VM: Java HotSpot(TM) Client VM (23.5-b02 mixed mode linux-x86 )
# Problematic frame:
# C [libdbus-1.so.3+0x277e4]
[error occurred during error reporting (printing problematic frame), id 0xb]
# Failed to write core dump. Core dumps …Run Code Online (Sandbox Code Playgroud) import.io ×3
api ×1
botocore ×1
cordova ×1
java ×1
javascript ×1
jquery ×1
php ×1
python ×1
python-s3fs ×1
search ×1
ubuntu-12.04 ×1
web-scraping ×1