NiCr: CNC Hot Wire Cutter

Show off your FreeCAD projects here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: NiCr: CNC Hot Wire Cutter

Post by microelly2 »

You have to install an extra python modul pyserial

https://github.com/pyserial/pyserial
User avatar
vcode
Posts: 8
Joined: Sun Apr 24, 2016 9:48 pm
Location: Spain

Re: NiCr: CNC Hot Wire Cutter

Post by vcode »

Thanks microelly2,

I installed pyserial module, but nothing changed. i got the same problem.

There is the installation...
D:\vslot\pyserial-master>python setup.py install
running install
running bdist_egg
running egg_info
creating pyserial.egg-info
writing top-level names to pyserial.egg-info\top_level.txt
writing dependency_links to pyserial.egg-info\dependency_links.txt
writing pyserial.egg-info\PKG-INFO
writing manifest file 'pyserial.egg-info\SOURCES.txt'
reading manifest file 'pyserial.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pyserial.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
creating build
creating build\lib
creating build\lib\serial
copying serial\aio.py -> build\lib\serial
copying serial\rfc2217.py -> build\lib\serial
copying serial\rs485.py -> build\lib\serial
copying serial\serialcli.py -> build\lib\serial
copying serial\serialjava.py -> build\lib\serial
copying serial\serialposix.py -> build\lib\serial
copying serial\serialutil.py -> build\lib\serial
copying serial\serialwin32.py -> build\lib\serial
copying serial\win32.py -> build\lib\serial
copying serial\__init__.py -> build\lib\serial
creating build\lib\serial\tools
copying serial\tools\hexlify_codec.py -> build\lib\serial\tools
copying serial\tools\list_ports.py -> build\lib\serial\tools
copying serial\tools\list_ports_common.py -> build\lib\serial\tools
copying serial\tools\list_ports_linux.py -> build\lib\serial\tools
copying serial\tools\list_ports_osx.py -> build\lib\serial\tools
copying serial\tools\list_ports_posix.py -> build\lib\serial\tools
copying serial\tools\list_ports_windows.py -> build\lib\serial\tools
copying serial\tools\miniterm.py -> build\lib\serial\tools
copying serial\tools\__init__.py -> build\lib\serial\tools
creating build\lib\serial\urlhandler
copying serial\urlhandler\protocol_alt.py -> build\lib\serial\urlhandler
copying serial\urlhandler\protocol_hwgrep.py -> build\lib\serial\urlhandler
copying serial\urlhandler\protocol_loop.py -> build\lib\serial\urlhandler
copying serial\urlhandler\protocol_rfc2217.py -> build\lib\serial\urlhandler
copying serial\urlhandler\protocol_socket.py -> build\lib\serial\urlhandler
copying serial\urlhandler\protocol_spy.py -> build\lib\serial\urlhandler
copying serial\urlhandler\__init__.py -> build\lib\serial\urlhandler
creating build\lib\serial\threaded
copying serial\threaded\__init__.py -> build\lib\serial\threaded
creating build\bdist.win32
creating build\bdist.win32\egg
creating build\bdist.win32\egg\serial
copying build\lib\serial\aio.py -> build\bdist.win32\egg\serial
copying build\lib\serial\rfc2217.py -> build\bdist.win32\egg\serial
copying build\lib\serial\rs485.py -> build\bdist.win32\egg\serial
copying build\lib\serial\serialcli.py -> build\bdist.win32\egg\serial
copying build\lib\serial\serialjava.py -> build\bdist.win32\egg\serial
copying build\lib\serial\serialposix.py -> build\bdist.win32\egg\serial
copying build\lib\serial\serialutil.py -> build\bdist.win32\egg\serial
copying build\lib\serial\serialwin32.py -> build\bdist.win32\egg\serial
creating build\bdist.win32\egg\serial\threaded
copying build\lib\serial\threaded\__init__.py -> build\bdist.win32\egg\serial\threaded
creating build\bdist.win32\egg\serial\tools
copying build\lib\serial\tools\hexlify_codec.py -> build\bdist.win32\egg\serial\tools
copying build\lib\serial\tools\list_ports.py -> build\bdist.win32\egg\serial\tools
copying build\lib\serial\tools\list_ports_common.py -> build\bdist.win32\egg\serial\tools
copying build\lib\serial\tools\list_ports_linux.py -> build\bdist.win32\egg\serial\tools
copying build\lib\serial\tools\list_ports_osx.py -> build\bdist.win32\egg\serial\tools
copying build\lib\serial\tools\list_ports_posix.py -> build\bdist.win32\egg\serial\tools
copying build\lib\serial\tools\list_ports_windows.py -> build\bdist.win32\egg\serial\tools
copying build\lib\serial\tools\miniterm.py -> build\bdist.win32\egg\serial\tools
copying build\lib\serial\tools\__init__.py -> build\bdist.win32\egg\serial\tools
creating build\bdist.win32\egg\serial\urlhandler
copying build\lib\serial\urlhandler\protocol_alt.py -> build\bdist.win32\egg\serial\urlhandler
copying build\lib\serial\urlhandler\protocol_hwgrep.py -> build\bdist.win32\egg\serial\urlhandler
copying build\lib\serial\urlhandler\protocol_loop.py -> build\bdist.win32\egg\serial\urlhandler
copying build\lib\serial\urlhandler\protocol_rfc2217.py -> build\bdist.win32\egg\serial\urlhandler
copying build\lib\serial\urlhandler\protocol_socket.py -> build\bdist.win32\egg\serial\urlhandler
copying build\lib\serial\urlhandler\protocol_spy.py -> build\bdist.win32\egg\serial\urlhandler
copying build\lib\serial\urlhandler\__init__.py -> build\bdist.win32\egg\serial\urlhandler
copying build\lib\serial\win32.py -> build\bdist.win32\egg\serial
copying build\lib\serial\__init__.py -> build\bdist.win32\egg\serial
byte-compiling build\bdist.win32\egg\serial\aio.py to aio.cpython-35.pyc
byte-compiling build\bdist.win32\egg\serial\rfc2217.py to rfc2217.cpython-35.pyc
byte-compiling build\bdist.win32\egg\serial\rs485.py to rs485.cpython-35.pyc
byte-compiling build\bdist.win32\egg\serial\serialcli.py to serialcli.cpython-35.pyc
byte-compiling build\bdist.win32\egg\serial\serialjava.py to serialjava.cpython-35.pyc
byte-compiling build\bdist.win32\egg\serial\serialposix.py to serialposix.cpython-35.pyc
byte-compiling build\bdist.win32\egg\serial\serialutil.py to serialutil.cpython-35.pyc
byte-compiling build\bdist.win32\egg\serial\serialwin32.py to serialwin32.cpython-35.pyc
byte-compiling build\bdist.win32\egg\serial\threaded\__init__.py to __init__.cpython-35.pyc
byte-compiling build\bdist.win32\egg\serial\tools\hexlify_codec.py to hexlify_codec.cpython-35.pyc
byte-compiling build\bdist.win32\egg\serial\tools\list_ports.py to list_ports.cpython-35.pyc
byte-compiling build\bdist.win32\egg\serial\tools\list_ports_common.py to list_ports_common.cpython-35.pyc
byte-compiling build\bdist.win32\egg\serial\tools\list_ports_linux.py to list_ports_linux.cpython-35.pyc
byte-compiling build\bdist.win32\egg\serial\tools\list_ports_osx.py to list_ports_osx.cpython-35.pyc
byte-compiling build\bdist.win32\egg\serial\tools\list_ports_posix.py to list_ports_posix.cpython-35.pyc
byte-compiling build\bdist.win32\egg\serial\tools\list_ports_windows.py to list_ports_windows.cpython-35.pyc
byte-compiling build\bdist.win32\egg\serial\tools\miniterm.py to miniterm.cpython-35.pyc
byte-compiling build\bdist.win32\egg\serial\tools\__init__.py to __init__.cpython-35.pyc
byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_alt.py to protocol_alt.cpython-35.pyc
byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_hwgrep.py to protocol_hwgrep.cpython-35.pyc
byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_loop.py to protocol_loop.cpython-35.pyc
byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_rfc2217.py to protocol_rfc2217.cpython-35.pyc
byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_socket.py to protocol_socket.cpython-35.pyc
byte-compiling build\bdist.win32\egg\serial\urlhandler\protocol_spy.py to protocol_spy.cpython-35.pyc
byte-compiling build\bdist.win32\egg\serial\urlhandler\__init__.py to __init__.cpython-35.pyc
byte-compiling build\bdist.win32\egg\serial\win32.py to win32.cpython-35.pyc
byte-compiling build\bdist.win32\egg\serial\__init__.py to __init__.cpython-35.pyc
creating build\bdist.win32\egg\EGG-INFO
installing scripts to build\bdist.win32\egg\EGG-INFO\scripts
running install_scripts
running build_scripts
creating build\scripts-3.5
copying and adjusting serial\tools\miniterm.py -> build\scripts-3.5
creating build\bdist.win32\egg\EGG-INFO\scripts
copying build\scripts-3.5\miniterm.py -> build\bdist.win32\egg\EGG-INFO\scripts
copying pyserial.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO
copying pyserial.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO
copying pyserial.egg-info\dependency_links.txt -> build\bdist.win32\egg\EGG-INFO
copying pyserial.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist\pyserial-3.1a0-py3.5.egg' and adding 'build\bdist.win32\egg' to it
removing 'build\bdist.win32\egg' (and everything under it)
Processing pyserial-3.1a0-py3.5.egg
Copying pyserial-3.1a0-py3.5.egg to c:\program files (x86)\python35-32\lib\site-packages
Removing pyserial 3.0.1 from easy-install.pth file
Adding pyserial 3.1a0 to easy-install.pth file
Installing miniterm.py script to C:\Program Files (x86)\Python35-32\Scripts

