realthunder / fcad_pcb

FreeCAD scripts for PCB CAD/CAM
MIT License
126 stars 25 forks source link

macro not working on MacOS #36

Closed veryLazyTom closed 3 years ago

veryLazyTom commented 3 years ago

Hi real thunder,

I have tried to run your macro on FreeCAD 0.20 on MacOS but was not able.

The macro is installed in the following directory:

/Users/marco/Library/Preferences/FreeCAD/Macro/fcad_pcb

what I do: I set the working directory to /Users/marco/Library/Preferences/FreeCAD/Macro/fcad_pcb

and then try to run it in the console by writing

from fcad_pcb import kicad

and the result I get is the following:

Traceback (most recent call last): File "", line 1, in File "/Users/marco/Library/Preferences/FreeCAD/Macro/fcad_pcb/kicad.py", line 4, in from future.utils import iteritems ModuleNotFoundError: No module named 'future'

any suggestion on how to address the problem?

Thanks,

Marco

realthunder commented 3 years ago

Please install future module through pip3.

pip3 install future
veryLazyTom commented 3 years ago

thanks for the fast reply,

I have limited experience with git/related software.

after saying: pip3 install future

I've got this output:

-bash: pip3: command not found

what is pip3?

what do I need to install to have pip3 working?

realthunder commented 3 years ago

Do you have homebrew installed on your Mac? If not, just run the command in the linked webpage to install it. And then install Python3,

brew install python3

After that you should have pip3 available in /usr/local/bin directory. By right, this path should already be in your search path list, so you can simply type pip3 install future.

veryLazyTom commented 3 years ago

Hi, homebrew might be an issue on my mac so I'll keep this on hold and open another issue which is more important now.

veryLazyTom commented 3 years ago

just you are aware, I had the exact same issue on the PC, even after installing python3.

In any case, I just updated the repo as explained in https://github.com/realthunder/fcad_pcb/issues/37 and everything works ok on both Mac and PC.

Thanks!