Code Monkey home page Code Monkey logo

Comments (6)

orakaro avatar orakaro commented on July 30, 2024

HI @cirrusUK
Maybe you have a different problem. Let's follow these step

  • pip install -U rainbowstream
  • Start with debug option: rainbowstream -dg
  • Reproduce the not-work commands.
  • Inside the app, type g['traceback']
  • Paste back here what is printed out.

For the libnotify question, I didn't implement such feature so it is not available at this time.
A PR will be very appreciate :)

from rainbowstream.

cirrusUK avatar cirrusUK commented on July 30, 2024

OMG something is wrong with Twitter right now.
g['traceback']
'Traceback (most recent call last):\n File "/home/cirrus/venv/lib/python3.4/site-packages/rainbowstream/rainbow.py", line 1774, in listen\n process(cmd)()\n File "/home/cirrus/venv/lib/python3.4/site-packages/rainbowstream/rainbow.py", line 218, in home\n draw(t=t
weet)\n File "/home/cirrus/venv/lib/python3.4/site-packages/rainbowstream/draw.py", line 169, in draw\n clock = arrow.get(date).to('local').humanize(locale=lang)\n File "/home/cirrus/venv/lib/python3.4/site-packages/arrow/arrow.py", line 576, in humanize\n locale
= locales.get_locale(locale)\n File "/home/cirrus/venv/lib/python3.4/site-packages/arrow/locales.py", line 21, in get_locale\n raise ValueError('Unsupported locale \'{0}\''.format(name))\nValueError: Unsupported locale 'en_GB'\n'
: does seem to be related to locale, plz advise on how to fix, thank you.

from rainbowstream.

orakaro avatar orakaro commented on July 30, 2024

en_GB.UTF-8 is currently not supported in Arrow - a dependency of RainbowStream.
A quick fix is changing your LC_ALL to en_us.UTF-8:

export LC_ALL=en_us.UTF-8

I will add a fallback method in next release. Thanks for report 👍

from rainbowstream.

cirrusUK avatar cirrusUK commented on July 30, 2024

hi DTVD and thanks for the tip, however when adding export LC_ALL=en_us.UTF-8 to ~/.zshrc i get this ..
cirrus@hawker64  ~  rainbowstream
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_us.UTF-8)
sh: warning: setlocale: LC_ALL: cannot change locale (en_us.UTF-8)
_ _
I guess im missing something ?

from rainbowstream.

orakaro avatar orakaro commented on July 30, 2024

I'm sorry, that line worked for changing locale on my Mac. Maybe Linux is different.
After googling a bit, I guess that you should follow these 2 command.

Anw, make sure that $LC_ALL (maybe $LANG also) is successfully set to en_US.UTF-8 before start rainbowstream. You can double check with following lines on your Python interpreter

(venv)DTVD@DTVD-Air :: ~ -->> python
Python 2.7.5 (default, Mar  9 2014, 22:15:05) 
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.getdefaultlocale()
('en_US', 'UTF-8')
>>> 

from rainbowstream.

orakaro avatar orakaro commented on July 30, 2024

In v1,0.0+ unsupported locale will fallback to normal display and every command should work

from rainbowstream.

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.