Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails with psycopg2-binary #8

Closed
ipmb opened this issue Apr 30, 2018 · 2 comments
Closed

Fails with psycopg2-binary #8

ipmb opened this issue Apr 30, 2018 · 2 comments

Comments

@ipmb
Copy link
Contributor

ipmb commented Apr 30, 2018

Running shiv -o myproject .

Here is the traceback:

Traceback (most recent call last):
  File "/Users/pete/.virtualenvs/saltdash-apCx4VH9/bin/shiv", line 11, in <module>
    sys.exit(main())
  File "/Users/pete/.virtualenvs/saltdash-apCx4VH9/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/Users/pete/.virtualenvs/saltdash-apCx4VH9/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/Users/pete/.virtualenvs/saltdash-apCx4VH9/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/pete/.virtualenvs/saltdash-apCx4VH9/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/Users/pete/.virtualenvs/saltdash-apCx4VH9/lib/python3.6/site-packages/shiv/cli.py", line 180, in main
    shared_object_map=map_shared_objects(site_packages),
  File "/Users/pete/.virtualenvs/saltdash-apCx4VH9/lib/python3.6/site-packages/shiv/cli.py", line 85, in map_shared_objects
    module_name, import_tag, extension = fullpath.parts[-1].split(".")
ValueError: too many values to unpack (expected 3)

The file causing the error is:

>>> import pdb; pdb.pm()
> /Users/pete/.virtualenvs/saltdash-apCx4VH9/lib/python3.6/site-packages/shiv/cli.py(85)map_shared_objects()
-> module_name, import_tag, extension = fullpath.parts[-1].split(".")
(Pdb) fullpath
PosixPath('/var/folders/nw/7ftbjmn50y9fy047fgyv4c3r0000gn/T/tmpdjxe_i80/site-packages/psycopg2/.dylibs/libcrypto.1.0.0.dylib')

I have a dependency on psycopg2-binary==2.7.4

@lorencarvalho
Copy link
Contributor

Hi!

Thanks for the report, @dan-blanchard actually pointed this bug out in #7
Terribly sorry, especially because the map_shared_objects stuff is actually not even used anywhere! (it's some leftover code from a feature that was half-baked!)

#9

@lorencarvalho
Copy link
Contributor

published 0.0.13 to pypi with the fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants