Coder Social home page Coder Social logo

no module GarminConnectEnums about garmindb HOT 6 CLOSED

tcgoetz avatar tcgoetz commented on July 17, 2024
no module GarminConnectEnums

from garmindb.

Comments (6)

tcgoetz avatar tcgoetz commented on July 17, 2024

My bad. That's a new file I forgot to add. Added. Pushed.

from garmindb.

benbowen avatar benbowen commented on July 17, 2024

that module thows the following error for me:

INFO:/Users/bpb/repos/garmin_activity/GarminDB/GarminConnectEnums.py:Unknown event type: {u'typeId': 9, u'typeKey': u'uncategorized', u'sortOrder': 10}
Traceback (most recent call last):
  File "import_garmin_activities.py", line 392, in <module>
    main(sys.argv[1:])
  File "import_garmin_activities.py", line 380, in main
    gjd.process_files(db_params_dict)
  File "import_garmin_activities.py", line 279, in process_files
    event = GarminConnectEnums.Event.from_json(json_data)
  File "/Users/bpb/repos/garmin_activity/GarminDB/GarminConnectEnums.py", line 23, in from_json
    return cls(json_event['typeId'])
  File "/Users/bpb/.local/lib/python2.7/site-packages/enum/__init__.py", line 347, in __call__
    return cls.__new__(cls, value)
  File "/Users/bpb/.local/lib/python2.7/site-packages/enum/__init__.py", line 662, in __new__
    raise ValueError("%s is not a valid %s" % (value, cls.__name__))
ValueError: 9 is not a valid Event
make: *** [import_new_activities] Error 1

from garmindb.

tcgoetz avatar tcgoetz commented on July 17, 2024

Cool! That's actually a missing value from the event enum since I don't have any activities of type 'uncategorized'. I'll add it in a second.

from garmindb.

tcgoetz avatar tcgoetz commented on July 17, 2024

pushed

from garmindb.

benbowen avatar benbowen commented on July 17, 2024

Thanks!

from garmindb.

tcgoetz avatar tcgoetz commented on July 17, 2024

If you find some info for one of the unknown message or fields, open another bug for it. Sometime you can figure out what a field is based on comparing it to other known fields. Timestamp are all similar values.

from garmindb.

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.