错误:无法检索sbt 0.13.8

时间:2015-05-04 21:34:25

标签: scala sbt

我有新的ubuntu 15.04并且我在this指南下安装了sbt

echo "deb http://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-get update
sudo apt-get install sbt

然后我只是在终端

中运行命令
sbt

输出说sbt正在尝试安装(许多[SUCCESS]消息)并且毕竟有一些错误消息,如

:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: org.json4s#json4s-core_2.10;3.2.10: not found
unresolved dependency: org.spire-math#jawn-parser_2.10;0.6.0: not found
unresolved dependency: org.spire-math#json4s-support_2.10;0.6.0: not found
download failed: org.scalamacros#quasiquotes_2.10;2.0.1!quasiquotes_2.10.jar
Error during sbt execution: Error retrieving required libraries
(see /home/dima/.sbt/boot/update.log for complete log)
Error: Could not retrieve sbt 0.13.8

here是来自/home/dima/.sbt/boot/update.log的完整日志

请帮助我该怎么做才能解决这个问题?

感谢

1 个答案:

答案 0 :(得分:0)

There are a number of errors like these in the logs:

import pandas as pd
import matplotlib.pyplot as plt
import datetime

data = pd.read_csv('data.csv', sep=',', header=None)

ints = data[data[1]=='INT']
exts = data[data[1]=='EXT']

int_times = [datetime.datetime.time(datetime.datetime.strptime(t, '%H:%M')) 
             for t in ints[4]]
ext_times = [datetime.datetime.time(datetime.datetime.strptime(t, '%H:%M')) 
             for t in exts[4]]
int_dist = [d for d in ints[3]]
ext_dist = [d for d in exts[3]]

axis_times = ['0:00','01:00', '02:00', '03:00', '04:00', '05:00','06:00',
              '07:00','08:00','09:00','10:00','11:00','12:00']

fig, ax = plt.subplots()
ax.scatter(int_dist, int_times, c='red', s=50)
ax.scatter(ext_dist, ext_times, c='blue', s=50)

plt.yticks( axis_times, size='small')

plt.legend(['INT', 'EXT'], loc=4)
plt.xlabel('Distance')
plt.ylabel('Time')

plt.show()

These suggest there was a (perhaps) temporary network issue. If you try the URL with get or curl do you see a similar error?