Jump to content

Conflict in Python with FreeCAD and Cura


conz

Recommended Posts

Posted · Conflict in Python with FreeCAD and Cura

Hi,

after installing latest developer version of Freecad (0.14), cura crashes at start.

Is this a problem in cura or in FreeCAD?

I get following python error.

 


C:\Program Files (x86)\Cura_14.03>.\cura.bat
Traceback (most recent call last):
File "C:\Program Files (x86)\Cura_14.03\python\lib\runpy.py", line 162, in _ru
n_module_as_main
"__main__", fname, loader, pkg_name)
File "C:\Program Files (x86)\Cura_14.03\python\lib\runpy.py", line 72, in _run
_code
exec code in run_globals
File "C:\Program Files (x86)\Cura_14.03\Cura\cura.py", line 13, in <module>
from Cura.util import profile
File "Cura\util\profile.py", line 22, in <module>
import numpy
File "C:\Program Files (x86)\FreeCAD 0.14\bin\numpy\__init__.py", line 168, in <module>
from . import add_newdocs
File "C:\Program Files (x86)\FreeCAD 0.14\bin\numpy\add_newdocs.py", line 13,in <module>
from numpy.lib import add_newdoc
File "C:\Program Files (x86)\FreeCAD 0.14\bin\numpy\lib\__init__.py", line 8,in <module>
from .type_check import *
File "C:\Program Files (x86)\FreeCAD 0.14\bin\numpy\lib\type_check.py", line 11, in <module>
import numpy.core.numeric as _nx
File "C:\Program Files (x86)\FreeCAD 0.14\bin\numpy\core\__init__.py", line 6, in <module>
from . import multiarray
ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.

After uninstalling FreeCAD, cura is working again.

I have reported the problem in the freeCAD forum, too. (waiting for moderation)

http://www.freecadweb.org/

EDIT:

The thread in the FreeCAD forum:

http://forum.freecadweb.org/viewtopic.php?f=4&t=6254

---

Win7 64bit

Ultimaker 2

 

  • Link to post
    Share on other sites

    Posted · Conflict in Python with FreeCAD and Cura

    After installing freecad, can you do a "start->run->"cmd" in the big black screen run "SET", and report back all the output. Looks like freecad might be setting a global environment variable that's messing up Cura.

     

  • Link to post
    Share on other sites

    Posted · Conflict in Python with FreeCAD and Cura

    Hi Daid,

    my PC is busy right now (have to render a project). I'll reinstall FreeCAD a little bit later and check the "SET".

    Maybe you could take a look at the FreeCAD Forum, there is a reply by some developer of FreeCAD:

    http://forum.freecadweb.org/viewtopic.php?f=4&t=6254&e=0#p50129

     

    Question: Does cura have its own version of numpy? Because it seems that somewhere inside cura numpy gets imported which then finds that version of the FreeCAD installation.But then a numpy module can't be loaded because a certain DLL is missing. So from this point of view it must be an installer problem because it lacks of one or more files. But the problem is not that we set this path in the registry.

    The path is written in the registry under HKLM\Software\Python\PythonCore\2.6\PythonPath\FreeCAD 0.14.

     

     

  • Link to post
    Share on other sites

    Posted · Conflict in Python with FreeCAD and Cura

    @Daid, thank you for your posting in the FreeCAD-Forum.

    My rendering is not finished, yet. :(

    Will test your path check ("SET") tomorrow.

     

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • Introducing the UltiMaker Factor 4
        We are happy to announce the next evolution in the UltiMaker 3D printer lineup: the UltiMaker Factor 4 industrial-grade 3D printer, designed to take manufacturing to new levels of efficiency and reliability. Factor 4 is an end-to-end 3D printing solution for light industrial applications
        • 3 replies
      • UltiMaker Cura 5.7 stable released
        Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
         
          • Like
        • 26 replies
    ×
    ×
    • Create New...