Installed c:\program files (x86)\python35-32\lib\site-packages\pyserial-3.1a0-py3.5.egg
Processing dependencies for pyserial==3.1a0
Finished processing dependencies for pyserial==3.1a0

And Freecad gives me the same error when trying to import NiCrSerial
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "C:\Program Files\FreeCAD 0.15\Mod\Workbench\NiCrSerial.py", line 1, in <module>
import serial
ImportError: No module named serial


Any idea?
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: NiCr: CNC Hot Wire Cutter

Post by microelly2 »

FreeCAD uses it own python installation

serial is installed but not found
If you type in the python console window

Code: Select all

import serial
an error will occur.

your package is installed to
c:\program files (x86)\python35-32\lib\site-packages\
there is a pyserial-3.1a0-py3.5.egg and a serial-subdirectory

but it should be installed
your FreeCAD directory\bin\Lib\site-packages

May be it helps to copy the directory and the egg file to this position.
User avatar
vcode
Posts: 8
Joined: Sun Apr 24, 2016 9:48 pm
Location: Spain

Re: NiCr: CNC Hot Wire Cutter

Post by vcode »

I've copied the files in the Freecad directory but the console says the same.

i thought it would be more easy.

I don't have any arduino board connected to my computer, it doesn't matter, really?
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: NiCr: CNC Hot Wire Cutter

