GithubHelp home page GithubHelp logo

Comments (4)

knaaptime avatar knaaptime commented on July 17, 2024

Instead of a screenshot can you paste the traceback between 3 backtics?

from geosnap.

renanxcortes avatar renanxcortes commented on July 17, 2024

Sure, sorry about that:

---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
~\AppData\Local\Continuum\anaconda3\lib\site-packages\quilt\nodes.py in __getattr__(self, name)
     97             try:
---> 98                 return self[name]
     99             except KeyError:

~\AppData\Local\Continuum\anaconda3\lib\site-packages\quilt\nodes.py in __getitem__(self, name)
    128     def __getitem__(self, name):
--> 129         return self._children[name]
    130 

KeyError: 'states'

During handling of the above exception, another exception occurred:

AttributeError                            Traceback (most recent call last)
<ipython-input-1-ff6b1fcf64ae> in <module>()
----> 1 import geosnap

~\Desktop\geosnap\geosnap\__init__.py in <module>()
     30 
     31 from . import analyze
---> 32 from . import data
     33 from . import util
     34 from .data import metros

~\Desktop\geosnap\geosnap\data\__init__.py in <module>()
----> 1 from .data import Community, metros, read_ltdb, read_ncdb, dictionary, db

~\Desktop\geosnap\geosnap\data\data.py in <module>()
     50 dictionary = pd.read_csv(os.path.join(_package_directory, "variables.csv"))
     51 
---> 52 states = census.states()
     53 counties = census.counties()
     54 tracts = census.tracts_2010

~\AppData\Local\Continuum\anaconda3\lib\site-packages\quilt\nodes.py in __getattr__(self, name)
     98                 return self[name]
     99             except KeyError:
--> 100                 raise AttributeError
    101 
    102     def __setattr__(self, name, value):

AttributeError: 

from geosnap.

knaaptime avatar knaaptime commented on July 17, 2024

I think this is the same as #69. The quilt package needs to be rebuilt on your machine

from geosnap.

renanxcortes avatar renanxcortes commented on July 17, 2024

Cool, thank you! Indeed, after running this:

pip install --upgrade quilt
quilt install spatialucr/census

and overwriting whenever asked, I managed to import geosnap. Thanks!

from geosnap.

Related Issues (20)

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.