Giter VIP home page Giter VIP logo

Comments (13)

cooperhammond avatar cooperhammond commented on August 29, 2024

Fixed with your pull request!

from python-draftlog.

djetelina avatar djetelina commented on August 29, 2024

Unfortunately not really :(

https://travis-ci.org/kepoorhampond/python-draftlog/jobs/218885403

from python-draftlog.

cooperhammond avatar cooperhammond commented on August 29, 2024

from python-draftlog.

djetelina avatar djetelina commented on August 29, 2024

Not working on ubuntu, my guess is you are on mac?

from python-draftlog.

cooperhammond avatar cooperhammond commented on August 29, 2024

I'm on elementary OS, which is practically a wrapper for ubuntu. I'll look into it, thanks!

from python-draftlog.

cooperhammond avatar cooperhammond commented on August 29, 2024

Would you mind trying out the relative-import branch? It's running on Travis, but I would appreciate it if you gave it a try.

from python-draftlog.

djetelina avatar djetelina commented on August 29, 2024

I'll be at my PC in like 20 hrs at least, so if you don't mind waiting I will :)

from python-draftlog.

cooperhammond avatar cooperhammond commented on August 29, 2024

from python-draftlog.

djetelina avatar djetelina commented on August 29, 2024

It's a bit odd, when I git clone and run all the examples, everything apart from progress.py runs (same error as in travis - probably a bug in there still).

However, when I pip install git+repo@branch and then run a scratchfile in pycharm, it errors with:

/usr/bin/python3.6 /home/david/.PyCharm2017.1/config/scratches/scratch_2.py


**************************************************************

**************************************************************


tput: No value for $TERM and no -T specified
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.6/dist-packages/draftlog/drafter.py", line 88, in run
    self.run_intervals()
  File "/usr/local/lib/python3.6/dist-packages/draftlog/drafter.py", line 77, in run_intervals
    interval["logdraft"].update(text)
  File "/usr/local/lib/python3.6/dist-packages/draftlog/logdraft.py", line 25, in update
    if self.off_screen(): # Check if offscreen, if so, don't update the line.
  File "/usr/local/lib/python3.6/dist-packages/draftlog/logdraft.py", line 62, in off_screen
    return int(self.lines_up()) >= int(self.stream.rows)
ValueError: invalid literal for int() with base 10: ''

This might be due to PyCharm's terminal being a dick somehow. When I copied the example files from git repo to home folder, they still ran through gnome terminal okay.

from python-draftlog.

cooperhammond avatar cooperhammond commented on August 29, 2024

That's strange. I honestly have no clue what's going wrong, or how to fix it. If anyone viewing this thread does, please comment!

from python-draftlog.

cooperhammond avatar cooperhammond commented on August 29, 2024

@iScrE4m Would you mind testing it again with the newest version of draftlog? I think using colorama as a way to initialize the ansi-escape-codes may have fixed it.

from python-draftlog.

djetelina avatar djetelina commented on August 29, 2024

Yay! :) Good news and bad news.

Good news is, no errors are raised, which is great!

Bad news is, it still doesn't work the way you would expect it to.

Example files

  • Progress bar - doesn't print out anything during the operation, after it finishes I'm left with this
/usr/bin/python3.6 /home/david/.PyCharm2017.1/config/scratches/scratch_3.py









[##################################################] 100%[##################################################] 100%
Process finished with exit code 0
  • Loading - prints out just the > text one after each other, no self.frames
  • Installer - same as progress bar, leaves me with just
/usr/bin/python3.6 /home/david/.PyCharm2017.1/config/scratches/scratch_3.py







 > scipy          Installed
Process finished with exit code 0
  • Banner - prints out the *** at the start (both top and bottom), then after everything is done it prints the is so cool! All with draftlog! Wow! Banners! This line (it obviously traveled a bit, just not shown)

Honestly I'm fine with this, I don't know what PyCharm is doing to cause this, but as long as it doesn't crash my script it's fine. I'd maybe disclose it somewhere to prevent a bit of confusion.

Thanks a lot, great job!

from python-draftlog.

cooperhammond avatar cooperhammond commented on August 29, 2024

Awesome! I'll add a disclaimer to the README sometime! Thanks for your help!

from python-draftlog.

Related Issues (2)

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.