Comments (13)
Fixed with your pull request!
from python-draftlog.
Unfortunately not really :(
https://travis-ci.org/kepoorhampond/python-draftlog/jobs/218885403
from python-draftlog.
from python-draftlog.
Not working on ubuntu, my guess is you are on mac?
from python-draftlog.
I'm on elementary OS, which is practically a wrapper for ubuntu. I'll look into it, thanks!
from python-draftlog.
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.
I'll be at my PC in like 20 hrs at least, so if you don't mind waiting I will :)
from python-draftlog.
from python-draftlog.
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.
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.
@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.
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 theis 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.
Awesome! I'll add a disclaimer to the README sometime! Thanks for your help!
from python-draftlog.
Related Issues (2)
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-draftlog.