Post by microelly2 »

It's still an installation problem, a not connected usb raises another error.

I need some time and access to a windows computer.
then I can say more.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: NiCr: CNC Hot Wire Cutter

Post by sgrogan »

Copying just the serial folder to .../bin/Lib/site-packages, worked for me.
serial.PNG
serial.PNG (5.62 KiB) Viewed 2975 times
"fight the good fight"
User avatar
vcode
Posts: 8
Joined: Sun Apr 24, 2016 9:48 pm
Location: Spain

Re: NiCr: CNC Hot Wire Cutter

Post by vcode »

Hi sgrogan, that was the point!!
I've copied the files in the Freecad/lib/ directory and the corrent one is Freecad/bin/lib :lol:
Now works the serial lib but the SimMachine doesn't appears. :cry:
JMG
Posts: 287
Joined: Wed Dec 25, 2013 9:32 am
Location: Spain
Contact:

Re: NiCr: CNC Hot Wire Cutter

Post by JMG »

Hi vcode!
Now works the serial lib but the SimMachine doesn't appears. :cry:
Could you give the steps needed to reproduce that issue?


Javier.
FreeCAD scripts, animations, experiments and more: http://linuxforanengineer.blogspot.com.es/
Open source CNC hot wire cutter project (NiCr): https://github.com/JMG1/NiCr
Exploded Assembly Workbench: https://github.com/JMG1/ExplodedAssembly
User avatar
vcode
Posts: 8
Joined: Sun Apr 24, 2016 9:48 pm
Location: Spain

Re: NiCr: CNC Hot Wire Cutter

Post by vcode »

As you can see, in your video (left side) when you push the "Create machine" button, appears SimMachine, but in may case (right side) nothing appears.

Image

i've tried "dev" and "master" branch with the same result.

And when i try to create a WirePath of a cube, this is what happends
Image
JMG
Posts: 287
Joined: Wed Dec 25, 2013 9:32 am
Location: Spain
Contact:

Re: NiCr: CNC Hot Wire Cutter

Post by JMG »

Interesting....

The report view displays something when that (SimMachine not created) happens?

The third picture (box path) is not problematic, that weird path has something to do with reversed edges and only affects visualization.

edit: Have you tried the "example.fcstd" file provided?
FreeCAD scripts, animations, experiments and more: http://linuxforanengineer.blogspot.com.es/
Open source CNC hot wire cutter project (NiCr): https://github.com/JMG1/NiCr
Exploded Assembly Workbench: https://github.com/JMG1/ExplodedAssembly
Post Reply