-
Notifications
You must be signed in to change notification settings - Fork 30
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
Can't compile "Hello world" program. Not sure why! #124
Comments
looks like _build_ext_library_dirs() is trying to get library dirs out of distutils. I'm wondering if you haven't installed pyd as a python module? in |
Thanks. So, after setting up the library paths correctly I got rid of that error. I managed to build the hello world examples for both extending and embedding python on windows 7, but I have a problem on windows 10. In particular for the extending example ( https://pyd.readthedocs.io/en/latest/extend.html ) lld-link complains with stuff like Any idea what to try next? Note that this seems to be a windows 10 issue, I managed to build everything fine on windows 7. Thanks a lot. |
I just tried it in win10 and met success. I installed dmd 2.088.1 with the vs2017 build tools. from cmd, I ran
then built and ran examples/hello
which worked, but it did output some warnings:
|
Thanks for the reply. So, one problem I have is that I can't install msvc or the build tools on the windows 10 machine without a license, as this is a corporate machine. I tried installing Windows SDK 7.1, which results in turning the errors into warnings as in your case, but I get a couple of different linker errors afterwards...
I'll try to figure this out, but meanwhile, if you have an idea why exactly (and which components of) msvc is / are needed for building these extensions (e.g. Cython doesn't need these -- it works fine with just Visual C++ for Python), please let me know. Thanks again! |
Hi, I just stared with PyD and I am trying to make it work. I have downloaded the latest release version and unzipped it in my working directory. Also I copied the two files from the documentation (the kind of "hello world" program). I am using windows 10 and python 2.7.12 so I run the command python .\setup.py pydexe but I get the following error
It appears that it tries to add two lists but the one is empty, so it breaks. Any thoughts?
The text was updated successfully, but these errors were encountered: