Build fails to find _pcbnew.pyd
C:\kicad-
-- KiCad-Winbuilder V3.4
-- Build type: Release
-- Checking for environment problems
-- Checking for installed Bazaar
-- Checking for wxPython
-- Found wxPython
-- Downloading Latest Library Archive...
-- Checking for KiCad Documentation latest source
-- KiCad Documentation is up-to-date.
-- Checking for BZIP2
-- Checking for GLEW
-- Found GLEW
-- Checking for Cairo
-- Found Cairo
-- Checking for KiCad latest source code
-- Updating KiCad source code from bazaar head
-- Cleaning PCBNEW Python files to ensure good build...
-- Using KiCad Options:
-- -DKICAD_
-- -DKICAD_
-- -DKICAD_
-- -DPYTHON_
-- -DBUILD_
--
Configuring KiCad ( Release )
-- Building Release version of KiCad revision: 5215
-- Installing KiCad locally. Use RunKiCad.bat to run this version
CMake Error at KiCadWinbuilder
file COPY cannot find
"C:/kicad-
Press any key to continue . . .
make_Release_
C:\kicad-
mingw32-make: *** No targets specified and no makefile found. Stop.
cmake_Release_
-- Check for installed OpenGL -- found
-- Found Glew: C:/kicad-
-- Check for installed GLEW -- found
-- Check for installed Cairo -- found
-- Check for installed Python Interpreter -- found
-- Python module install path: Lib/site-packages
-- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_
-- Bazaar version control system version found.
-- Kicad Bazaar build version: (2014-10-22 BZR 5215)
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- WARNING: Doxygen not found - doxygen-docs (Source Docs) target not created
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- WARNING: Doxygen not found - doxygen-docs (Source Docs) target not created
-- Configuring incomplete, errors occurred!
See also "C:/kicad-
See also "C:/kicad-
I was thrilled to find this project because I have all sorts of conflicting stuff on this computer. I was hoping it would be totally self-contained but it seems to be fighting with something else. Any idea where to start troubleshooting this?
Mike
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Michael Wilt
- Solved:
- Last query:
- Last reply:
Related bugs
Related FAQ:
None Link to a FAQ
Revision history for this message
|
#1 |
Same here
C:\kicad-
-- KiCad-Winbuilder V3.4
-- Build type: Release
-- Checking for environment problems
-- Checking for installed Bazaar
-- Checking for wxPython
-- Downloading wxPython
-- Decompressing wxPython
-- Downloading Latest Library Archive...
-- Checking out KiCad Documentation source (BZR head)
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
-- Checking for BZIP2Build phase:Apply phase:adding file 0/9323
-- Downloading BZIP2 Source
-- Building BZIP2 Library
-- Checking for GLEW
-- Downloading
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
-- Building GLEW/s \ Build phase:Apply phase:adding file 10/17
-- GLEW build finished
-- Checking for Cairo
-- Downloading cairo-dev_
-- Decompressing Cairo
-- Checking out KiCad source code (BZR head)
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
-- Cleaning PCBNEW Python files to ensure good build...e 50/604
-- Using KiCad Options:
-- -DKICAD_
-- -DKICAD_
-- -DKICAD_
-- -DPYTHON_
-- -DBUILD_
--
Configuring KiCad ( Release )
-- Building Release version of KiCad revision: 5216
-- Installing KiCad locally. Use RunKiCad.bat to run this version
CMake Error at KiCadWinbuilder
file COPY cannot find
"C:/kicad-
Press any key to continue . . .
-------
cmake release stdout.log
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: C:/kicad-
-- Check for working C compiler: C:/kicad-
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/kicad-
-- Check for working CXX compiler: C:/kicad-
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_
-- Performing Test OpenMP_
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_
-- Performing Test OpenMP_
-- Found wxWidgets: C:/kicad-
-- Check for installed OpenGL -- found
-- Found Glew: C:/kicad-
-- Check for installed GLEW -- found
-- Found CAIRO: C:/kicad-
-- Check for installed Cairo -- found
-- Found BZip2: C:/kicad-
-- Looking for BZ2_bzCompressInit in C:/kicad-
-- Looking for BZ2_bzCompressInit in C:/kicad-
-- Performing Test GXX_HAS_
-- Performing Test GXX_HAS_
-- Performing Test GXX_HAS_
-- Performing Test GXX_HAS_
-- Looking for malloc.h
-- Looking for malloc.h - found
-- Looking for iso646.h
-- Looking for iso646.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for strtok_r
-- Looking for strtok_r - not found
-- Looking for malloc
-- Looking for malloc - found
-- Looking for math.h
-- Looking for math.h - found
-- Looking for C++ include cmath
-- Looking for C++ include cmath - found
-- Looking for asinh
-- Looking for asinh - found
-- Looking for acosh
-- Looking for acosh - found
-- Looking for atanh
-- Looking for atanh - found
-- Performing Test HAVE_CMATH_ISINF
-- Performing Test HAVE_CMATH_ISINF - Success
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - not found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for getc_unlocked
-- Looking for getc_unlocked - not found
-- Found PythonInterp: C:/kicad-
-- Check for installed Python Interpreter -- found
-- Python module install path: Lib/site-packages
-- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_
-- Bazaar version control system version found.
-- Kicad Bazaar build version: (2014-10-22 BZR 5216)
-- Found SWIG: C:/kicad-
-- Found Doxygen: C:/Program Files/doxygen/
-- Configuring incomplete, errors occurred!
See also "C:/kicad-
See also "C:/kicad-
-------
cmake release std err.log
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
PYTHON_INCLUDE_DIR (ADVANCED)
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
used as include directory in directory C:/kicad-
PYTHON_LIBRARY (ADVANCED)
linked by target "_pcbnew" in directory C:/kicad-
linked by target "pcbnew_kiface" in directory C:/kicad-
Revision history for this message
|
#2 |
The KiCad sources broke KiCad-Winbuilder a few commits ago. Hopefully I should have a fix for it soon. Perhaps tonight. Unfortunately it means that python cannot be found. It may be possible to edit KiCad-Winbuilde
The real solution is to fix the KiCad sources so they once again work with a known Python-a-mingw-us installation path.
Best Regards,
Brian.
Revision history for this message
|
#3 |
Getting python scripting into the Windows version is my primary reason for building this. Please let me know if you are able to get this working or if you know of another idea I should try.
Mike
Revision history for this message
|
#4 |
I dig it a little more.
When I type in console:
1. C:\kicad-
2. C:\kicad-
3. C:\kicad-
It enter python and then exit automatically:
-------
C:\kicad-
Python 2.7.4 (default, Mar 18 2013, 12:04:44) [gcc] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
C:\kicad-
-------
4. if I add -v -U
C:\kicad-
It gave more information as blew
-------
C:\kicad-
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# C:\kicad-
import site # precompiled from C:\kicad-
# C:\kicad-
import os # precompiled from C:\kicad-
import errno # builtin
import nt # builtin
# C:\kicad-
import ntpath # precompiled from C:\kicad-
# C:\kicad-
import stat # precompiled from C:\kicad-
# C:\kicad-
import genericpath # precompiled from C:\kicad-
# C:\kicad-
import warnings # precompiled from C:\kicad-
# C:\kicad-
import linecache # precompiled from C:\kicad-
# C:\kicad-
import types # precompiled from C:\kicad-
# C:\kicad-
import UserDict # precompiled from C:\kicad-
# C:\kicad-
import _abcoll # precompiled from C:\kicad-
# C:\kicad-
import abc # precompiled from C:\kicad-
# C:\kicad-
import _weakrefset # precompiled from C:\kicad-
import _weakref # builtin
# C:\kicad-
import copy_reg # precompiled from C:\kicad-
# C:\kicad-
import traceback # precompiled from C:\kicad-
# C:\kicad-
import sysconfig # precompiled from C:\kicad-
# C:\kicad-
import re # precompiled from C:\kicad-
# C:\kicad-
import sre_compile # precompiled from C:\kicad-
import _sre # builtin
# C:\kicad-
import sre_parse # precompiled from C:\kicad-
# C:\kicad-
import sre_constants # precompiled from C:\kicad-
# C:\kicad-
import locale # precompiled from C:\kicad-
import encodings # directory C:\kicad-
# C:\kicad-
import encodings # precompiled from C:\kicad-
# C:\kicad-
import codecs # precompiled from C:\kicad-
import _codecs # builtin
# C:\kicad-
import encodings.aliases # precompiled from C:\kicad-
import operator # dynamically loaded from C:\kicad-
# C:\kicad-
import functools # precompiled from C:\kicad-
import _functools # dynamically loaded from C:\kicad-
import _locale # dynamically loaded from C:\kicad-
Traceback (most recent call last):
File "C:\kicad-
main()
File "C:\kicad-
aliasmbcs()
File "C:\kicad-
import locale, codecs
File "C:\kicad-
for x in range(256)
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 0: ordinal not in range(128)
# clear __builtin__._
# clear sys.path
# clear sys.argv
# clear sys.ps1
# clear sys.ps2
# clear sys.exitfunc
# clear sys.exc_type
# clear sys.exc_value
# clear sys.exc_traceback
# clear sys.last_type
# clear sys.last_value
# clear sys.last_traceback
# clear sys.path_hooks
# clear sys.path_
# clear sys.meta_path
# clear sys.flags
# clear sys.float_info
# restore sys.stdin
# restore sys.stdout
# restore sys.stderr
# cleanup __main__
# cleanup[1] functools
# cleanup[1] encodings
# cleanup[1] sysconfig
# cleanup[1] operator
# cleanup[1] abc
# cleanup[1] _weakrefset
# cleanup[1] sre_constants
# cleanup[1] re
# cleanup[1] _codecs
# cleanup[1] nt
# cleanup[1] _warnings
# cleanup[1] zipimport
# cleanup[1] codecs
# cleanup[1] _functools
# cleanup[1] _locale
# cleanup[1] signal
# cleanup[1] traceback
# cleanup[1] encodings.aliases
# cleanup[1] exceptions
# cleanup[1] _weakref
# cleanup[1] sre_compile
# cleanup[1] _sre
# cleanup[1] sre_parse
# cleanup[2] copy_reg
# cleanup[2] types
# cleanup[2] errno
# cleanup[2] _abcoll
# cleanup[2] ntpath
# cleanup[2] genericpath
# cleanup[2] stat
# cleanup[2] warnings
# cleanup[2] UserDict
# cleanup[2] linecache
# cleanup[2] os
# cleanup sys
# cleanup __builtin__
# cleanup ints: 19 unfreed ints
# cleanup floats
C:\kicad-
-------
I am very confused that why python did not enter interactive environment. Is that expected?
or UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 0: ordinal not in range(128) make it exit?
later I tested in another computer, it raised UnicodeDecodeError exception, but it did not exit and stayed in interactive mode with normal pyton prompt.
Revision history for this message
|
#5 |
Also I found in cmake release stdout.log
-- Check for installed Python Interpreter -- found
-- Python module install path: Lib/site-packages
-- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_
-- Bazaar version control system version found.
This line
-- Python module install path: Lib/site-packages
I believe it should be
-- Python module install path: C:/kicad-
but somehow cmake did not put full path to it.
Any idea?
Revision history for this message
|
#6 |
Hi,
I encountered this problem, too.
And I could find a workaround.
It seems that cmake fails at KiCadWinbuilder
caused by lacking of PYTHON_INCLUDE_DIR definition.
I added PYTHON_INCLUDE_DIR to KOPT, like this (after line 867);
set( KOPT ${KOPT} -DPYTHON_
then, make.bat doesn't stop and keep on running.
I would like to know that if this is a right resolution or not.
Thanks.
Revision history for this message
|
#7 |
I added PYTHON_INCLUDE_DIR to KOPT, like this (after line 867);
set( KOPT ${KOPT} -DPYTHON_
I don't know if it's right, but I had the same problem, and after adding that line, at least the compile process is still working away an hour later...
Revision history for this message
|
#9 |
It worked, after about 2.5 hours compiling I now seem to have a working version of KiCad "Build: (2014-10-24 BZR 5221)-product" on 32 bit WinXP. At least I could open an old KiCad .brd file dating from 2011 and play with the new CERN router features. Thank you!
Revision history for this message
|
#10 |
That looks working for me too. It is compiling now. Thanks.
Revision history for this message
|
#11 |
Compile and install kicad with no problem! The first run, it complained that "The procedure entry point__
Zhenyi
Revision history for this message
|
#12 |
This is now fixed in the KiCad code, so there's no need to change anything in KiCad-Winbuilde
Brian.
Revision history for this message
|
#13 |
I have the same problem building latest revision 5253. It says:
CMakeFiles\
I also tried the fix suggested by kinichiro but it did not work.
Paolo.
-- Building Release version of KiCad revision: 5253
[ 1%] Built target boost
[ 30%] Built target bitmaps
[ 30%] Built target page_layout_
[ 30%] Built target lib-dependencies
[ 30%] Built target netlist_
[ 37%] Built target common
[ 37%] Built target fp_lib_
[ 37%] Generating headers containing GLSL source code
[ 37%] Built target shader_headers
[ 39%] Built target gal
[ 39%] Built target pcb_lexer_
[ 39%] Built target pcb_plot_
[ 39%] Built target specctra_
[ 43%] Built target pcbcommon
[ 44%] Built target 3d-viewer
[ 44%] Built target polygon
[ 45%] Built target pcad2kicadpcb
[ 46%] Built target openssl
[ 47%] Built target avhttp
[ 47%] Built target github_plugin
CMakeFiles\
ll' failed
Makefile:115: recipe for target 'all' failed
-- Installing KiCad locally. Use RunKiCad.bat to run this version
CMake Error at KiCadWinbuilder
file COPY cannot find
"C:/kicad-
Revision history for this message
|
#14 |
Hi :-)
i tried to update my KiCad with the Winuilder and also got this error:
_______
C:\_KICAD\
-- KiCad-Winbuilder V3.4
-- Build type: Release
-- Checking for environment problems
-- Checking for installed Bazaar
-- Checking for wxPython
-- Downloading wxPython
-- Decompressing wxPython
-- Downloading Latest Library Archive...
-- Checking out KiCad Documentation source (BZR head)
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
-- Checking for BZIP2Build phase:Apply phase:adding file 0/9338
-- Downloading BZIP2 Source
-- Building BZIP2 Library
-- Checking for GLEW
-- Downloading
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
-- Building GLEW/s \ Build phase:Apply phase:adding file 10/17
-- GLEW build finished
-- Checking for Cairo
-- Downloading cairo-dev_
-- Decompressing Cairo
-- Checking out KiCad source code (BZR head)
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
-- Cleaning PCBNEW Python files to ensure good build...e 60/622
-- Using KiCad Options:
-- -DKICAD_
-- -DKICAD_
-- -DKICAD_
-- -DPYTHON_
-- -DBUILD_
--
Configuring KiCad ( Release )
-- Building Release version of KiCad revision: 5447
-- Installing KiCad locally. Use RunKiCad.bat to run this version
CMake Error at KiCadWinbuilder
file COPY cannot find
"C:/_
Drücken Sie eine beliebige Taste . . .
C:\_KICAD\
_______
cmake_Release_
...
-- Looking for getc_unlocked
-- Looking for getc_unlocked - not found
-- Found PythonInterp: C:/_KICAD/
-- Check for installed Python Interpreter -- found
-- Python module install path: Lib/site-packages
-- Found PythonLibs: C:/_KICAD/
-- Configuring incomplete, errors occurred!
See also "C:/_KICAD/
See also "C:/_KICAD/
_______
i will try the mentioned fix -
is there some other way to test what the course of this is?
sunny greetings stefan
Revision history for this message
|
#15 |
hey - i tried the fix - but it did not work.
same error again.
Revision history for this message
|
#16 |
I get that "cannot find _pcbnew.pyd" error, too. I tried the fix noted above but no love.
Running Winbuilder 3.4-2.
Revision history for this message
|
#17 |
I have the same issue, "cannot find _pcbnew.pyd", but it still cannot compile kicad when scripting is disabled.
Revision history for this message
|
#18 |
Ah, the fix/workaround is here: https:/