FIXED IN PR #6 - Support Python 3.x
See original GitHub issueIt appears that j2cli uses Python 2.x-only constructs in places (e.g., use of basestring
, use of non-unicode strings, etc.):
% virtualenv --python=python3.4 venv
...
% ./venv/bin/pip install j2cli
...
% ./venv/bin/j2cli /dev/null
File ".../venv/bin/j2", line 9, in <module>
load_entry_point('j2cli==0.3.1.post0', 'console_scripts', 'j2')()
File ".../venv/lib/python3.4/site-packages/j2cli/cli.py", line 124, in main
sys.argv[1:]
File ".../venv/lib/python3.4/site-packages/j2cli/cli.py", line 107, in render_command
environ
File ".../venv/lib/python3.4/site-packages/j2cli/context.py", line 173, in read_context_data
return _parse_env(environ)
File ".../venv/lib/python3.4/site-packages/j2cli/context.py", line 107, in _parse_env
if isinstance(data_string, basestring):
NameError: name 'basestring' is not defined
Issue Analytics
- State:
- Created 8 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Python Release Python 3.6.0
Python 3.6.0. Release Date: Dec. 23, 2016. Note: The release you are looking at is Python 3.6.0, the initial feature release for the...
Read more >Is there official guide for Python 3.x release lifecycle?
Specifically Python 3.3 will have security fixes until 2017-09-29. ... updates approximately every 4-6 months for approximately 18 months.
Read more >6.x Series — IPython 8.7.0 documentation
0¶. Miscellaneous bug fixes and compatibility with Python 3.7. Autocompletion fix for modules with out __init__.py PR ...
Read more >python/cpython: The Python programming language - GitHub
For information about building Python's documentation, refer to Doc/README.rst. Converting From Python 2.x to 3.x. Significant backward incompatible changes ...
Read more >6 New Awesome Features in Python 3.10 - Built In
Although syntax errors are easy to fix once you have a grasp on Python and programming, sometimes we need error messages that help...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
this base string issue still seems to be there?
@kolypto please merge