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.

Pipreqs does not pick up on google-cloud-translate

See original GitHub issue

Pipreqs does not seem to be able to infer the google-cloud-translate package from the import that is suggested in the package instructions (from google.cloud import translate).

Operating system and version

WSL 1.0 running Ubuntu on Windows 10 Python 3.6.9

Steps to reproduce

  1. Create new python file

  2. Import google translate via:

from google.cloud import translate
  1. run pipreqs
  2. The package will not be found in the requirements.txt

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:7

github_iconTop GitHub Comments

4reactions
yannick-vinkesteijncommented, Oct 19, 2021

For me all imports from google.* are not recognized.

1reaction
celian-garciacommented, Feb 11, 2022

Yes I confirm that every package with ‘.’ in the name is not discovered. For example it is the case for the opentelemetry SDK as well. Reading rapidly the code, I found maybe some lines to change to fix that. Unfortunately, I don’t have time to check and propose a Pull Request … I put here the result of my investigation if someone is interested.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Specifying dependencies in Python | Cloud Functions ...
There are two ways to specify dependencies for Cloud Functions written in ... This approach is useful if your dependency is not available...
Read more >
pipreqs - Bountysource
Pipreqs does not seem to be able to infer the google-cloud-translate package from the import that is suggested in the package instructions (from...
Read more >
google.cloud translate doesn't work in Docker (Python)
I'm new to docker. I've a class where I run google translate API. It runs on local. ... Any ideas? ... Thanks! Updated!...
Read more >
pipreqs - PyPI
pip freeze saves all packages in the environment including those that you don't use in your current project (if you don't have virtualenv)....
Read more >
How to Create Requirements.txt File in Python - Javatpoint
Pipreqs is one of the most efficient and a straightforward tool to use, which doesn't requires you to create any virtual environment. Therefore...
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