Forum

Author Topic: spurious fork  (Read 2261 times)

daniil.s.nikulin

  • Newbie
  • *
  • Posts: 4
    • View Profile
spurious fork
« on: June 27, 2019, 06:53:03 PM »
Hello.

I have unexpected fork of Metashape process after first import of sklearn.
Program is not crashing and continue work in valid mode. Reload of sklearn (importlib.reload) are not created new process. Import submodules of sklearn after head was imported are not created new process too.

New Metashape process are empty.

You can see behavior in attachment video by this link: https://yadi.sk/i/ns8Ln9ZOPd82hA
« Last Edit: June 27, 2019, 07:24:36 PM by daniil.s.nikulin »

PolarNick

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
Re: spurious fork
« Reply #1 on: July 05, 2019, 01:29:50 PM »
This is problem from sklearn:

 - https://bitbucket.org/hu-geomatics/enmap-box/issues/200/macos-ogr-error
 - https://bitbucket.org/hu-geomatics/enmap-box/issues/221/enmap-on-macos-mojave

Workaround:

Code: [Select]
import os
os.environ['JOBLIB_MULTIPROCESSING'] = '0'
import sklearn