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
First argument to ctypes.CDLL can be None #2098
Conversation
Disclaimer: I haven't tested this on Windows, nor have I actually ran the tests... but I assume that Travis will do that for me. :-D |
def __init__(self, name, *args, **kwargs): | ||
def _frozen_name(name): | ||
if name is not None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, would name=''
be an valid input? I assume if name:
would be a better test here.
(When changing this, please remove the trailing whitespace in line 125, too. Thanks.)
Thanks for this fix. I'll merge it when you worked on the one line-commend I had. |
Comments addressed. |
Thanks for the quick update (and for the hook of course). |
Help! This breaks on Windows -- see https://ci.appveyor.com/project/matysek/pyinstaller/build/1232/job/ddjsih612lr1fl84#L1386, for example. Would you fix this? |
I'm currently on vacation, no access to an actual computer until August 7. —You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread. |
This Appveyor really gets me on my nerves. It always breaks for reasons beyond our scope, so yoe never know if ones code will really introduce a bug or it just appveror again. @bjones1 I'll disable this check for windows for now. |
@htgoebel, I agree -- Appveyor has been very frustrating in the past. I'm hoping that recent changes will help make it more useful; in the recent past, it's:
The biggest problem right now IMHO is speed -- it takes too long to get feedback, particularly yesterday where for some reason it was backed up almost 24 hours. Currently, it's build queue is almost empty, so hopefully that will be getter. It's working...frustrating at times, but working... |
@virtuald, would you work on fixing this? It's still a problem for Windows. |
@htgoebel, is there any reason not to merge the fix-2098-on-windows branch? I'd like to get Appveyor working again, and this is a blocker. |
@bjones1 pardon, which fix-2098-on-windows branch? |
Oh, sorry, fell off my radar. I can do something about this tonight if someone doesn't beat me to it. |
@virtuald, great, thanks! @htgoebel, this one: https://github.com/pyinstaller/pyinstaller/tree/fix-2098-on-windows. |
@bjones1 I don’t know why this branch is not merged. You worked on it, as far as I can see. Is there any reason for not merging it? |
Great! I'll merge. |
@bjones1 What exactly is the problem on Windows? It appears that 1ec2473 disabled the test on Windows. Or is there another issue? I get this on linux (Python 2.7.12):
I get this on Windows (Python 2.7.12 under wine, but I assume it's the same):
Should we duplicate the behavior on Windows? |
I see something very similar:
So, it looks like the behavior of |
If you try to wrap pip with pyinstaller on Ubuntu 14.04, it fails because it calls
ctypes.CDLL(None)
(see https://github.com/pypa/pip/blob/8.1.2/pip/pep425tags.py#L188).This fixes that and adds a test.