Giter VIP home page Giter VIP logo

Comments (3)

oschlueter avatar oschlueter commented on May 24, 2024 7

pip install darksky does not install darkskylib, you have to install via pip install darkskylib to obtain this project.

See darksky vs. darkskylib

from darkskylib.

bfauser avatar bfauser commented on May 24, 2024

Hi, this issue is with the init.py file where you should put
from .core import *
This was necessary as I imported the module with pip. Btw: from foo import * is a very bad programming style, one should import everything explicitly or import as drksky or such.
I had to make several other changes to get at least the forecast command to work, as I use python 3.6 and a venv (if you have installed this package in a venv look at \<venv_name>\Lib\site-packages\darksky where you find the files. I had also problems with several other packages (e.g urllib -> had to use urllib3, and Geo which was also not able to import some stuff (replace from geo import foo to from geo import *) Yes mea culpa but I was not able to see quickly what to import and just tried to test if I can get the thing working. After that, the package is still brocken because the urls in core.py are wrong (wrong machine, wrong api, wrong parameter parsing in api string generation, wrong order of parameters in forecast call etc...)
So after spending 1h to install and test this I probably will look for another api wrapper as this one is not mature, also one should do this as asyncio, so that the process is non-blocking ....
Maybe I come back in some time, as the stuff seems to be under active development right now.
Happy sunshine :)

from darkskylib.

lukaskubis avatar lukaskubis commented on May 24, 2024

I'd like to see some tracebacks because if you haven't noticed, there is no core.py in this codebase so I think you're testing some different package with the darksky namespace @guppythegod @bfauser

There's also neither urllib nor geo dependency, just requests.

from darkskylib.

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.