Hi all ! firstofall : thanks a lot for this marvellous software that allow s to port our python code under lot of platform so easily !!!
I have an issue when adding pyqtgraph as package in build options : "packages": ["os", "cv2", "pyqtgraph"] -> at processing : #### Traceback (most recent call last): File "setup_win.py", line 68, in <module> setup( name = "pymecavideo", File "C:\Python38\lib\site-packages\cx_Freeze\dist.py", line 392, in setup distutils.core.setup(**attrs) File "C:\Python38\lib\distutils\core.py", line 148, in setup dist.run_commands() File "C:\Python38\lib\distutils\dist.py", line 966, in run_commands self.run_command(cmd) File "C:\Python38\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "C:\Python38\lib\distutils\command\build.py", line 135, in run self.run_command(cmd_name) File "C:\Python38\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "C:\Python38\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "C:\Python38\lib\site-packages\cx_Freeze\dist.py", line 260, in run freezer.Freeze() File "C:\Python38\lib\site-packages\cx_Freeze\freezer.py", line 732, in Freeze self.finder = self._GetModuleFinder() File "C:\Python38\lib\site-packages\cx_Freeze\freezer.py", line 437, in _GetModuleFinder finder.IncludePackage(name) File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 700, in IncludePackage self._ImportAllSubModules(module, deferredImports) File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 311, in _ImportAllSubModules self._ImportAllSubModules( File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 302, in _ImportAllSubModules subModule = self._InternalImportModule( File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 437, in _InternalImportModule module = self._LoadModule( File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 497, in _LoadModule self._ScanCode(module.code, module, deferredImports) File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 615, in _ScanCode importedModule = self._ImportModule( File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 337, in _ImportModule module = self._InternalImportModule(name, deferredImports) File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 437, in _InternalImportModule module = self._LoadModule( File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 450, in _LoadModule return self._LoadPackage(name, path, parent, deferredImports) File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 518, in _LoadPackage self._LoadModule(name, fp, path, info, deferredImports, parent) File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 497, in _LoadModule self._ScanCode(module.code, module, deferredImports) File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 615, in _ScanCode importedModule = self._ImportModule( File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 369, in _ImportModule module = self._InternalImportModule(name, deferredImports) File "C:\Python38\lib\site-packages\cx_Freeze\finder.py", line 422, in _InternalImportModule spec = importlib.util.find_spec(name) File "C:\Python38\lib\importlib\util.py", line 94, in find_spec parent = __import__(parent_name, fromlist=['__path__']) File "C:\Python38\lib\site-packages\pyqtgraph\examples\relativity\__init__.py", line 1, in <module> from .relativity import * File "C:\Python38\lib\site-packages\pyqtgraph\examples\relativity\relativity.py", line 235, in <module> pTypes.registerParameterType('Clock', ClockParam) File "C:\Python38\lib\site-packages\pyqtgraph\parametertree\Parameter.py", line 14, in registerParameterType raise Exception("Parameter type '%s' already exists (use override=True to replace)" % name) Exception: Parameter type 'Clock' already exists (use override=True to replace) ################################### Is there a way to bypass this ? where using "override argument" ? NB : I'm using cx_freeze 6.4.2 Other thing, in my size optimization, i've noticed lot's of "python38.dll" everywhere.. at least 6...(24 Mo...) I can rm some without any issues...others are needed. any way to predict if python38.dll is needed or not in library directory ? Thanks a lot, JB
_______________________________________________ cx-freeze-users mailing list cx-freeze-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cx-freeze-users