GithubHelp home page GithubHelp logo

Comments (3)

ragerin avatar ragerin commented on June 2, 2024 1

Okay, so I think you should be able to wrap the urgency variables inside
the str() function, thus explicitly converting the values to a string. If
not, maybe implementing str method in the Urgency global class. Are you
using python2 or 3?

I am not at my pc, but hopefully I will be soon!
On Jun 24, 2016 19:40, "Naved Islam" [email protected] wrote:

I was testing the master branch for the first time - basically your fork
with just the OSX removed - and got this error:

Traceback (most recent call last):
File "eyecare.py", line 32, in
s.call([command, warning_urgency, expiration, warning_title, warning_message])
File "/home/naved/anaconda3/lib/python3.5/subprocess.py", line 560, in call
with Popen(_popenargs, *_kwargs) as p:
File "/home/naved/anaconda3/lib/python3.5/subprocess.py", line 950, in init
restore_signals, start_new_session)
File "/home/naved/anaconda3/lib/python3.5/subprocess.py", line 1483, in _execute_child
restore_signals, start_new_session, preexec_fn)
TypeError: Can't convert 'Urgency' object to str implicitly

To be honest, I don't understand what it's saying; maybe it's something
with my Python setup? I tried removing the warning_urgency and
success_urgency from the s.call, and then it worked fine. Any ideas?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#6, or mute the
thread
https://github.com/notifications/unsubscribe/ACHlR3YE9vBP_qUMQlmAWr-6GIS-A3V5ks5qPBZxgaJpZM4I9-ZW
.

from eyecare-daemon.

ragerin avatar ragerin commented on June 2, 2024 1

Hmm, I think I need to run the code myself to see. :-) I will hopefully be
at my computer tomorrow evening.

Don't worry, let's keep up the communication! This is the point of
collaboration!

I'm new to all this too, so I'm learning with you! ;-)

We should put up a Slack channel for talking. :-) I'll try set one up from
my mobile and get back to you in a bit.
On Jun 25, 2016 16:37, "Naved Islam" [email protected] wrote:

I was able to fix that by wrapping the varibles in str() from eyecare.py
like you said.

Sadly, this creates another issue: now the error message is Invalid
number of options. Some searching brought up that this
http://stackoverflow.com/questions/8850995/notify-send-cause-invalid-number-of-options
similar problem, but I don't see how the answer there helps us :(

But anyway, I'll keep trying stuff, and sorry to constantly bother you
haha. Take care!


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#6 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ACHlR6SW-Jq8V4z86R8EQd7feScBLM3Kks5qPT0sgaJpZM4I9-ZW
.

from eyecare-daemon.

mr-islam avatar mr-islam commented on June 2, 2024

I was able to fix that by wrapping the varibles in str() from eyecare.py like you said.

Sadly, this creates another issue: now the error message is Invalid number of options. At least now it's not a problem with Python. Some searching brought up that this similar problem, but I don't see how the answer there helps us :(

But anyway, I'll keep trying stuff, and sorry to constantly bother you haha. Take care!

from eyecare-daemon.

Related Issues (3)

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.