Giter VIP home page Giter VIP logo

Comments (11)

applecool avatar applecool commented on July 25, 2024

@aalejoramirezz Hi, Seems like you have some missing libraries. You might be missing msgpack. Please install msgpack as part of your setup. That should fix the issue.

from insights-scripting-guide.

applecool avatar applecool commented on July 25, 2024

@aalejoramirezz I have updated the instructions on the conda in the readme. Please take a look :) Thanks.

from insights-scripting-guide.

aalejoramirezz avatar aalejoramirezz commented on July 25, 2024

thanks for replying @applecool
I tried: conda install -c conda-forge msgpack and failed
So I did: conda install msgpack-python and works.

But still getting the same errors :(
NameError: name '__get_column_types' is not defined
NameError: name 'insights_dict' is not defined

from insights-scripting-guide.

phpmaps avatar phpmaps commented on July 25, 2024

@aalejoramirezz I can make this change. I too see same behavior.

Are you using Mac or Windows?

from insights-scripting-guide.

aalejoramirezz avatar aalejoramirezz commented on July 25, 2024

@phpmaps hi, I'm using Windows and Anaconda

from insights-scripting-guide.

applecool avatar applecool commented on July 25, 2024

@aalejoramirezz That's right its msgpack-python on conda. I updated that as well. Do you have shapely and geopandas installed?
These are the required libs - pandas, geopandas, numpy, matplotlib, msgpack, shapely and requests.

Try conda list and check if you have all these packages exist in the list. That will give you an idea if you are missing any packages mentioned above.

from insights-scripting-guide.

aalejoramirezz avatar aalejoramirezz commented on July 25, 2024

@applecool Yeah, I already installed all of them.
Versions
shapely 1.6.4, geopandas 0.6.1, pandas 0.25.1, numpy 1.16.5,
matplot 3.1.1, msgpack-python 0.6.1 , requests 2.22.0

The error still persists

from insights-scripting-guide.

jnbaene avatar jnbaene commented on July 25, 2024

Hello, any update on this error?

thanks for replying @applecool
I tried: conda install -c conda-forge msgpack and failed
So I did: conda install msgpack-python and works.

But still getting the same errors :(
NameError: name '__get_column_types' is not defined
NameError: name 'insights_dict' is not defined

Iยดm also getting the "NameError: name 'insights_dict' is not defined"
I also have installed all the libraries that @applecool lists.

Thanks

from insights-scripting-guide.

applecool avatar applecool commented on July 25, 2024

@jnbaene That is strange. Which version of Insights are you using currently? And is it desktop or enterprise?

from insights-scripting-guide.

jnbaene avatar jnbaene commented on July 25, 2024

@applecool I'm using Insights Desktop

from insights-scripting-guide.

jnbaene avatar jnbaene commented on July 25, 2024

Hello @applecool , I have an update with this issue.
Just created a new environment from scratch and tried doing the same action, viewing a variable with the script and it worked. I've checked what were the differences between both environments and found 12 packages that weren't present on my original environment, so maybe some of them could cause this issue to pop up. I will list them and hope it helps

Name | Version | Build | Channel

-- | -- | -- | --
asn1crypto | 1.2.0 | py37_0 | anaconda
deprecated | 1.2.7 | pypi_0 | pypi
descartes | 1.1.0 | pypi_0 | pypi
joblib | 0.14.0 | pypi_0 | pypi
palettable | 3.3.0 | pypi_0 | pypi
pandoc | 2.2.3.2 | 0 | anaconda
pysal | 2.1.0 | pypi_0 | pypi
scikit-learn | 0.21.3 | pypi_0 | pypi
scipy | 1.3.3 | pypi_0 | pypi
seaborn | 0.9.0 | pypi_0 | pypi
tqdm | 4.39.0 | pypi_0 | pypi
wrapt | 1.11.2 | pypi_0 | pypi

from insights-scripting-guide.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.