Comments (5)
Is it possible to change the
sky_text
language output?
I was thinking that maybe is a feature of the API the library is utilizing and could be a great improvement if not yet implemented.As for now I am translating to italian the result with "googletrans":
from googletrans import Translator ... translator = Translator() translator.translate(weather.current.sky_text, dest="it", src="en").text
A built in way to get directly the translated words would be much better
Not work for me :(
from python-weather.
Not work for me :(
At least explain what the problem is...
If it's something due to googletrans package you should open an issue on that repo
from python-weather.
@Magnarks that kind of problem should work by reinstalling googletrans with pip install googletrans==4.0.0-rc1
feel free to read this stackoverflow post: https://stackoverflow.com/questions/52455774/googletrans-stopped-working-with-error-nonetype-object-has-no-attribute-group
from python-weather.
Not work for me :(
At least explain what the problem is...
If it's something due to googletrans package you should open an issue on that repo
@Magnarks that kind of problem should work by reinstalling googletrans with
pip install googletrans==4.0.0-rc1
feel free to read this stackoverflow post: https://stackoverflow.com/questions/52455774/googletrans-stopped-working-with-error-nonetype-object-has-no-attribute-group
Ok i try install again googletrans but i have the same problem, is this
Traceback (most recent call last):
File "c:\Users\diego\Documents\Python\AsistentedeVoz.py", line 188, in
bucle.run_until_complete(Clima())
File "C:\Users\diego\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete
return future.result()
File "c:\Users\diego\Documents\Python\AsistentedeVoz.py", line 100, in Clima
traducir.translate(text=clima.current.sky_text, dest="es", src="en").text
File "C:\Users\diego\AppData\Local\Programs\Python\Python39\lib\site-packages\googletrans\client.py", line 222, in translate
translated_parts = list(map(lambda part: TranslatedPart(part[0], part[1] if len(part) >= 2 else []), parsed[1][0][0][5]))
TypeError: 'NoneType' object is not iterable
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x000001767953A1F0>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x0000017678EF0760>, 186910.015)]']
connector: <aiohttp.connector.TCPConnector object at 0x000001767953A460>
from python-weather.
It may be related to this issue: ssut/py-googletrans#278
This is something you should ask in the relative GitHub repo! You'll have replies from people that work on that package and you would help them to make it better.
from python-weather.
Related Issues (20)
- Cant use if you ever forgot to close client HOT 1
- Debian specific requirements for your docs HOT 10
- The MSN API is retired HOT 5
- Is there a way to return the description/type for a day in the forecast? HOT 3
- print(forecast) returns AttributeError HOT 2
- Temperature is incorrect and with/without state produces different results HOT 7
- Change language HOT 1
- How to convert time to normal view ? HOT 2
- City list HOT 4
- Problem with forecasts HOT 6
- Sky_text aint working HOT 2
- How can i show where the weather is shown? HOT 3
- Set days in forecast HOT 1
- How do I access the UV Index number like I could in older versions? E.g. 3 instead of "Low" HOT 4
- ValueError: 308 is not a valid WeatherType HOT 5
- Getting history of weather HOT 1
- Trouble installing HOT 3
- Unable to install for Python 3.12; aiohttp needs upgrading to 3.9.0? HOT 3
- What is "rem dry"? HOT 3
- 3 hour interval HOT 1
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 python-weather.