Giter VIP home page Giter VIP logo

ganttlogger's Introduction

About Me

I'm working as data engineer, analyst, and web developer in Japan Tokyo.

I'm a deaf, so I cannot receive calls.

Recently, I'm interested in Rust language and studyin it.

Github Trophy

trophy

Recent Activity

ganttlogger's People

Contributors

kagenomoheji avatar

ganttlogger's Issues

グラフ生成時に発生した問題

ganttlogger --plotter を実行し、set_interval, select_data の入力し、実行させたところ、
以下のようなエラーが発生し、グラフが生成されなかった

Traceback (most recent call last):
  File "/usr/local/bin/ganttlogger", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/site-packages/ganttlogger/app.py", line 42, in main
    plotter.start()
  File "/usr/local/lib/python3.7/site-packages/ganttlogger/modules/Plotter.py", line 248, in start
    self.run()
  File "/usr/local/lib/python3.7/site-packages/ganttlogger/modules/Plotter.py", line 328, in run
    ax1.broken_barh(self.df_active_tab[k], (5+i*10, 5), facecolor="red")
  File "/usr/local/lib/python3.7/site-packages/matplotlib/__init__.py", line 1810, in inner
    return func(ax, *args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/matplotlib/axes/_axes.py", line 2528, in broken_barh
    xranges = self.convert_xunits(xranges)
  File "/usr/local/lib/python3.7/site-packages/matplotlib/artist.py", line 186, in convert_xunits
    return ax.xaxis.convert_units(x)
  File "/usr/local/lib/python3.7/site-packages/matplotlib/axis.py", line 1530, in convert_units
    ret = self.converter.convert(x, self.units, self)
  File "/usr/local/lib/python3.7/site-packages/matplotlib/dates.py", line 1818, in convert
    return date2num(value)
  File "/usr/local/lib/python3.7/site-packages/matplotlib/dates.py", line 427, in date2num
    return _to_ordinalf_np_vectorized(d)
  File "/usr/local/lib/python3.7/site-packages/numpy/lib/function_base.py", line 2091, in __call__
    return self._vectorize_call(func=func, args=vargs)
  File "/usr/local/lib/python3.7/site-packages/numpy/lib/function_base.py", line 2167, in _vectorize_call
    outputs = ufunc(*inputs)
  File "/usr/local/lib/python3.7/site-packages/matplotlib/dates.py", line 228, in _to_ordinalf
    base = float(dt.toordinal())
AttributeError: 'datetime.timedelta' object has no attribute 'toordinal'

Macでganttlogger --plotterでError

Run, Plotter!
Traceback (most recent call last):
File "/anaconda3/bin/ganttlogger", line 11, in
sys.exit(main())
File "/anaconda3/lib/python3.6/site-packages/ganttlogger/app.py", line 42, in main
plotter.start()
File "/anaconda3/lib/python3.6/site-packages/ganttlogger/modules/Plotter.py", line 248, in start
self.run()
File "/anaconda3/lib/python3.6/site-packages/ganttlogger/modules/Plotter.py", line 328, in run
ax1.broken_barh(self.df_active_tab[k], (5+i*10, 5), facecolor="red")
File "/anaconda3/lib/python3.6/site-packages/matplotlib/init.py", line 1855, in inner
return func(ax, *args, **kwargs)
File "/anaconda3/lib/python3.6/site-packages/matplotlib/axes/_axes.py", line 2543, in broken_barh
xranges = self.convert_xunits(xranges)
File "/anaconda3/lib/python3.6/site-packages/matplotlib/artist.py", line 191, in convert_xunits
return ax.xaxis.convert_units(x)
File "/anaconda3/lib/python3.6/site-packages/matplotlib/axis.py", line 1526, in convert_units
ret = self.converter.convert(x, self.units, self)
File "/anaconda3/lib/python3.6/site-packages/matplotlib/dates.py", line 1816, in convert
return date2num(value)
File "/anaconda3/lib/python3.6/site-packages/matplotlib/dates.py", line 452, in date2num
return _to_ordinalf_np_vectorized(d)
File "/anaconda3/lib/python3.6/site-packages/numpy/lib/function_base.py", line 2755, in call
return self._vectorize_call(func=func, args=vargs)
File "/anaconda3/lib/python3.6/site-packages/numpy/lib/function_base.py", line 2831, in _vectorize_call
outputs = ufunc(*inputs)
File "/anaconda3/lib/python3.6/site-packages/matplotlib/dates.py", line 255, in _to_ordinalf
base = float(dt.toordinal())
AttributeError: 'datetime.timedelta' object has no attribute 'toordinal'

ganttlogger-exe-macosでFileNotFoundError: ipaexg.ttf

aloneモードのグラフプロット時に

FileNotFoundError: [Errno 2] No such file or directory: '/var/folders/4n/8l851g4133d320y_9r6vz18r0000gn/T/_MEIiDpsB0/modules/../config/font/ipaexg.ttf'

Pyinstallerでのパッケージングの際に--add-dataしてあるけど、できていない。
__file__を使い、その上で相対パスしているのがダメなのしれない?
Windows版では動く。

グラフ生成時でのエラー

新しくグラフを生成すると、PDF 上で指摘されたエラーが発生しました。

$ganttlogger --plotter
OS        : Darwin-18.6.0
mode      : Plotter
Your ID is: None

===============[select plot types]===============
'set_interval': Set interval by seconds(Integer). Default is 1-second.
'filter_tab'  : Filter unnecessary tab texts in a text file before plotting.
'select_data' : Select whether you use all data to plot to an output or some data plot to each output. 
                Default - when you don't input in 'select_data' - is the former.
'xaxis_type'  : Select x-axis scale from whether 'active-start'(the start times of active tabs) or number
                of seconds interval.
Select plot types separated by ',',  or enter without input.: set_interval
-----------------[set_interval]-----------------
There are a required setting.
Set the number of interval by seconds: 3
Run, Plotter!
Traceback (most recent call last):
  File "/usr/local/bin/ganttlogger", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/site-packages/ganttlogger/app.py", line 42, in main
    plotter.start()
  File "/usr/local/lib/python3.7/site-packages/ganttlogger/modules/Plotter.py", line 248, in start
    self.run()
  File "/usr/local/lib/python3.7/site-packages/ganttlogger/modules/Plotter.py", line 272, in run
    self.get_mouse()
  File "/usr/local/lib/python3.7/site-packages/ganttlogger/modules/Plotter.py", line 691, in get_mouse
    current_time = self.plot_active_tab[0][0].replace(microsecond=0)
IndexError: index 0 is out of bounds for axis 0 with size 0

Plotterモードで"set_interval/select_data/xaxis_type"を選択して設定するとエラー

●環境
・Windows10
・exeを使用
●操作内容

> ganttlogger -p

・set_interval=60
・select_data=active_tab
・xaxis_type=(60, 60)

●エラー文

Traceback (most recent call last):
  File "app.py", line 49, in <module>
  File "app.py", line 42, in main
  File "modules\Plotter.py", line 250, in start
  File "modules\Plotter.py", line 406, in run_each
UnboundLocalError: local variable 'dates' referenced before assignment

変数初期化してないかも

(報告)Macでexitするときに「Y」しようと思ったらWarningが出てきて「Y」入力後の「Run, Plotter!」で「toordinal」エラーが出た

Logging is sleeping. Will you exit?(Y/n) : 2019-07-19 21:27:36.175 python[45631:3627467] WARNING: nextEventMatchingMask should only be called from the Main Thread! This will throw an exception in the future.
Run, Plotter!
Traceback (most recent call last):
  File "/anaconda3/bin/ganttlogger", line 11, in <module>
    sys.exit(main())
  File "/anaconda3/lib/python3.6/site-packages/ganttlogger/app.py", line 26, in main
    alone.run()
  File "/anaconda3/lib/python3.6/site-packages/ganttlogger/modules/Alone.py", line 47, in run
    plotter.run()
  File "/anaconda3/lib/python3.6/site-packages/ganttlogger/modules/Plotter.py", line 328, in run
    ax1.broken_barh(self.df_active_tab[k], (5+i*10, 5), facecolor="red")
  File "/anaconda3/lib/python3.6/site-packages/matplotlib/__init__.py", line 1855, in inner
    return func(ax, *args, **kwargs)
  File "/anaconda3/lib/python3.6/site-packages/matplotlib/axes/_axes.py", line 2543, in broken_barh
    xranges = self.convert_xunits(xranges)
  File "/anaconda3/lib/python3.6/site-packages/matplotlib/artist.py", line 191, in convert_xunits
    return ax.xaxis.convert_units(x)
  File "/anaconda3/lib/python3.6/site-packages/matplotlib/axis.py", line 1526, in convert_units
    ret = self.converter.convert(x, self.units, self)
  File "/anaconda3/lib/python3.6/site-packages/matplotlib/dates.py", line 1816, in convert
    return date2num(value)
  File "/anaconda3/lib/python3.6/site-packages/matplotlib/dates.py", line 452, in date2num
    return _to_ordinalf_np_vectorized(d)
  File "/anaconda3/lib/python3.6/site-packages/numpy/lib/function_base.py", line 2755, in __call__
    return self._vectorize_call(func=func, args=vargs)
  File "/anaconda3/lib/python3.6/site-packages/numpy/lib/function_base.py", line 2831, in _vectorize_call
    outputs = ufunc(*inputs)
  File "/anaconda3/lib/python3.6/site-packages/matplotlib/dates.py", line 255, in _to_ordinalf
    base = float(dt.toordinal())
AttributeError: 'datetime.timedelta' object has no attribute 'toordinal'

(報告)Macで「ganttlogger --withplot」すると「ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!」

ganttlogger --withplotを実行すると最初に下記エラーが出てくるが,その後正常にログは取れている模様.

2019-07-19 21:32:44.352 python[55294:3651992] pid(55294)/euid(0) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-07-19 21:32:44.358 python[55294:3651992] pid(55294)/euid(0) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-07-19 21:32:44.358 python[55294:3651992] pid(55294)/euid(0) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-07-19 21:32:44.358 python[55294:3651992] pid(55294)/euid(0) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-07-19 21:32:44.358 python[55294:3651992] pid(55294)/euid(0) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!
2019-07-19 21:32:44.358 python[55294:3651992] pid(55294)/euid(0) is calling TIS/TSM in non-main thread environment, ERROR : This is NOT allowed. Please call TIS/TSM in main thread!!!

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.