Issues downloading Graphlab dependencies get_dependencies()

2024/9/26 4:24:23

I am having trouble when I try to download the dependencies needed to run graphlab. I do import graphlab I get the following:

ACTION REQUIRED: Dependencies libstdc++-6.dll and libgcc_s_seh-1.dll not found.1. Ensure user account has write permission to C:\Users\DANISUAR\AppData\Local\Continuum\Miniconda2\envs\gl-env\lib\site-packages\graphlab
2. Run graphlab.get_dependencies() to download and install them.
3. Restart Python and import graphlab again.By running the above 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

So I try to run graphlab.get_dependencies() and I get the following error:

In [2]: 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=COPYINGDownloading xz.
Extracting xz.
Downloading gcc-libs.
Extracting gcc-libs.
xz: c:\users\danisuar\appdata\local\temp\tmpcdpyzp.xz: File format not recognized
---------------------------------------------------------------------------
CalledProcessError                        Traceback (most recent call last)
<ipython-input-2-5349b2d86a08> in <module>()
----> 1 gl.get_dependencies()C:\Users\DANISUAR\AppData\Local\Continuum\Miniconda2\envs\gl-env\lib\site-packag
es\graphlab\dependencies.pyc in get_dependencies()45     prev_cwd = os.getcwd()46     os.chdir(dllarchive_dir)
---> 47     subprocess.check_call([xz, '-d', dllarchive_file])48     dllarchive_tar = tarfile.open(os.path.splitext(dllarchive_file)[0])49     dllarchive_tar.extractall()C:\Users\DANISUAR\AppData\Local\Continuum\Miniconda2\envs\gl-env\lib\subprocess.pyc in check_call(*popenargs, **kwargs)
539         if cmd is None:
540             cmd = popenargs[0]
--> 541         raise CalledProcessError(retcode, cmd)
542     return 0
543CalledProcessError: Command '['c:\\users\\danisuar\\appdata\\local\\temp\\tmpf1habd\\bin_x86-64\\xz.exe', '-d', 'c:\\users\\danisuar\\appdata\\local\\temp\\tmpcdpyzp.xz']' returned non-zero exit status 1

I am using an Anaconda environment with Python 2.7 and Windows 7.

Answer

The first step is to install all the graph packages using the procedures listed in this link using PIP installer. Verify the successful installation of GraphLab by typing:

import graphlab

The following errors may appear as given in this image:

Image

Then, you can run graphlab.get_dependencies() in Python's terminal.

Verify the installation again in Python's terminal using:

import graphlab

https://en.xdnf.cn/q/71500.html

Related Q&A

Django Tastypie slow POST response

Im trying to implement a Tastypie Resource that allows GET & POST operations following a per user-permission policy, the model is pretty simple (similar to the Note model in Tastypie documentation)…

Extract a region of a PDF page by coordinates

I am looking for a tool to extract a given rectangular region (by coordinates) of a 1-page PDF file and produce a 1-page PDF file with the specified region:# in.pdf is a 1-page pdf file extract file.pd…

Is it possible to concatenate QuerySets?

After a search of a database I end up with an array of querysets. I wanted to concatenate these queryset somewhat like we can do with list elements. Is this possible or maybe there an altogether better…

Pickling a Python Extension type defined as a C struct having PyObject* members

I am running C++ code via Python and would like to pickle an extension type.So I have a C++ struct (py_db_manager) containing pointers to a database object and a object manager object (both written in …

Generating random ID from list - jinja

I am trying to generate a random ID from a list of contacts (in Python, with jinja2) to display in an HTML template. So I have a list of contacts, and for the moment I display all of them in a few cell…

Unit testing Flask app running under uwsgi

I’m relatively new to python and am looking for a pythonic way to handle this practice. I’ve inherited a fairly trivial Python 2.7 Flask app that runs under uwsgi that I want to add some unit tests t…

fastest way to find the smallest positive real root of quartic polynomial 4 degree in python

[What I want] is to find the only one smallest positive real root of quartic function ax^4 + bx^3 + cx^2 + dx + e [Existing Method] My equation is for collision prediction, the maximum degree is quarti…

Split strings by 2nd space

Input :"The boy is running on the train"Output expected:["The boy", "boy is", "is running", "running on", "on the", "the train"]Wha…

Searching for a random python program generator

Im searching for a program that can generate random but valid python programs, similar to theRandom C program generator. I was trying to do this myself giving random input to the python tokenize.untoke…

Python tk framework

I have python code that generates the following error:objc[36554]: Class TKApplication is implemented in both /Library/Frameworks/Tk.framework/Versions/8.5/Tk and /System/Library/Frameworks/Tk.framewor…