Closed stansu closed 9 years ago
Hi @stansu
Can you give me some more information, please? What version of FreeCAD are you running? Are you running Linux or Windows? What Linux distribution or Windows version are you running? Are you on a 32 or 64 bit system?
sorry about that. i'm using freecad on 64 bit mac.
i just copy your files into /application/freecad.app/contents/mod/, because i can't find /usr/... have any freecad lib.
when i restart freecad and switch to cadquery module, then dialog pop-up.
but i still can run example script in freecad, thanks for your works!
You're the first Mac user of this module, so I'm glad it worked for you. This module has only existed for a few weeks and has been under heavy development, so it's a little rough still. I would say it's in alpha right now, but getting close to beta. Thanks for being willing to try it out.
I just added a requirement to the readme that I forgot before. Please be sure to use FreeCAD 0.14 or newer with this module. Older versions will likely give strange errors.
If you're willing to try it, you can enable logging and then post the results here. There should be an 'InitGui.py' file in '/application/freecad.app/contents/mod/CadQuery'. Uncomment the following lines by removing the leading hashes (#).
#import logging
#logging.basicConfig(filename='/home/jwright/Documents/log.txt', level=logging.DEBUG)
Then change the 'filename' path '/home/jwright/Documents/log.txt'
to a path somewhere in your home directory. The next time you run FreeCAD and select the CadQuery workbench, output should be logged to that file. That output will hopefully help me track down what the problem is.
WARNING:pyqode.qt:failed to used the selected QT_API: pyside, trying auto-detection CRITICAL:pyqode.qt:pyQode: failed to set PyQt api to version 2 To solve this problem, import pyqode before any other PyQt modules in your main script... INFO:pyqode.qt:using pyside
Great, thanks.
While I'm looking into that, there's an "Examples" directory inside the mod/CadQuery directory that may help you get more familiar with CadQuery.
Ok, please try the latest version in the Git repo. I just committed a fix that puts the PyQode import before the PySide imports.
thanks for advise!
i copy new repo then restart then switch to cadquery module, it tell me there is no name "cadquery".
when i restart second time, cadquery module disappear!
i have make some parametric grid on http://parametricparts.com/parts/rvj87x56/
like to hear your comment, thanks again!
Ok, sorry. I backed out one change I just made. Please try it again with the latest version.
i have make some parametric grid on http://parametricparts.com/parts/rvj87x56/
To run a ParametricParts.com ModelScript in the CadQuery module, you'll need to change lines like...
p_x_length = FloatParam(min=0.0,presets={'default':40.0},group='volumn', desc='Length of x')
...to simply...
p_x_length = 10.0 #Substituting whatever value you want for 10.0
Native CQ doesn't understand the FloatParam and IntParam objects from PP.com. There's been discussion between @dcowden and I about how to make it so that scripts can be transferred seamlessly back and forth between native CQ and PP.com.
i modify it and can run in freecad as follow...
import cadquery import Part
x_length = 40 y_length = 40 z_length = 3 outer_gap = 5 inner_gap = 5 x_count = 2 y_count = 2
if (outer_gap_2)+((x_count-1)_inner_gap) >= x_length: x_length = ((outer_gap_2)+((x_count-1)_inner_gap))+5
if (outer_gap_2)+((y_count-1)_inner_gap) >= y_length: y_length = ((outer_gap_2)+((y_count-1)_inner_gap))+5
x_cell = x_length-(outer_gap_2) x_cell = x_cell-((x_count-1)_inner_gap) x_cell = x_cell/x_count array_x = x_cell+inner_gap
y_cell = y_length-(outer_gap_2) y_cell = y_cell-((y_count-1)_inner_gap) y_cell = y_cell/y_count array_y = y_cell+inner_gap
result = cadquery.Workplane('XY'). \ rect(x_length,y_length). \ workplane(). \ rarray(array_x,array_y,x_count,y_count). \ rect(x_cell,y_cell). \ extrude(z_length)
Part.show(result.toFreecad())
Looks good to me and executes in FreeCAD for me. That's cool to see an example from PP.com rendered in FreeCAD this way.
So I take it that the change that I backed out fixed the "no module" problem?
same problem
This is a tough error because I can't reproduce it. Please try the latest version. https://github.com/jmwright/cadquery-freecad-module/archive/master.zip
If that doesn't work, the following link should give you the old version that worked, but had the popup message.
That will hopefully get you at least using the module again while I try to figure out what happened.
Ok, I think I've figured out why things seem so wacky. There's lag between the time I make a commit and the time it shows up in the zip file. That's why I couldn't reproduce the error on my end. I was copying the module from my host to my VM instead of going through Github. Through Github my commit didn't show up in the zip right away.
Ugh. Something else is going on here. If I copy directly from my Linux host to my Windows guest, it picks up the changes and everything works. If I download the exact same commit from Github it doesn't work. I'll have to sort this out another day. In the meantime, I would use the previous commit that I linked above.
cadquery module is back, thanks.
here is log.txt
WARNING:pyqode.qt:failed to used the selected QT_API: pyside, trying auto-detection CRITICAL:pyqode.qt:pyQode: failed to set PyQt api to version 2 To solve this problem, import pyqode before any other PyQt modules in your main script... INFO:pyqode.qt:using pyside
WARNING:pyqode.qt:failed to used the selected QT_API: pyside, trying auto-detection
CRITICAL:pyqode.qt:pyQode: failed to set PyQt api to version 2
To solve this problem, import pyqode before any other PyQt modules in your main script...
INFO:pyqode.qt:using pyside
Just to confirm before I file an issue with the PyQode dev. This is with the latest commit of this module, correct?
Thanks
Yes
logging appends to, rather than replaces the log file. Can you please delete the log file and start FreeCAD again to verify that error wasn't left over from before?
i sync your Still trying repo, delete log.txt, then restart.
same log content, sorry. wish you can figure it out.
WARNING:pyqode.qt:failed to used the selected QT_API: pyside, trying auto-detection CRITICAL:pyqode.qt:pyQode: failed to set PyQt api to version 2 To solve this problem, import pyqode before any other PyQt modules in your main script... INFO:pyqode.qt:using pyside
by the way, when i run a script, then switch back script screen, the 3d model screen will overlap script screen, as this picture.
if i have a tool bar name "Draft tray", is it mean cadquery module working?
When you select the CadQuery workbench, you should see a layout like the following. Notice the docked code editor pane on the left, 3D view on the right, and Report view on the bottom. Also, notice that there's a CadQuery menu. You should use the "Open Script" and "Save Script" items in that menu to open and save CadQuery scripts. There's no toolbar with the CadQuery workbench. The code editor pane should also do code completion and automatic syntax checking. If it doesn't, something is wrong.
Your FreeCAD UI doesn't look like this at all after selecting the CadQuery module, so that PyQode error may be keeping the workbench from loading properly. I've opened an issue for this on the PyQode repo. Hopefully we can get it figured out and it will solve your problems.
i'm using macro editor, although not the best, but i can live with that, hope your module come to mac soon.
hope your module come to mac soon.
That's the plan.
Can you do a couple of things for me please? I don't think that CadQuery has ever been used on Mac OS before, and I just found a pretty significant omission.
print sys.platform
on your Mac?Thanks.
@stansu Please try the latest commit.
Oh, and CadQuery will probably still complain about not being able to find the FreeCAD path, but the module should still run fine.
thanks
@stansu Could you please check to see if either of the following directories exist on your Mac?
~/Library/Application Support/FreeCAD/lib
/Applications/FreeCAD.app/lib
Hi,
I'm trying this on a Mac (Yosemite) after I failed to install CQ in FreeCAD by following the instructions in the CQ readme. I have the same problem as stansu. To answer your question above - neither of those locations exist. There is a /Applications/FreeCAD.app/Contents/lib - does that help?
In case it helps, here's a list of the directories under /Applications/FreeCAD.app/:
(Note: /Applications/FreeCAD.app/Contents/bin/cadquery-0.1.7 is there because I tried to install it manually...)
/Applications/FreeCAD.app /Applications/FreeCAD.app/Contents /Applications/FreeCAD.app/Contents/bin /Applications/FreeCAD.app/Contents/bin/Assistant.app /Applications/FreeCAD.app/Contents/bin/Assistant.app/Contents /Applications/FreeCAD.app/Contents/bin/Assistant.app/Contents/MacOS /Applications/FreeCAD.app/Contents/bin/Assistant.app/Contents/Resources /Applications/FreeCAD.app/Contents/bin/cadquery-0.1.7 /Applications/FreeCAD.app/Contents/bin/cadquery-0.1.7/build /Applications/FreeCAD.app/Contents/bin/cadquery-0.1.7/build/bdist.macosx-10.10-x86_64 /Applications/FreeCAD.app/Contents/bin/cadquery-0.1.7/build/lib /Applications/FreeCAD.app/Contents/bin/cadquery-0.1.7/build/lib/cadquery /Applications/FreeCAD.app/Contents/bin/cadquery-0.1.7/build/lib/cadquery/contrib /Applications/FreeCAD.app/Contents/bin/cadquery-0.1.7/build/lib/cadquery/freecad_impl /Applications/FreeCAD.app/Contents/bin/cadquery-0.1.7/build/lib/cadquery/plugins /Applications/FreeCAD.app/Contents/bin/cadquery-0.1.7/build/lib/tests /Applications/FreeCAD.app/Contents/bin/cadquery-0.1.7/cadquery /Applications/FreeCAD.app/Contents/bin/cadquery-0.1.7/cadquery/contrib /Applications/FreeCAD.app/Contents/bin/cadquery-0.1.7/cadquery/freecad_impl /Applications/FreeCAD.app/Contents/bin/cadquery-0.1.7/cadquery/plugins /Applications/FreeCAD.app/Contents/bin/cadquery-0.1.7/cadquery.egg-info /Applications/FreeCAD.app/Contents/bin/cadquery-0.1.7/dist /Applications/FreeCAD.app/Contents/bin/cadquery-0.1.7/doc /Applications/FreeCAD.app/Contents/bin/cadquery-0.1.7/doc/_static /Applications/FreeCAD.app/Contents/bin/cadquery-0.1.7/doc/cheatsheet /Applications/FreeCAD.app/Contents/bin/cadquery-0.1.7/doc/themes /Applications/FreeCAD.app/Contents/bin/cadquery-0.1.7/doc/themes/pparts /Applications/FreeCAD.app/Contents/bin/cadquery-0.1.7/doc/themes/pparts/static /Applications/FreeCAD.app/Contents/bin/cadquery-0.1.7/examples /Applications/FreeCAD.app/Contents/bin/cadquery-0.1.7/examples/FreeCAD /Applications/FreeCAD.app/Contents/bin/cadquery-0.1.7/tests /Applications/FreeCAD.app/Contents/bin/pivy /Applications/FreeCAD.app/Contents/bin/pivy/gui /Applications/FreeCAD.app/Contents/data /Applications/FreeCAD.app/Contents/data/examples /Applications/FreeCAD.app/Contents/data/Mod /Applications/FreeCAD.app/Contents/data/Mod/Drawing /Applications/FreeCAD.app/Contents/data/Mod/Drawing/Templates /Applications/FreeCAD.app/Contents/data/Mod/Material /Applications/FreeCAD.app/Contents/data/Mod/Material/StandardMaterial /Applications/FreeCAD.app/Contents/data/Mod/Raytracing /Applications/FreeCAD.app/Contents/data/Mod/Raytracing/Templates /Applications/FreeCAD.app/Contents/data/Mod/Robot /Applications/FreeCAD.app/Contents/data/Mod/Robot/Lib /Applications/FreeCAD.app/Contents/data/Mod/Robot/Lib/Kuka /Applications/FreeCAD.app/Contents/data/Mod/Start /Applications/FreeCAD.app/Contents/data/Mod/Start/StartPage /Applications/FreeCAD.app/Contents/doc /Applications/FreeCAD.app/Contents/lib /Applications/FreeCAD.app/Contents/lib/python2.7 /Applications/FreeCAD.app/Contents/lib/python2.7/bsddb /Applications/FreeCAD.app/Contents/lib/python2.7/bsddb/test /Applications/FreeCAD.app/Contents/lib/python2.7/compiler /Applications/FreeCAD.app/Contents/lib/python2.7/config /Applications/FreeCAD.app/Contents/lib/python2.7/ctypes /Applications/FreeCAD.app/Contents/lib/python2.7/ctypes/macholib /Applications/FreeCAD.app/Contents/lib/python2.7/ctypes/test /Applications/FreeCAD.app/Contents/lib/python2.7/curses /Applications/FreeCAD.app/Contents/lib/python2.7/distutils /Applications/FreeCAD.app/Contents/lib/python2.7/distutils/command /Applications/FreeCAD.app/Contents/lib/python2.7/distutils/tests /Applications/FreeCAD.app/Contents/lib/python2.7/email /Applications/FreeCAD.app/Contents/lib/python2.7/email/mime /Applications/FreeCAD.app/Contents/lib/python2.7/email/test /Applications/FreeCAD.app/Contents/lib/python2.7/email/test/data /Applications/FreeCAD.app/Contents/lib/python2.7/encodings /Applications/FreeCAD.app/Contents/lib/python2.7/hotshot /Applications/FreeCAD.app/Contents/lib/python2.7/idlelib /Applications/FreeCAD.app/Contents/lib/python2.7/idlelib/Icons /Applications/FreeCAD.app/Contents/lib/python2.7/importlib /Applications/FreeCAD.app/Contents/lib/python2.7/json /Applications/FreeCAD.app/Contents/lib/python2.7/json/tests /Applications/FreeCAD.app/Contents/lib/python2.7/lib-dynload /Applications/FreeCAD.app/Contents/lib/python2.7/lib-tk /Applications/FreeCAD.app/Contents/lib/python2.7/lib-tk/test /Applications/FreeCAD.app/Contents/lib/python2.7/lib-tk/test/test_tkinter /Applications/FreeCAD.app/Contents/lib/python2.7/lib-tk/test/test_ttk /Applications/FreeCAD.app/Contents/lib/python2.7/lib2to3 /Applications/FreeCAD.app/Contents/lib/python2.7/lib2to3/fixes /Applications/FreeCAD.app/Contents/lib/python2.7/lib2to3/pgen2 /Applications/FreeCAD.app/Contents/lib/python2.7/lib2to3/tests /Applications/FreeCAD.app/Contents/lib/python2.7/lib2to3/tests/data /Applications/FreeCAD.app/Contents/lib/python2.7/lib2to3/tests/data/fixers /Applications/FreeCAD.app/Contents/lib/python2.7/lib2to3/tests/data/fixers/myfixes /Applications/FreeCAD.app/Contents/lib/python2.7/logging /Applications/FreeCAD.app/Contents/lib/python2.7/multiprocessing /Applications/FreeCAD.app/Contents/lib/python2.7/multiprocessing/dummy /Applications/FreeCAD.app/Contents/lib/python2.7/plat-darwin /Applications/FreeCAD.app/Contents/lib/python2.7/plat-mac /Applications/FreeCAD.app/Contents/lib/python2.7/plat-mac/Carbon /Applications/FreeCAD.app/Contents/lib/python2.7/plat-mac/lib-scriptpackages /Applications/FreeCAD.app/Contents/lib/python2.7/plat-mac/lib-scriptpackages/_builtinSuites /Applications/FreeCAD.app/Contents/lib/python2.7/plat-mac/lib-scriptpackages/CodeWarrior /Applications/FreeCAD.app/Contents/lib/python2.7/plat-mac/lib-scriptpackages/Explorer /Applications/FreeCAD.app/Contents/lib/python2.7/plat-mac/lib-scriptpackages/Finder /Applications/FreeCAD.app/Contents/lib/python2.7/plat-mac/lib-scriptpackages/Netscape /Applications/FreeCAD.app/Contents/lib/python2.7/plat-mac/lib-scriptpackages/StdSuites /Applications/FreeCAD.app/Contents/lib/python2.7/plat-mac/lib-scriptpackages/SystemEvents /Applications/FreeCAD.app/Contents/lib/python2.7/plat-mac/lib-scriptpackages/Terminal /Applications/FreeCAD.app/Contents/lib/python2.7/pydoc_data /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/backports.ssl_match_hostname-3.4.0.2-py2.7.egg /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/backports.ssl_match_hostname-3.4.0.2-py2.7.egg/backports /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/backports.ssl_match_hostname-3.4.0.2-py2.7.egg/backports/ssl_match_hostname /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/backports.ssl_match_hostname-3.4.0.2-py2.7.egg/EGG-INFO /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.6-x86_64.egg /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.6-x86_64.egg/EGG-INFO /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.6-x86_64.egg/matplotlib /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.6-x86_64.egg/matplotlib/backends /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.6-x86_64.egg/matplotlib/backends/Matplotlib.nib /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.6-x86_64.egg/matplotlib/backends/qt4_editor /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.6-x86_64.egg/matplotlib/backends/web_backend /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.6-x86_64.egg/matplotlib/backends/web_backend/css /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.6-x86_64.egg/matplotlib/backends/web_backend/jquery /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.6-x86_64.egg/matplotlib/backends/web_backend/jquery/css /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.6-x86_64.egg/matplotlib/backends/web_backend/jquery/css/themes /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.6-x86_64.egg/matplotlib/backends/web_backend/jquery/css/themes/base /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.6-x86_64.egg/matplotlib/backends/web_backend/jquery/css/themes/base/images /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.6-x86_64.egg/matplotlib/backends/web_backend/jquery/js /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.6-x86_64.egg/matplotlib/compat /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.6-x86_64.egg/matplotlib/delaunay /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.6-x86_64.egg/matplotlib/mpl-data /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.6-x86_64.egg/matplotlib/mpl-data/fonts /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.6-x86_64.egg/matplotlib/mpl-data/fonts/afm /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.6-x86_64.egg/matplotlib/mpl-data/fonts/pdfcorefonts /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.6-x86_64.egg/matplotlib/mpl-data/fonts/ttf /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.6-x86_64.egg/matplotlib/mpl-data/images /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.6-x86_64.egg/matplotlib/projections /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.6-x86_64.egg/matplotlib/sphinxext /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.6-x86_64.egg/matplotlib/testing /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.6-x86_64.egg/matplotlib/testing/jpl_units /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.6-x86_64.egg/matplotlib/tri /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/compat /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/core /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/core/include /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/core/include/numpy /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/core/lib /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/core/lib/npy-pkg-config /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/core/tests /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/core/tests/data /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/distutils /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/distutils/command /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/distutils/fcompiler /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/distutils/mingw /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/distutils/tests /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/distutils/tests/f2py_ext /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/distutils/tests/f2py_ext/src /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/distutils/tests/f2py_ext/tests /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/distutils/tests/f2py_f90_ext /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/distutils/tests/f2py_f90_ext/include /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/distutils/tests/f2py_f90_ext/src /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/distutils/tests/f2py_f90_ext/tests /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/distutils/tests/gen_ext /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/distutils/tests/gen_ext/tests /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/distutils/tests/pyrex_ext /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/distutils/tests/pyrex_ext/tests /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/distutils/tests/swig_ext /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/distutils/tests/swig_ext/src /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/distutils/tests/swig_ext/tests /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/doc /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/f2py /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/f2py/docs /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/f2py/docs/usersguide /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/f2py/src /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/f2py/tests /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/f2py/tests/src /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/f2py/tests/src/array_from_pyobj /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/f2py/tests/src/assumed_shape /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/f2py/tests/src/kind /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/f2py/tests/src/mixed /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/f2py/tests/src/size /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/fft /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/fft/tests /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/lib /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/lib/tests /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/linalg /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/linalg/tests /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/ma /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/ma/tests /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/matrixlib /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/matrixlib/tests /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/numarray /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/numarray/include /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/numarray/include/numpy /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/oldnumeric /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/oldnumeric/tests /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/polynomial /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/polynomial/tests /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/random /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/random/tests /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/testing /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/testing/tests /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/numpy/tests /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/pip-1.4-py2.7.egg /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/pip-1.4-py2.7.egg/EGG-INFO /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/pip-1.4-py2.7.egg/pip /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/pip-1.4-py2.7.egg/pip/backwardcompat /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/pip-1.4-py2.7.egg/pip/commands /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/pip-1.4-py2.7.egg/pip/vcs /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/pip-1.4-py2.7.egg/pip/vendor /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/pip-1.4-py2.7.egg/pip/vendor/distlib /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/pip-1.4-py2.7.egg/pip/vendor/distlib/_backport /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/pip-1.4-py2.7.egg/pip/vendor/html5lib /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/pip-1.4-py2.7.egg/pip/vendor/html5lib/filters /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/pip-1.4-py2.7.egg/pip/vendor/html5lib/serializer /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/pip-1.4-py2.7.egg/pip/vendor/html5lib/treebuilders /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/pip-1.4-py2.7.egg/pip/vendor/html5lib/treewalkers /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/pip-1.4-py2.7.egg/pip/vendor/html5lib/trie /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/pyparsing-2.0.1-py2.7.egg /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/pyparsing-2.0.1-py2.7.egg/EGG-INFO /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/PySide /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/python_dateutil-2.2-py2.7.egg /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/python_dateutil-2.2-py2.7.egg/dateutil /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/python_dateutil-2.2-py2.7.egg/dateutil/zoneinfo /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/python_dateutil-2.2-py2.7.egg/EGG-INFO /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/six-1.5.2-py2.7.egg /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/six-1.5.2-py2.7.egg/EGG-INFO /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/tornado-3.2-py2.7-macosx-10.6-x86_64.egg /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/tornado-3.2-py2.7-macosx-10.6-x86_64.egg/EGG-INFO /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/tornado-3.2-py2.7-macosx-10.6-x86_64.egg/tornado /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/tornado-3.2-py2.7-macosx-10.6-x86_64.egg/tornado/platform /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/tornado-3.2-py2.7-macosx-10.6-x86_64.egg/tornado/test /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/tornado-3.2-py2.7-macosx-10.6-x86_64.egg/tornado/test/csv_translations /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/tornado-3.2-py2.7-macosx-10.6-x86_64.egg/tornado/test/gettext_translations /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/tornado-3.2-py2.7-macosx-10.6-x86_64.egg/tornado/test/gettext_translations/fr_FR /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/tornado-3.2-py2.7-macosx-10.6-x86_64.egg/tornado/test/gettext_translations/fr_FR/LC_MESSAGES /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/tornado-3.2-py2.7-macosx-10.6-x86_64.egg/tornado/test/static /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/tornado-3.2-py2.7-macosx-10.6-x86_64.egg/tornado/test/static/dir /Applications/FreeCAD.app/Contents/lib/python2.7/site-packages/tornado-3.2-py2.7-macosx-10.6-x86_64.egg/tornado/test/templates /Applications/FreeCAD.app/Contents/lib/python2.7/sqlite3 /Applications/FreeCAD.app/Contents/lib/python2.7/sqlite3/test /Applications/FreeCAD.app/Contents/lib/python2.7/test /Applications/FreeCAD.app/Contents/lib/python2.7/test/cjkencodings /Applications/FreeCAD.app/Contents/lib/python2.7/test/data /Applications/FreeCAD.app/Contents/lib/python2.7/test/decimaltestdata /Applications/FreeCAD.app/Contents/lib/python2.7/test/subprocessdata /Applications/FreeCAD.app/Contents/lib/python2.7/test/tracedmodules /Applications/FreeCAD.app/Contents/lib/python2.7/test/xmltestdata /Applications/FreeCAD.app/Contents/lib/python2.7/unittest /Applications/FreeCAD.app/Contents/lib/python2.7/unittest/test /Applications/FreeCAD.app/Contents/lib/python2.7/wsgiref /Applications/FreeCAD.app/Contents/lib/python2.7/xml /Applications/FreeCAD.app/Contents/lib/python2.7/xml/dom /Applications/FreeCAD.app/Contents/lib/python2.7/xml/etree /Applications/FreeCAD.app/Contents/lib/python2.7/xml/parsers /Applications/FreeCAD.app/Contents/lib/python2.7/xml/sax /Applications/FreeCAD.app/Contents/lib/qtplugins /Applications/FreeCAD.app/Contents/lib/qtplugins/accessible /Applications/FreeCAD.app/Contents/lib/qtplugins/bearer /Applications/FreeCAD.app/Contents/lib/qtplugins/graphicssystems /Applications/FreeCAD.app/Contents/lib/qtplugins/iconengines /Applications/FreeCAD.app/Contents/lib/qtplugins/imageformats /Applications/FreeCAD.app/Contents/lib/qtplugins/sqldrivers /Applications/FreeCAD.app/Contents/MacOS /Applications/FreeCAD.app/Contents/Mod /Applications/FreeCAD.app/Contents/Mod/Arch /Applications/FreeCAD.app/Contents/Mod/CadQuery /Applications/FreeCAD.app/Contents/Mod/CadQuery/Examples /Applications/FreeCAD.app/Contents/Mod/CadQuery/Gui /Applications/FreeCAD.app/Contents/Mod/CadQuery/Gui/Resources /Applications/FreeCAD.app/Contents/Mod/CadQuery/Gui/Resources/icons /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/builtins /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/cadquery /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/cadquery/contrib /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/cadquery/freecad_impl /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/cadquery/plugins /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/docutils /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/docutils/languages /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/docutils/parsers /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/docutils/parsers/rst /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/docutils/parsers/rst/directives /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/docutils/parsers/rst/include /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/docutils/parsers/rst/languages /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/docutils/readers /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/docutils/transforms /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/docutils/utils /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/docutils/utils/math /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/docutils/writers /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/docutils/writers/html4css1 /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/docutils/writers/latex2e /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/docutils/writers/odf_odt /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/docutils/writers/pep_html /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/docutils/writers/s5_html /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/docutils/writers/s5_html/themes /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/docutils/writers/s5_html/themes/big-black /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/docutils/writers/s5_html/themes/big-white /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/docutils/writers/s5_html/themes/default /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/docutils/writers/s5_html/themes/medium-black /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/docutils/writers/s5_html/themes/medium-white /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/docutils/writers/s5_html/themes/small-black /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/docutils/writers/s5_html/themes/small-white /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/docutils/writers/xetex /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/frosted /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/frosted/test /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/future /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/future/backports /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/future/backports/email /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/future/backports/email/mime /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/future/backports/html /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/future/backports/http /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/future/backports/test /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/future/backports/urllib /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/future/backports/xmlrpc /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/future/builtins /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/future/moves /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/future/moves/dbm /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/future/moves/html /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/future/moves/http /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/future/moves/test /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/future/moves/tkinter /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/future/moves/urllib /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/future/moves/xmlrpc /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/future/standard_library /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/future/tests /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/future/types /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/future/utils /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/jedi /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/jedi/api /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/jedi/evaluate /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/jedi/evaluate/compiled /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/jedi/evaluate/compiled/fake /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/jedi/parser /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/pies /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/pygments /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/pygments/filters /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/pygments/formatters /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/pygments/lexers /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/pygments/styles /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/pyqode /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/pyqode/core /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/pyqode/core/_designer_plugins /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/pyqode/core/_forms /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/pyqode/core/api /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/pyqode/core/backend /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/pyqode/core/dialogs /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/pyqode/core/managers /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/pyqode/core/modes /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/pyqode/core/panels /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/pyqode/core/styles /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/pyqode/core/tools /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/pyqode/core/widgets /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/pyqode/python /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/pyqode/python/_forms /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/pyqode/python/backend /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/pyqode/python/managers /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/pyqode/python/modes /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/pyqode/python/panels /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/pyqode/python/widgets /Applications/FreeCAD.app/Contents/Mod/CadQuery/Libs/pyqode/qt /Applications/FreeCAD.app/Contents/Mod/CadQuery/Tools /Applications/FreeCAD.app/Contents/Mod/Complete /Applications/FreeCAD.app/Contents/Mod/Draft /Applications/FreeCAD.app/Contents/Mod/Drawing /Applications/FreeCAD.app/Contents/Mod/Fem /Applications/FreeCAD.app/Contents/Mod/Idf /Applications/FreeCAD.app/Contents/Mod/Idf/Idflibs /Applications/FreeCAD.app/Contents/Mod/Image /Applications/FreeCAD.app/Contents/Mod/Import /Applications/FreeCAD.app/Contents/Mod/Inspection /Applications/FreeCAD.app/Contents/Mod/Material /Applications/FreeCAD.app/Contents/Mod/Mesh /Applications/FreeCAD.app/Contents/Mod/MeshPart /Applications/FreeCAD.app/Contents/Mod/OpenSCAD /Applications/FreeCAD.app/Contents/Mod/OpenSCAD/ply /Applications/FreeCAD.app/Contents/Mod/Part /Applications/FreeCAD.app/Contents/Mod/PartDesign /Applications/FreeCAD.app/Contents/Mod/PartDesign/fcgear /Applications/FreeCAD.app/Contents/Mod/PartDesign/Scripts /Applications/FreeCAD.app/Contents/Mod/PartDesign/WizardShaft /Applications/FreeCAD.app/Contents/Mod/Plot /Applications/FreeCAD.app/Contents/Mod/Plot/plotAxes /Applications/FreeCAD.app/Contents/Mod/Plot/plotLabels /Applications/FreeCAD.app/Contents/Mod/Plot/plotPositions /Applications/FreeCAD.app/Contents/Mod/Plot/plotSave /Applications/FreeCAD.app/Contents/Mod/Plot/plotSeries /Applications/FreeCAD.app/Contents/Mod/Plot/plotUtils /Applications/FreeCAD.app/Contents/Mod/Points /Applications/FreeCAD.app/Contents/Mod/Raytracing /Applications/FreeCAD.app/Contents/Mod/ReverseEngineering /Applications/FreeCAD.app/Contents/Mod/Robot /Applications/FreeCAD.app/Contents/Mod/Ship /Applications/FreeCAD.app/Contents/Mod/Ship/resources /Applications/FreeCAD.app/Contents/Mod/Ship/resources/examples /Applications/FreeCAD.app/Contents/Mod/Ship/shipAreasCurve /Applications/FreeCAD.app/Contents/Mod/Ship/shipCreateShip /Applications/FreeCAD.app/Contents/Mod/Ship/shipHydrostatics /Applications/FreeCAD.app/Contents/Mod/Ship/shipLoadExample /Applications/FreeCAD.app/Contents/Mod/Ship/shipOutlineDraw /Applications/FreeCAD.app/Contents/Mod/Ship/shipUtils /Applications/FreeCAD.app/Contents/Mod/Sketcher /Applications/FreeCAD.app/Contents/Mod/Spreadsheet /Applications/FreeCAD.app/Contents/Mod/Start /Applications/FreeCAD.app/Contents/Mod/Start/StartPage /Applications/FreeCAD.app/Contents/Mod/Test /Applications/FreeCAD.app/Contents/Mod/Web /Applications/FreeCAD.app/Contents/Resources
I turned on logging, started FC, selected View->Workbench->CadQuery, the "must be string, not None" dialogue popped up, I closed that, and all I got in the log was:
DEBUG:pyqode.qt:importing PySide DEBUG:pyqode.qt:imported PySide INFO:pyqode.qt:using pyside
To Jeremy,
I left my MacBook in my office, I can check the folder for you on Monday.
@DrRob - Thanks for the paths. I should be able to take a look this evening (U.S. time). Hopefully adding the correct lib path in CQ will fix this.
@stansu - Thanks
This might help (see the comment I added just a moment ago): https://github.com/dcowden/cadquery/issues/54
I tried the same fix, reinstalled FreeCAD to get a fresh start, copied the CadQuery directory into the Mod directory (with the fix applied), and now when I View->Workbench->CadQuery I get a different error (progress!):
'NoneType' object has no attribute 'replace'
Nothing in the logfile I'm afraid (I did turn logging back on after reinstalling...)
'NoneType' object has no attribute 'replace'
@DrRob - The error is most likely happening very early in CadQueryWorkbench.Initialize or CadQueryWorkbench.Activate code in InitGui.py. If you're up for it, you could try adding the following code (substituting your own messages) throughout those sections of code.
logging.warning('Debug1')
It's a low tech, brute force method but if you put those throughout the suspect code, incrementing the number with each instance, you'll hopefully isolate where the error happens.
Sorry that I can't be more help. I don't have access to a Mac or I'd be helping debug this directly.
@DrRob and @stansu - Please try out the latest version of the module and let me know if it runs properly on your Macs.
Thanks!
it' working! thanks for your works!
Awesome, I'm very glad to hear that! Thanks to @DrRob and @ColinDuquesnoy for figuring this out.
Works for me too, thank you.
Great!
@DrRob and @stansu - Just to be sure, auto-completion and automatic syntax checking are working for you in the module now, correct?
yes
Thanks.
when i switch to cadquery module, it pop-up "must be string, not None" dialog.