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.

FIXED IN PR #6 - Support Python 3.x

See original GitHub issue

It 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:closed
  • Created 8 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
Data-dronecommented, Jan 17, 2018

this base string issue still seems to be there?

2reactions
j0hnsmithcommented, Nov 18, 2016

@kolypto please merge

Read more comments on GitHub >

github_iconTop 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 >

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