Comments (3)
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.
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.
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)
- v0.3.6 throws TypeError: '_GeneratorContextManager' object is not subscriptable HOT 8
- No way to add timeout to request HOT 6
- Great job!
- Possibility to pass more parameters HOT 2
- Seem to be missing precipType
- How to get historical data HOT 1
- ImportError: cannot import name 'forecast' from 'darksky' HOT 6
- forecast method returned object is un-picklable HOT 2
- add units option HOT 2
- can you explain the code in data.py? maybe it wrong.
- How to fill missing historical data between two dates HOT 2
- Problem with alerts HOT 2
- ModuleNotFoundError: No module named 'core' (again!) HOT 1
- Reuse requests session between calls HOT 1
- HTTPError: Bad response when making requests in loop HOT 1
- forecast is not callable HOT 4
- ImportError: cannot import name forecast HOT 1
- Apple has purchased Dark Sky and is shutting down the API. HOT 1
- No module named 'core'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from darkskylib.