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.

pip installation is broken

See original GitHub issue

After version 6.0.1 the pip install timezonefinder creates files and folders from timezonefinder repository and site-packages looks like this:

    venv/bin/timezonefinder
    venv/lib/python3.8/site-packages/.editorconfig
    venv/lib/python3.8/site-packages/.pre-commit-config.yaml
    venv/lib/python3.8/site-packages/CHANGELOG.rst
    venv/lib/python3.8/site-packages/CONTRIBUTING.rst
    venv/lib/python3.8/site-packages/LICENSE
    venv/lib/python3.8/site-packages/Makefile
    venv/lib/python3.8/site-packages/README.rst
    venv/lib/python3.8/site-packages/inside_poly_extension/inside_polygon_int.c
    venv/lib/python3.8/site-packages/inside_poly_extension/inside_polygon_int.h
    venv/lib/python3.8/site-packages/parse_data.sh
    venv/lib/python3.8/site-packages/scripts/*
    venv/lib/python3.8/site-packages/tests/*
    venv/lib/python3.8/site-packages/timezonefinder-6.1.0.dist-info/*
    venv/lib/python3.8/site-packages/timezonefinder/*
    venv/lib/python3.8/site-packages/tox.ini

This breaks other imports. For example I have a folder scripts and my command from scripts.my_module import my_object does not work anymore.
Expected behavior: everything is installed under folder venv/lib/python3.8/site-packages/timezonefinder/

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
jannikmicommented, Aug 18, 2022

Thanks for reporting this. It seems like that is how poetry based packaging works. I will check how to change that behavior.

0reactions
Friptickcommented, Sep 14, 2022

Tried that already, see above. Just tried again, with --no-cache-dir to be sure. Installing timezonefinder pulls in cffi 1.15.1, as expected.

Then… Same error on building wheel. All exactly the same unfortunately.

Read more comments on GitHub >

github_iconTop Results From Across the Web

My pip is broken on Windows, how can I fix it? - Stack Overflow
Download get-pip.py and "Save As" the file using right-click. · Open a command prompt as an administrator · cd to the path where...
Read more >
How To Fix PIP Install Not Working? - TechNewsToday
The most common reasons for issues with PIP installations is either that an incorrect PIP path is added to the PATH system variable,...
Read more >
4 Ways to Fix the Pip Install Not Working Issue
How to Fix the Pip Install Not Working Issue · Open Command Prompt. · Execute the command “python -v”. It will tell you...
Read more >
python pip broken on ubuntu
This is a known issue with the default version of pip in Ubuntu 14.04 and an updated requests package. Duplicate of askubuntu.com/questions/ ...
Read more >
Fixing Broken Pip | Voice of the DBA
As a result, I need to get pip reinstalled. This post shows how to get this, with a quick curl and python script...
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