Git Product home page Git Product logo

Comments (7)

winterjung avatar winterjung commented on May 21, 2024 1

@strattner Version of halo using pip to install is 0.0.5. So it doesn't support __init__ using keyword argument like Halo(text='Loading', spinner='dots') yet. Anyway, pip version is working in Python 3 :)

from halo.

strattner avatar strattner commented on May 21, 2024 1

@manrajgrover looks good, thanks

from halo.

massenz avatar massenz commented on May 21, 2024 1

FWIW I just installed via pip and works great under Python 3.5.2 -- ❤️ this project!
@manrajgrover thanks for creating and sharing this, you're a 🌟

from halo.

manrajgrover avatar manrajgrover commented on May 21, 2024

Hi @AmirZero, I believe Python 3 is already supported. I've tested it as well (see https://travis-ci.org/ManrajGrover/halo). Please let me know if you're facing any issue using the library on Python 3.

from halo.

strattner avatar strattner commented on May 21, 2024

@AmirZero I installed this through pip, and found it doesn't work in Python 3, but if you grab the latest version (git clone ... ) it works.

For example:

from halo import Halo
import time
spinner = Halo(text='Loading', spinner='dots')
spinner.start()
i = 0
while i < 100:
    i = i + 1
    time.sleep(1)
spinner.stop()

using the pip version:
$ python3 spin.py
Traceback (most recent call last):
File "spin.py", line 3, in
spinner = Halo(text='Loading', spinner='dots')
TypeError: init() got an unexpected keyword argument 'text'

using latest version:
$ python3 spin.py
⠦ Loading

from halo.

manrajgrover avatar manrajgrover commented on May 21, 2024

@strattner This should have been fixed now. Please reinstall the package and set version as 0.0.6. Let me know if you are still facing any issue.

from halo.

manrajgrover avatar manrajgrover commented on May 21, 2024

@massenz @strattner Thank you for confirming. ❤️

@jungwinter Thank you for helping in handling some of the issues. ❤️

@massenz Thank you for your kind words! 😄

@AmirZero Let me know if you're still facing an issue.

Closing this issue!

from halo.

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.