Comments (3)
Thanks! I’m a bit swamped right now, but I’d be happy to merge a PR that fixes this!
David
On Oct 14, 2015, at 11:34 AM, Seth Rosenblum [email protected] wrote:
When running dir2pi with symlinks and package normalization, dir2pi will fail if the same package is present with both a normalized and non-normalized package name. For instance, if I have these two wheels in a directory:
requests_oauthlib-0.4.2-py2.py3-none-any.whl # version from pypi
requests-oauthlib-0.4.2-py2.py3-none-any.whl # version created by pip2pi
running dir2pi will fail with an unhelpful error:$ dir2pi --normalize-package-names wheelhouse
Traceback (most recent call last):
File "/usr/local/bin/dir2pi", line 11, in
sys.exit(dir2pi())
File "/usr/local/lib/python2.7/dist-packages/libpip2pi/commands.py", line 268, in dir2pi
return _dir2pi(option, argv)
File "/usr/local/lib/python2.7/dist-packages/libpip2pi/commands.py", line 305, in _dir2pi
os.symlink(symlink_source, symlink_target)
OSError: [Errno 17] File exists
This should probably just print a warning and skip.—
Reply to this email directly or view it on GitHub #50.
phone: (416) 906-0403
pgp: B230230D
from pip2pi.
I'd love to see this merged. I just submitted my own PR that provides more verbose output that we've been using to track down this error when it crops up. Having an actual fix in place would be nice as well.
from pip2pi.
As a workaround, I found that using pip wheel --find-links $local_package_directory ...
seems to skip duplicate packages, even if the filename has been normalized with dashes.
I also submitted a PR to just use the filename generated by pip wheel
, which helps to lower the chances of ending up with conflicting packages.
from pip2pi.
Related Issues (20)
- Use pip compat layer
- Find sdist when project only provides wheels
- Create index.html files instead of autoindexing? HOT 4
- Handling unruly wheel filenames HOT 2
- Add json api output to local server
- module 'cgi' has no attribute 'escape' HOT 4
- dir2pi with folders and subfolders in packages/
- bug: symbol link "../../" on windows is incorrect HOT 1
- Bug on Windows: A required privilege is not held by the client
- oldest supported numpy dependency not downloaded for scikit-bio
- DEPRECATION warning ahead of pip 22.2
- Can a .tar.gz source file be published to pypi?
- Fails to install existing package in local package index HOT 1
- Wheels with 5 dashes not split correctly in file_to_package HOT 4
- create a repository for other OSs HOT 3
- I install scikit-learn==0.19.1 error report, other no problem HOT 13
- pip 19.3 breaks pip2pi 0.8.1 HOT 5
- cgi.escape was removed HOT 2
- Tag 0.8.1 missing
- Error if -r used without target directory
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pip2pi.