Comments (8)
c:\git\toggl-cli>python toggl.py
Traceback (most recent call last):
File "toggl.py", line 1348, in <module>
CLI().act()
File "toggl.py", line 1118, in act
Logger.info(TimeEntryList())
File "toggl.py", line 272, in info
print("%s%s" % (unicode(msg), unicode(end))),
NameError: name 'unicode' is not defined
Looks like this is due to f3dd093. @martinm76 do you need those unicode()
s in there? They are specific to Python 2. I took a look at using six.u()
as a fix but it relies on the string passed being unencoded ASCII only...
from toggl-cli.
My assumption that Python 3 was to be supported was based on the presence of six, however there are still further breaks that occur within the code against Python 3, and the current singleton pattern seems to be ignored by Python 3 with classes being instantiated every call (and therefore executing their init every call).
@drobertadams what is the expectation of Python 3 support?
from toggl-cli.
I haven't given Python 3 support any thought at all. I suppose some day the
project would have to migrate, but I'm not too interested in doing that. If
someone wants to port to Python 3, I'd be happy to help, but I can't lead
that effort.
On Wed, Nov 25, 2015 at 9:14 PM Stafford Williams [email protected]
wrote:
My assumption that Python 3 was to be supported was based on the presence
of six https://pypi.python.org/pypi/six, however there are still
further breaks that occur within the code against Python 3, and the current
singleton pattern seems to be ignored by Python 3 with classes being
instantiated every call (and therefore executing their init every call).@drobertadams https://github.com/drobertadams what is the expectation
of Python 3 support?—
Reply to this email directly or view it on GitHub
#53 (comment)
.Dr. Robert Adams
School of Computing and Information Systems
Grand Valley State University
from toggl-cli.
I am unable to lead such an effort also - this is the first time I've written any python and I don't really understand the Python 2/3 thing. Perhaps this issue should be re-opened to communicate that the work is up for grabs?
from toggl-cli.
If anyone wants to tackle Python 3 support, go ahead.
from toggl-cli.
@drobertadams what is the minimum version of python 2 expected to be supported?
from toggl-cli.
2.7 (?)
On Tue, Dec 1, 2015 at 6:31 PM Stafford Williams [email protected]
wrote:
@drobertadams https://github.com/drobertadams what is the minimum
version of python 2 expected to be supported?—
Reply to this email directly or view it on GitHub
#53 (comment)
.Dr. Robert Adams
School of Computing and Information Systems
Grand Valley State University
from toggl-cli.
Implemented in #76
from toggl-cli.
Related Issues (20)
- Autocomplete: Compdef: command not found HOT 2
- Is it possible to pass argument for billable/non billable ? HOT 4
- No way to disable billable when starting an issue HOT 2
- Update API Url Domain to api.track.toggl.com HOT 3
- Test failures
- Some more CLI example, please HOT 1
- Project Add command incorrectly claims created projects are public by default
- CLI should not show entry is running when time entry has stop == start HOT 3
- sum command doesn't respect configured timezone HOT 1
- Option to set task? HOT 4
- Rework CLI completion with new Click 8.0 release HOT 1
- Unable to find user for TimeEntry HOT 1
- Add `--colors=always` option for passing to `click` HOT 2
- Authentication fail on "ls" command -- but works for other commands
- How do I find entries without project? HOT 1
- Install completion to $ZDOTDIR/.zshrc HOT 4
- toggl projects add -n "asd asd" --color 123 HOT 3
- Flag to quickly do `toggl stop -p $TIME; toggl start -s $TIME ...` HOT 3
- API v8 is being deprecated and shut down by toggle HOT 12
- [Feature request] rewrite in javascript HOT 1
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 toggl-cli.