mabl / PyPylon

An experimental python wrapper around the Basler Pylon 5 library
BSD 3-Clause "New" or "Revised" License
53 stars 34 forks source link

Installation pb on Windows #28

Open MathieuPau opened 7 years ago

MathieuPau commented 7 years ago

Hi, I've been trying for several hours to make it work but I still face the same problem in the end, when running the python setup.py develop command. I still get in the end the 2 following errors:

cython\factory.cpp(3858): error C2530: '__pyx_t_1': references must be initialized
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2

By looking in the reported issues, I did not see someone having the same trouble for the first error message. On the second error, I tried launching the command from a MVS 15.0 command prompt but it did not solve the problem.

Any idea?

AkhilAKrasH commented 7 years ago

Hi, I used python setup.py build_ext --inplace command...

jackcalz commented 7 years ago

I'm getting a similar error, and doing the different command didn't work. Here's the command prompt text: 'cython\version.cpp(446): fatal error C1083: Cannot open include file: 'pylon/PylonVersionNumber.h': No such file or directory'

'error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2'

@AkhilAKrasH

eFirer commented 7 years ago

Hi all,

I solved the first problem by using the "Developer Command Prompt for VS2017" instead of "normal" CMD.

Now I have the following problem: C:\progs\pylon5\Development\lib\Win32\PylonC_MD_BCC55.lib : fatal error LNK1136: invalid or corrupt file error: command 'C:\progs\VisualStudio2017\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\link.exe' failed with exit status 1136

Which Pylon Version are you using? I tried the three different 5er releases. I also tried Python2.7 and Python3.6 with the same error. (I changed the setup.py to Win32, because that is the python version I use. But I even can't get it to work with an 64bit version (fatal error LNK1120: 38)) I tried it on a Windows 10 and Windows 7 machine.

Any suggestions?

nicedayr commented 6 years ago

@eFirer

Hey, I'm getting the same issue:

''C:\Program Files\Basler\pylon 5\Development\lib\Win32\PylonC_MD_BCC55.lib : fatal error LNK1136: invalid or corrupt file''

Did you ever resolve it?

mechealww2 commented 5 years ago

Is there any solution for windows10 now?I got the same problem like MathieuPau.