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.

install_requires should include `phonenumbers`

See original GitHub issue

error code

import phonenumbers
ModuleNotFoundError: No module named 'phonenumbers'

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
stefanfouliscommented, Jun 4, 2018

We’ve dropped the conditional logic in setup.py to use phonenumberslight on the master branch. It will be part of the next release.

0reactions
moggers87commented, Sep 15, 2017

It should also be noted that the current wheel for phonenumbers lite is still over 2MB (because it contains all the geodata): https://pypi.python.org/pypi/phonenumberslite/8.8.1

pip prefers wheel over source distributions, so I doubt anyone is actually installing the stripped down package anyway!

edit: reported upstream: https://github.com/daviddrysdale/python-phonenumbers/issues/105

Read more comments on GitHub >

github_iconTop Results From Across the Web

Any reason setup.py install_requires should include setuptools?
My code installs and executes fine without it. I may be mistaken, but I think the purpose of the install_requires list is to...
Read more >
A Practical Guide to Using Setup.py - GoDataDriven
The key to setting up your project is the setup.py file. In this blog I'll go into the details of this file. Where...
Read more >
setup.py vs setup.cfg in Python - Towards Data Science
Discussing about setuptools and the difference between setup.py, setup.cfg and pyproject.toml files in Python to manage dependencies and distribute ...
Read more >
How to Package Python dependencies with PIP setuptools
install_requires is a section within the setup.py file in which you need to input a list of the minimum dependencies needed for a...
Read more >
install_requires vs requirements files
install_requires is a setuptools · setup.py keyword that should be used to specify what a project minimally needs to run correctly. When the...
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