Giter Club home page Giter Club logo

alfred-cal's People

Contributors

owenwater avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

alfred-cal's Issues

Crashes on Big Sur

When the keyword is entered, it shows a 'Python Quit Unexpectedly' error. Nothing works thereafter.

Screenshot 2020-12-22 at 12 19 23 PM

Not sure if it's a problem at my end or the Workflow needs an update after 5 years.

Undoubtedly the best calendar app I came across so far.

Workflow saves an empty "settings.json" file, and stops working.

Every once in a while, the workflow saves the settings.json file as an empty file / 0 bytes. When this happens, the workflow does not work anymore.

Usually (but not every time), the error occurs when I enter some invalid input, like "cal <fweiuf" , then I add/remove characters from the query string. The error might also occur when I type the input a bit too fast.

When I run the main script via iPython:

In [1]: from main import Main

In [2]: main = Main("")

In [3]: main.execute()
16:18:58 workflow.py:2070 DEBUG    Workflow version : 1.2.1
16:18:58 workflow.py:1473 DEBUG    Reading settings from `/Users/XXXXX/Library/Application Support/Alfred 2/Workflow Data/zmin.calendar/settings.json` ...
16:18:58 workflow.py:2088 ERROR    No JSON object could be decoded
Traceback (most recent call last):
  File "workflow/workflow.py", line 2081, in run
    func(self)
  File "main.py", line 39, in main
    self.init_settings()
  File "main.py", line 29, in init_settings
    self.minus = self.wf.settings.setdefault('minus', self.minus_default)
  File "workflow/workflow.py", line 1475, in settings
    self._default_settings)
  File "workflow/workflow.py", line 900, in __init__
    self._load()
  File "workflow/workflow.py", line 911, in _load
    for key, value in json.load(file_obj, encoding='utf-8').items():
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 290, in load
    **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 351, in loads
    return cls(encoding=encoding, **kw).decode(s)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 365, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 383, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
16:18:58 workflow.py:2106 DEBUG    Workflow finished in 0.009 seconds.
An exception has occurred, use %tb to see the full traceback.

.

And the UI shows:

screen shot 2015-08-05 at 16 11 11

When I edit the settings.json file to contain an empty JSON object, the workflow starts working again.

Error

Just tried the workflow and got this error:

Starting debug for 'Productivity Time Calendar'

[ERROR: alfred.workflow.input.scriptfilter] Code 1: 10:19:43 workflow.py:1945 DEBUG    Workflow version : 1.1.0
10:19:43 workflow.py:1951 ERROR    u'alfred.theme.lightlarge'
Traceback (most recent call last):
  File "workflow/workflow.py", line 1946, in run
    func(self)
  File "main.py", line 37, in main
    texts = cal.get_weeks_text(year, month)
  File "cal.py", line 33, in get_weeks_text
    format = Format(self.key, self.path)
  File "format.py", line 14, in __init__
    self.font = self._load_font(key, path)
  File "format.py", line 18, in _load_font
    font = pref['themes'][key]['resultTextFont']
KeyError: u'alfred.theme.lightlarge'
10:19:43 workflow.py:1969 DEBUG    Workflow finished in 0.106 seconds.
[ERROR: alfred.workflow.input.scriptfilter] Code 1: 10:19:46 workflow.py:1945 DEBUG    Workflow version : 1.1.0
10:19:46 workflow.py:1951 ERROR    u'alfred.theme.lightlarge'
Traceback (most recent call last):
  File "workflow/workflow.py", line 1946, in run
    func(self)
  File "main.py", line 37, in main
    texts = cal.get_weeks_text(year, month)
  File "cal.py", line 33, in get_weeks_text
    format = Format(self.key, self.path)
  File "format.py", line 14, in __init__
    self.font = self._load_font(key, path)
  File "format.py", line 18, in _load_font
    font = pref['themes'][key]['resultTextFont']
KeyError: u'alfred.theme.lightlarge'
10:19:46 workflow.py:1969 DEBUG    Workflow finished in 0.372 seconds.
[ERROR: alfred.workflow.input.scriptfilter] Code 1: 10:19:46 workflow.py:1945 DEBUG    Workflow version : 1.1.0
10:19:46 workflow.py:1951 ERROR    u'alfred.theme.lightlarge'
Traceback (most recent call last):
  File "workflow/workflow.py", line 1946, in run
    func(self)
  File "main.py", line 37, in main
    texts = cal.get_weeks_text(year, month)
  File "cal.py", line 33, in get_weeks_text
    format = Format(self.key, self.path)
  File "format.py", line 14, in __init__
    self.font = self._load_font(key, path)
  File "format.py", line 18, in _load_font
    font = pref['themes'][key]['resultTextFont']
KeyError: u'alfred.theme.lightlarge'
10:19:46 workflow.py:1969 DEBUG    Workflow finished in 0.107 seconds.

Problem on OS Catalina

Hello,

Since I updated Alfred with Catalina, the calendar doesn't work properly...

For instance, if I create a new event on a specific day via Alfred, it'll create it on lots of days instead...

I haven't tried other functions as I don't wish to create a mess in my calendar...

Note that the calendar works perfectly fine on its own...

I really wish you can fix this as I'm a handicap person and using this save me lots of time and energy...

Regards,

Raphaël.

Error in workflow zmin.calendar

I just tried the workflow this morning and I got this error:

Starting debug for 'Calendar'
 [ERROR: alfred.workflow.input.scriptfilter] Code 1: 09:14:33 workflow.py:1945 DEBUG    Workflow version : 1.2.0
09:14:33 workflow.py:1951 ERROR    No JSON object could be decoded
Traceback (most recent call last):
  File "workflow/workflow.py", line 1946, in run
    func(self)
  File "main.py", line 37, in main
    self.init_settings()
  File "main.py", line 27, in init_settings
    self.minus = self.wf.settings.setdefault('minus', self.minus_default)
  File "workflow/workflow.py", line 1378, in settings
    self._default_settings)
  File "workflow/workflow.py", line 802, in __init__
    self._load()
  File "workflow/workflow.py", line 813, in _load
    for key, value in json.load(file_obj, encoding='utf-8').items():
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 290, in load
    **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 351, in loads
    return cls(encoding=encoding, **kw).decode(s)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 365, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 383, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
09:14:33 workflow.py:1969 DEBUG    Workflow finished in 0.429 seconds.

Mac Big Sur

This is my favorite Alfred workflow!!! Unfortunately, it stopped working when I installed OSX 11. I know that you aren't maintaining it anymore but I'm wondering if you have any advice on how to make it work on Big Sur.

Importing old 3rd party python library

Attempting to use or install this Workflow on Alfred 5 presents the error:

"The selected Workflow contains a very old 3rd party python library incompatible with macOS. Click here to find out how to update."

When you attempt to run the Fixum Workflow, it does not appear to have any effect.

Next Steps:

  • Which library is macOS / Alfred disallowing?
  • Is the functionality essential? Can we just remove the library?
  • Can we replace it with another library that has the same features?

Current Day not lining up

The header and the days do not line up, but the current day with the star really messes it up. But, this is overall a very cute workflow. Thanks.
2015-01-01_11-03-14

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.