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 to Python 3: dependencies status

See original GitHub issue

Thanks to the work of @cclauss our code is (more) ready for Python 3. I also ran caniusepython3 on our requirements files and the results are very encouraging:

$ caniusepython3 --requirements requirements.txt
Finding and checking dependencies ...

You need 5 projects to transition to Python 3.
Of those 5 projects, 4 have no direct dependencies blocking their transition:

  chromelogger
  flask-sslify
  python-geoip (which is blocking python-geoip-geolite2)
  restrictedpython
  • python-geoip has a Python 3 compatible alternative (python-geoip-python3)
  • Latest master version of flask-sslify is marked as Python 3 compatible, but no new version was released for a long time.
  • chromelogger is unknown but we can either drop it or update to support Python 3 (~140 lines of code).
  • restrictedpython has an unreleased version 4 that supports Python 3.
$ caniusepython3 --requirements requirements_all_ds.txt
Finding and checking dependencies ...

You need 1 project to transition to Python 3.
Of that 1 project, 1 has no direct dependencies blocking its transition:

  pyhive

I’m not sure why pyhive is marked as not supported, because it is. Maybe we just need to update the version.

$ caniusepython3 --requirements requirements_dev.txt
Finding and checking dependencies ...

You need 1 project to transition to Python 3.
Of that 1 project, 1 has no direct dependencies blocking its transition:

  pytest-watch

I’m not sure about the state of pytest-watch, but we can always remove it.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jezdezcommented, May 15, 2019

I think it counts python-geoip-geolite2 and python-geoip individually:

caniusepython3 -p python-geoip-geolite2
Finding and checking dependencies ...

You need 2 projects to transition to Python 3.
Of those 2 projects, 1 has no direct dependencies blocking its transition:

  python-geoip (which is blocking python-geoip-geolite2)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Porting Python 2 Code to Python 3 — Python 3.11.1 ...
Use caniusepython3 to find out which of your dependencies are blocking your use of Python 3 ( python -m pip install caniusepython3 )....
Read more >
Python 2.7 to 3.X Migration Guide - STX Next
Read our guide on how to migrate your app from Python 2.7 to Python 3.6. ... full Python 3 compatibility, but the issue...
Read more >
How I moved a library from Python 2 to 3 | by Martin Thoma
Make sure that you document the current state of the migration to Python 3. Typically this is done via an issue tracker, e.g....
Read more >
How to Best Manage Python Dependencies - ActiveState
There are several different approaches to dealing with dependencies in Python. In this article, I'll go over the pros and cons of some...
Read more >
Upgrading To Python 3 And Moving Away From Legacy
Why do we want to migrate to Python 3? ... tool to find projects containing Python code and dependencies that are not Python...
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