[SOLVED] Cannot find OCL on recent version

Here's the place for discussion related to CAM/CNC and the development of the Path module.
RatonLaveur
Posts: 463
Joined: Wed Mar 27, 2019 10:45 am

[SOLVED] Cannot find OCL on recent version

Postby RatonLaveur » Fri Feb 14, 2020 8:54 am

Hello gents,

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.19327 (Git)
Build type: Release
Branch: master
Hash: 65c4e1bd11e0820cd1f1d6577d23bf9cdbb54247
Python version: 3.7.3
Qt version: 5.12.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Switzerland (en_CH)

for some reason on this version 0.19 pre when I open path and type into the python console "import ocl" OCL isnt found. It used to be pre-packaged, am I doing something wrong?

I do have the EnableExperimentalFeatures set to true (which has no bearing on OCL) but that's when I realized I still dont have access to 3D surface.

Can you help?

EDIT: marked as solved
Last edited by RatonLaveur on Sun Feb 23, 2020 10:55 pm, edited 1 time in total.
m0n5t3r
Posts: 97
Joined: Fri Feb 03, 2017 2:55 pm

Re: Cannot find OCL on recent version

Postby m0n5t3r » Fri Feb 14, 2020 8:56 pm

I have a few packages from the freecad-community PPA, and it looks like the python-opencamlib I have installed only has files for python 2.7; apt's history log says I updated it on February 8, not sure if it worked before nevermind, that's when I upgraded to ubuntu 18.04, that package hasn't been rebuilt since 2018 or so

do you have any kind of python console on windows? I mean, apart from the one in freecad... is the library somewhere in sys.path?
RatonLaveur
Posts: 463
Joined: Wed Mar 27, 2019 10:45 am

Re: Cannot find OCL on recent version

Postby RatonLaveur » Fri Feb 14, 2020 10:12 pm

I'll go check as soon as I'm back on the old cow.
User avatar
Russ4262
Posts: 360
Joined: Sat Jun 30, 2018 3:22 pm

Re: Cannot find OCL on recent version

Postby Russ4262 » Sat Feb 15, 2020 2:17 am

Evening Sir,
This has been an issue in the Windows builds for a while now.
RatonLaveur wrote:
Fri Feb 14, 2020 8:54 am
Hello gents,
...
for some reason on this version 0.19 pre when I open path and type into the python console "import ocl" OCL isnt found. It used to be pre-packaged, am I doing something wrong?

I do have the EnableExperimentalFeatures set to true (which has no bearing on OCL) but that's when I realized I still dont have access to 3D surface.

Can you help?

I've been going back to older binaries that I keep and copying the file, `ocl.pyd`. Go to the main directory of a previous FreeCAD binary with OCL working, and search for the file. Copy it. Paste it in the `lib` directory of the root FreeCAD directory of current nightly builds.

I have sent a PM to
sgrogan wrote:@SGrogan
about the issue.

Russ
RatonLaveur
Posts: 463
Joined: Wed Mar 27, 2019 10:45 am

Re: Cannot find OCL on recent version

Postby RatonLaveur » Sat Feb 15, 2020 9:34 am

Yes, that's what i did. Thanks for confirming and thank you for pinging sgrogan.
User avatar
sgrogan
Posts: 5630
Joined: Wed Oct 22, 2014 5:02 pm

Re: Cannot find OCL on recent version

Postby sgrogan » Sat Feb 15, 2020 12:43 pm

Russ4262 wrote:
Sat Feb 15, 2020 2:17 am
I have sent a PM to
Should be fixed now. ocl build is also available here:https://github.com/sgrogan/opencamlib/r ... ag/8612634
m0n5t3r
Posts: 97
Joined: Fri Feb 03, 2017 2:55 pm

Re: Cannot find OCL on recent version

Postby m0n5t3r » Sun Feb 16, 2020 9:22 am

this thread got me to finally look into getting OCL ubuntu packages for python3 building

hopefully it will make into the freecad-community PPA soon:
https://forum.freecadweb.org/viewtopic. ... 33#p369333