I installed kicad for the latest windows stable version 4.0.4 on windows 10. But upon opening pcbnew , kicad shuts down without any reason or notice.
I have to build my designs urgently. I have seen suggestions to build kicad using source code but I have been unsuccessful in building kicad using source code. Can someone please help me out.
You can also try the nightly builds to see if that works. There are more tools available but also some file format changes so that the output is not quite compatible with the ‘stable’ release.
eeschema is working properly . I tried reinstalling multiple times to check if there were some issues with my install but apparently it shuts down repeatedly. Also, the footprint editor also resulted in the same issue.
I installed the nightly builds that you recommended but I am facing the same issue. Is there something that I have missed in installing ? Any specific repositories or files etc ? @cbernardo
If i encounter a software that crashes without any error message i use a terminal to start it and hope that some sort of output is printed there.
If it is possible to to something similar in windows you could try that. Maybe KiCad does print some “error” message there. (Not correctly handled exceptions could cause such a behavior.)
One more thing that can cause mysterious crashes is if the scenegraph library (libkicad_3dsg.dll) cannot be found. It should be in the same directory as your pcbnew.exe and _pcbnew.kiface. I’d be surprised if that were the problem though since the installer should have put them all in the right place.
@davidsrsb Thanks for the references. I have got it working by changing the PYTHONPATH which I had modified earlier for installing opencv. But I have new problem now - when i launch the pcbnew an error message pops up :
Also, does it mean that the pcbnew.py file is unable to access wx scripts installed in the same folder?
In the C:\KiCad\lib\python2.7\site-packages folder do you have any .pyc files associated with wx-python installation ? or any scripts created from the wx installation?
I had the same problem but suspect it is the known issue with the Intel video drivers.
Installed on a different system with a different video card and it worked fine.
So if you have the •Intel Graphics Media Accelerator (GMA) 4500M video adapter, that might be the problem.
I removed all references to other Python installs on the system with the bad video driver and it still didn’t do the job.
@Rob_Ryks I have solved the first issue of pcbnew crashing which was due to python references in the environment variables.
I do have a new problem though - which is “unable to import wxpython api”.
Have tried everything. It’s hard to get rid of the problem.
Oh, and while you’re at it, check your pythonpath for wrong directions… I would try by starting the command line in the kicad-python folder and then do this in the python shell there:
import sys
print(sys.path)
See what it tells you there vs when you start the command line + shell in the root folder.
Look what I just got (after playing around with my pythonpath variable earlier today, essentially I created it and changed the order of things in there):
I didn’t change anything on the KiCAD install.
All I did was trying to get my python 2.7 install to see the pyserial/serial module by installing that.
But it never really stuck with the python shell I got when I typed python at the command line… so I tried it with the environment variable.
OK, now I removed the PYTHONPATH variable again and it’s content from Win7 and restarted KiCAD - no problem anymore.
PCBnew starts without issue and console is available
Now I listed the pythonpath variable that KiCAD ‘ships’ with: