Skip to content
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

Try to make the code run on MacOS BigSur : Error => No module named 'FreeCAD' #24

Open
nicolasdavister opened this issue Dec 15, 2021 · 2 comments

Comments

@nicolasdavister
Copy link

Hello,

I tried to implement the module for Jupiter notebook on MacOS and put the following :

"
import sys, os
JUPYTER_REPO_PATH = "/Users/myself/Jupyter_FreeCAD-master"
sys.path.append("/Applications/FreeCAD.app/Contents/Resources/lib/python3.6/site-packages")
sys.path.append(JUPYTER_REPO_PATH + "IPythonFreeCADViewer")
import FreeCAD, FreeCADGui
from freecadviewer import render_document, get_document_renderer

FreeCADGui.setupWithoutGUI()
"

The error that appears is related to the FreeCAD module:

"

ModuleNotFoundError Traceback (most recent call last)
in
8 sys.path.append(JUPYTER_REPO_PATH + "IPythonFreeCADViewer")
9
---> 10 import FreeCAD, FreeCADGui
11 from freecadviewer import render_document, get_document_renderer
12

ModuleNotFoundError: No module named 'FreeCAD'
"

but the module freecad (not FreeCAD) has been installed via Conda : "conda install FreeCAD" and the package is "freecad-0.18.3".

@valkyriesavage
Copy link

+1, I can't figure out the syntax here.

@valkyriesavage
Copy link

I continued messing with this, and it seems that the conda freecad is a bit different from the homebrew FreeCAD. I wound up uninstalling conda's freecad and just used the /Applications/FreeCAD.app (which I had installed via brew install freecad), and it worked ok for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants