question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Probleme datetime module

See original GitHub issue
Q A
Version x
i3wm 4.15.0.1
bumblebee https://aur.archlinux.org/packages/bumblebee-status/
task 2.5.1.1

Support Question

Hello, I use bumblebee-status, I encounter a problem with a module of the one if. if i use datetime (time/date/datetime) my bar display error (1).

If i run in my termninal bumblebee-status with my bar setting, I have an import error from taskwarrior that I still installed via pip. If anyone has a lead, I thank you in advance. If any information is missing I’m listening.

[ STATUS COMMAND ] status_command bumblebee-status -m cpu disk:root memory datetime time.format="%H:%M CW %V" date.format="%A, %d %b %Y" -t solarized-powerline

[ ERROR ] Error: status_command process exited unexpectedly (exit 1)

[ TRY TO TERMINAL]

purple% bumblebee-status -m cpu disk:root memory datetime mpd -p root.path=/ time.format="%H:%M CW %V" date.format="%A, %d %b %Y" -t solarized-powerline


failed to import taskwarrior: argument of type 'FileNotFoundError' is not iterable
Traceback (most recent call last):
  File "/usr/bin/bumblebee-status", line 74, in <module>
    main()
  File "/usr/bin/bumblebee-status", line 46, in main
    inp=inp,
  File "/usr/share/bumblebee-status/bumblebee/engine.py", line 143, in __init__
    self.load_modules(config.modules())
  File "/usr/share/bumblebee-status/bumblebee/engine.py", line 198, in load_modules
    mod = self._load_module(module["module"], module["name"])
  File "/usr/share/bumblebee-status/bumblebee/engine.py", line 240, in _load_module
    "config": self._config
  File "/usr/share/bumblebee-status/bumblebee/modules/datetime.py", line 37, in __init__
    lcl = self.parameter("locale", ".".join(l))
TypeError: sequence item 0: expected str instance, NoneType found```

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
fredjcommented, Jun 7, 2018

Hi, maybe this issue is already fixed with #265

1reaction
amanAnkhcommented, Jun 9, 2018

After use -p it works fine ! Thank you for all your messages, i close the issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python datetime module problems - Stack Overflow
Try to change import datetime. with from datetime import datetime. credits: https://stackoverflow.com/a/19231474/12770606.
Read more >
[Example code]-Python datetime module problems
I'm using the datetime module in python3.7. When I run it from terminal it throws an error: File "/home/user/Desktop/Yazılım/datetime.py", line 2, ...
Read more >
Issue 44831: Inconsistency between datetime.now() and ...
In short: - The time module imported in datetime.datetime.now() seems to measure time slightly differently than the time module imported by ...
Read more >
Be Careful when Using Python Datetime Module
I was struggling with a bug for a while with Python datetime until I found the cause of the bug was using naive...
Read more >
If Python DateTime Can't Help, Try Calendar Module
Python datetime cannot achieve something like leap year and first/last day of month, while Calendar module can do that as well as day...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found