Comments (14)
Isn't summary just the event name? how do you even create an event without a title?
from i3-agenda.
from i3-agenda.
Are you sure? Can you reproduce it this way? Because I never enter a description and it doesn't crash for me
from i3-agenda.
Somehow I can't reproduce it now, but I am sure that's the problematic field since the error went away as soon as I put in some text there. (Previously, reinstalling did not help.)
from i3-agenda.
I read the logs you sent, seems like the error occurs in this line
https://github.com/rosenpin/i3-agenda/blob/master/i3_agenda/__init__.py#L147
The summary field is the title as far as I know, this is how it works when I use it so there shouldn't be a different in your instance (unless there was a change to the API and you have a newer version than I)
I'll look into the error when I get the time
from i3-agenda.
First. Thank you for this wonderful package. I just wanted to report that trying to install this with a fresh install through AUR i get a similar error. Credentials were created and look find. When I run with the -u flag I get.
Traceback (most recent call last):
File "/bin/i3-agenda", line 33, in <module>
sys.exit(load_entry_point('i3-agenda==1.4', 'console_scripts', 'i3-agenda')())
File "/usr/lib/python3.9/site-packages/i3_agenda/__init__.py", line 100, in main
events = getEvents(service, allowed_calendars_ids, args.maxres,
File "/usr/lib/python3.9/site-packages/i3_agenda/__init__.py", line 173, in getEvents
all.append(Event(event['summary'],
KeyError: 'summary'
I can see the .i3agenda folder is created, with the token.pickle. The .cache.txt file ends up being an empty array.
If you have any ideas please let me know. This looks like a fantastic script and I appreciate the time you took to build it.
from i3-agenda.
🐛 Just tried this out and I have the same error as @snide. This looks like a fantastic module. <3
from i3-agenda.
I looked into this and with patch in PR #48, the code no longer runs into this error. However I'm not sure if that's a complete fix. At the moment, after running the script just with the -c
flag set, I get this output:
%d/%m at 01:45 busy
from i3-agenda.
Do you literally get "%d/%m"? or the actual day/month?
I think maybe shared events really be the reason for this because I don't really have any shared events and I never ran into such issue
from i3-agenda.
@snide do you have shared events in your calendar?
Could you try @indradhanush patch?
from i3-agenda.
Do you literally get "%d/%m"? or the actual day/month?
Yes, indeed. I was confused and thought that maybe I am missing some additional configuration? I will try this out without a shared calendar and see if I am seeing a similar behaviour.
from i3-agenda.
from i3-agenda.
I checked today where the next / current event description was publicly available from the shared calendar and the description along with the timestamp was printed as the output. However, if the event description is not publicly available, I still see the %d/%m
in the output.
And on that note, I was also thinking that users may only want to use i3-agenda
as what is the next meeting in their calendar that they need to be at instead of seeing a notification for the next meeting from every shared calendar. Would it be possible to maybe optionally exclude all shared calendars? That is if the user wanted, they may set a flag like --exclude-shared=foo,bar,baz
and that would only exclude these three calendars from the events list?
Or alternatively, the opposite of the above as --include-shared=foo,bar,baz
and it only shows events from these shared calendars while excluding every other shared calendar? And if that flag is not set, i3-agenda
skips all events from shared calendars.
What do you think?
Edit: My bad. I was reading the code, and it seems this is already doable with the --ids
flag.
from i3-agenda.
Solved at #88
from i3-agenda.
Related Issues (20)
- Error after upgrade HOT 1
- Limiting Size of Summary HOT 1
- Token revoked HOT 1
- refactor
- Suddenly "Bad Request" Error HOT 3
- Long-lasting Focus/Highlight Color HOT 1
- --today event conflicts with cache HOT 1
- help message for the --date-format flag is missleading
- scrolling on the bar module navigate the events HOT 1
- AUR i3-agenda-git installation - No module named 'config' HOT 3
- i3agenda_google_token.pickle not found HOT 2
- Crashes if .i3agenda dir doesn't exist when trying to read pickle file
- module 'pyparsing' has no attribute 'downcaseTokens' HOT 1
- Google Refresh Token error HOT 2
- Google Refresh Token error HOT 1
- aur package is installing lib files in /usr/bin HOT 1
- Add option to only show events if they are within X minutes
- Refactoring HOT 4
- Looking for maintainer HOT 4
- Add CD to auto upload new versions from master to pip
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 i3-agenda.