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.

Move antlr4 dependency from python 2 to python 3

See original GitHub issue

All three microservices for Amundsen(data portal) could run on both python 2.x or python 3.x. The data ingestion library(amundsendatabuilder) could run only on python 2.x because of antlr4-python2-runtime.

It is used in ColumnUsage parser. We should explore and see if we could move the dependency to python 3(e.g. https://github.com/antlr/antlr4/tree/master/runtime/Python3)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
feng-taocommented, Mar 4, 2020

@jinhyukchang agree, @jornh, currently we are a bit behind the schedule, will remove the atlar usage code once we are free up.

Then we could start updating the repo to be py2/py3 compatible. Then only supports py3 once Lyft fully upgrades the airflow infra assuming Lyft is the only one still on py2 at this point…

1reaction
jinhyukchangcommented, Mar 4, 2020

@feng-tao Sounds good to me. May be an announcement of removal is needed for the one that is using it? (Not aware of any though)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Move antlr4 dependency from python 2 to python 3 #40 - GitHub
Synced with Tao. The best way is to support both but Antlr does not support that. Unfortunately, we could probably only upgrading this...
Read more >
Porting Python 2 Code to Python 3 — Python 3.11.1 ...
In your setup.py file you should have the proper trove classifier specifying what versions of Python you support. As your project does not...
Read more >
How I moved a library from Python 2 to 3 | by Martin Thoma
Moving the library to Python 3 was pretty interesting and I'll share here how I did ... You need to pin direct and...
Read more >
No module named antlr4 in python 2.7 - Stack Overflow
I just copied the antlr4 files from /usr/lib/python3.6/site-packages/ to /usr/lib/python2.7/site-packages/ and this solved the problem!
Read more >
antlr4-python3-runtime - PyPI
ANTLR 4.11.1 runtime for Python 3.
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