Why can I import topologic in 0.20 but not 0.21

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
nmt
Posts: 29
Joined: Sun Feb 19, 2017 2:45 pm

Why can I import topologic in 0.20 but not 0.21

Post by nmt »

Hello,
I am able to import topologic in FC 0.20 but not in 0.21 Can someone clue me as to why? Thanks
FreeCADvsTopologic.png
FreeCADvsTopologic.png (355.14 KiB) Viewed 1162 times
Last edited by nmt on Wed Nov 09, 2022 7:15 am, edited 3 times in total.
User avatar
onekk
Veteran
Posts: 6197
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Why can I import topologic in 2.0 but not 2.1

Post by onekk »

Not without following the IMPORTANT information required.

FreeCAD has no version 2.0 or 2.1 as a side note.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
User avatar
nmt
Posts: 29
Joined: Sun Feb 19, 2017 2:45 pm

Re: Why can I import topologic in 2.0 but not 2.1

Post by nmt »

Yes sorry, I meant 0.20 and 0.21 just a typo, but the questions remains
User avatar
onekk
Veteran
Posts: 6197
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Why can I import topologic in 2.0 but not 2.1

Post by onekk »

nmt wrote: Wed Nov 09, 2022 7:12 am Yes sorry, I meant 0.20 and 0.21 just a typo, but the questions remains
side note this is not a question regarding:
Developers corner
Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
More related IMHO to:
Python scripting and macros
Need help, or want to share a macro? Post here!
To progress in the discussion, see:
https://forum.freecadweb.org/viewtopic.php?f=3&t=2264

About how to supply a "proper FC version info".

Answer "quality" depends on question "quality", so:

Are you sure that you have topologic available in the "python path" of the FC version you are using?
It is installed and bundled with FreeCAD?

Both of these answers will have been avoided with a "proper version info".

Help us to help you, and please read "forum titles".

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
paullee
Veteran
Posts: 5118
Joined: Wed May 04, 2016 3:58 pm

Re: Why can I import topologic in 0.20 but not 0.21

Post by paullee »

With the new TopologicPy (in addition to the Topologic), I find it now works in 0.21_pre, AppImage, on my Fedora 36.

There seems some tricks and with the help of Brunopostle and Dr. Wassim, it seems below procedures works on my Fedora 26 "-
- https://community.osarch.org/discussion ... gic#latest

  1. Ensure all previous topologic rpm packages if any were un-installed
  2. Check in console :
    rpm -qa | grep -i 'topologic'
    (e.g. I had Brunopostle's Copr rpm installed, it seems it needs to be removed first)
  3. Then in console :
    pip install topologicpy

    EDIT - Found in fact no need below (anymore)
  4. Find where it is installed e.g.-
    (/home/paullee/.local/lib/python3.10/site-packages/topologicpy)
  5. In Python Console :
    sys.path.append("/home/paullee/.local/lib/python3.10/site-packages")
  6. Run FreeCAD 0.21_pre, I use AppImage - Not sure would it be different if other packages are used ...
    import topologicpy
    topologicpy.topologic.Vertex
    <"class 'topologic.Vertex'>
  7. It works ! :D
In FreeCAD 0.21_pre python 3.10.8 console -
Post Reply