Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 23 18:39
    saisankargochhayat commented #2555
  • Feb 22 20:03
    ix4 starred coala/coala-bears
  • Feb 20 03:18
    sleepiejohn starred coala/coala-bears
  • Feb 19 19:32
    StanleySweet commented #2710
  • Feb 19 19:20
    graugans commented #2710
  • Feb 19 19:19
    graugans commented #2710
  • Feb 04 13:52
    JohannesRitz starred coala/coala-bears
  • Jan 28 04:13
    Shiva-sankaran commented #2971
  • Jan 27 22:31
    johnowennixon starred coala/coala-bears
  • Jan 27 20:47
    ProPriyam edited #2971
  • Jan 26 21:43
    ProPriyam synchronize #2971
  • Jan 26 12:45
    ProPriyam edited #2971
  • Jan 26 12:45
    ProPriyam edited #2971
  • Jan 26 12:44
    ProPriyam opened #2971
  • Jan 25 18:44
    akshatkarani commented #2965
  • Jan 25 04:13
    abhishalya assigned #2895
  • Jan 23 22:16
  • Jan 23 22:11
    ProPriyam commented #2895
  • Jan 23 15:05
    abhishalya commented #2895
  • Jan 22 20:10
    ProPriyam commented #2895
Zatreanu Adrian-Gabriel
@Adrianzatreanu
let me try one bit of code
nah not working
package_object = importlib.import_module(
        'coala' + package_name + '.' + package_name)
    for requirement in getattr(package_object, package_name).REQUIREMENTS:
this is how i roll for reqs
Lasse Schuirmann
@sils
see you do getattr(package_object, package_name)
you don't do that in the other one
-> code duplication
Zatreanu Adrian-Gabriel
@Adrianzatreanu
whaaat :/ ?
Lasse Schuirmann
@sils
you gotta reduce your duplication, I have the feeling that you have still some of that, whenever I find an issue it's duplication.
the getattr gets the bear from the module
so you have to pass the getattr to show_bears instead of the object
Zatreanu Adrian-Gabriel
@Adrianzatreanu
no i tried that when i said wait a se
Traceback (most recent call last):
  File "coala_package_manager/installation_tool.py", line 330, in <module>
    sys.exit(main())
  File "coala_package_manager/installation_tool.py", line 323, in main
    show_bear(getattr(package_object, args['<bear>'][0]), True, True, ColorPrinter)
  File "/Users/adrianzatreanu/venv/lib/python3.5/site-packages/coalib/output/ConsoleInteraction.py", line 695, in show_bear
    console_printer.print(bear.name, color="blue")
  File "/Users/adrianzatreanu/venv/lib/python3.5/site-packages/pyprint/Printer.py", line 43, in print
    return self._print(output, **kwargs)
AttributeError: 'str' object has no attribute '_print'
Zatreanu Adrian-Gabriel
@Adrianzatreanu
@sils1297 is this beyond you??
Lasse Schuirmann
@sils
oh sorry getting prompted from too many locations when I actually only want to sleep :P
Zatreanu Adrian-Gabriel
@Adrianzatreanu
sleep, then!
(after helping me out with this)
Lasse Schuirmann
@sils
what the hell is wrong with your printer
what did you do!??
Zatreanu Adrian-Gabriel
@Adrianzatreanu
what printer should i use?
im using ColorPrinter idk
Lasse Schuirmann
@sils
you're giving it a class...
are you drugged today? :P
Zatreanu Adrian-Gabriel
@Adrianzatreanu
what
Lasse Schuirmann
@sils
give it an instance!
you can't pass ConsolePrinter
you gotta pass ConsolePrinter()
Zatreanu Adrian-Gabriel
@Adrianzatreanu
oh
Lasse Schuirmann
@sils
of course it has no self...
Zatreanu Adrian-Gabriel
@Adrianzatreanu
i had no idea what a printer was :D
Lasse Schuirmann
@sils
but well you can just read the traceback?
Zatreanu Adrian-Gabriel
@Adrianzatreanu
cant say it was that clear
"add ()"
well this one looks to be with the printer!
Traceback (most recent call last):
  File "/Users/adrianzatreanu/venv/lib/python3.5/site-packages/pyprint/ColorPrinter.py", line 44, in _print
    return self._print_colored(output, **kwargs)
  File "/Users/adrianzatreanu/venv/lib/python3.5/site-packages/pyprint/ColorPrinter.py", line 56, in _print_colored
    raise NotImplementedError
NotImplementedError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "coala_package_manager/installation_tool.py", line 331, in <module>
    sys.exit(main())
  File "coala_package_manager/installation_tool.py", line 324, in main
    show_bear(getattr(package_object, args['<bear>'][0]), True, True, ColorPrinter())
  File "/Users/adrianzatreanu/venv/lib/python3.5/site-packages/coalib/output/ConsoleInteraction.py", line 695, in show_bear
    console_printer.print(bear.name, color="blue")
  File "/Users/adrianzatreanu/venv/lib/python3.5/site-packages/pyprint/Printer.py", line 43, in print
    return self._print(output, **kwargs)
  File "/Users/adrianzatreanu/venv/lib/python3.5/site-packages/pyprint/ColorPrinter.py", line 46, in _print
    return self._print_uncolored(output, **kwargs)
  File "/Users/adrianzatreanu/venv/lib/python3.5/site-packages/pyprint/ColorPrinter.py", line 65, in _print_uncolored
    raise NotImplementedError
NotImplementedError
Lasse Schuirmann
@sils
adrian.
the colorprinter is an abstract class
Zatreanu Adrian-Gabriel
@Adrianzatreanu
thsi sounds bad
Lasse Schuirmann
@sils
pass a console printer
basically NotImplementedError yells at you "I'm abstract" :)
Zatreanu Adrian-Gabriel
@Adrianzatreanu
:/
sils @sils1297 is tired
Lasse Schuirmann
@sils
sorry ^
Zatreanu Adrian-Gabriel
@Adrianzatreanu
what printer should i use instead?
Lasse Schuirmann
@sils
Zatreanu Adrian-Gabriel
@Adrianzatreanu
oh cool, nailed it
thanks
Zatreanu Adrian-Gabriel
@Adrianzatreanu
@sils1297 what is the best text coloring tool i should use :D ?
Christian Asnel Ngoulla Sob
@AsnelChristian
@Adrianzatreanu colored pencils :P