2016-07-27 6 views
0

Graphlab CreateをWin 10にインストールすると、graphlab.get_dependencies()を使用して2つの依存関係をインストールするように求められます。Graphlabセットアップエラーを生成する:graphlab.get_dependencies()でBadZipFileエラーが発生する

しかし、私は次のエラーを取得しています:

 

    In [9]: gl.get_dependencies() 

    By running this function, you agree to the following licenses. 

    * libstdc++: https://gcc.gnu.org/onlinedocs/libstdc++/manual/license.html 
    * xz: http://git.tukaani.org/?p=xz.git;a=blob;f=COPYING 

    Downloading xz. 
    Extracting xz. 
    --------------------------------------------------------------------------- 
    BadZipfile        Traceback (most recent call last) 
    in() 
    ----> 1 gl.get_dependencies() 

    C:\Users\nikulk\Anaconda2\envs\gl-env\lib\site-packages\graphlab\dependencies.pyc in get_dependencies() 
     34  xzarchive_dir = tempfile.mkdtemp() 
     35  print('Extracting xz.') 
    ---> 36  xzarchive = zipfile.ZipFile(xzarchive_file) 
     37  xzarchive.extractall(xzarchive_dir) 
     38  xz = os.path.join(xzarchive_dir, 'bin_x86-64', 'xz.exe') 

    C:\Users\nikulk\Anaconda2\envs\gl-env\lib\zipfile.pyc in __init__(self, file, mode, compression, allowZip64) 
     768   try: 
     769    if key == 'r': 
    --> 770     self._RealGetContents() 
     771    elif key == 'w': 
     772     # set the modified flag so central directory gets written 

    C:\Users\nikulk\Anaconda2\envs\gl-env\lib\zipfile.pyc in _RealGetContents(self) 
     809    raise BadZipfile("File is not a zip file") 
     810   if not endrec: 
    --> 811    raise BadZipfile, "File is not a zip file" 
     812   if self.debug > 1: 
     813    print endrec 

    BadZipfile: File is not a zip file 

誰でも解決する方法を知っていますか?

答えて

0

graphlabフォルダでは、書き込み可能なフォルダを作成します。最初は読み込み専用です。フォルダのプロパティに移動すると、読み取り専用のオプションが取り消されます。問題が解決することを願っています。

1

このエラーが発生した場合、ファイアウォールによって依存関係のダウンロードがブロックされている可能性があります。

GraphLabは、このパッケージを使用する方法を確認するためにget_dependenciesためSFrameのソースコードを参照してください:ここではいくつかの情報や周りの仕事があるhttps://github.com/turicode/SFrame/blob/master/oss_src/unity/python/sframe/dependencies.py

XZユーティリティはのみがダウンロードされ、他のファイルからの実行時の依存関係を抽出するために使用されます(repo.msys2.orgから):http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-gcc-libs-5.1.0-1-any.pkg.tar.xzそのファイルからの2つのDLLは、GraphLab Createインストールパス内の "cython"ディレクトリに抽出する必要があります(通常、virtualenvまたはconda env内のlib/site-packages/python2.7/graphlabのようなものです)。抽出したら、依存関係の問題を解決する必要があります。

関連する問題