Issue259

Title Multiprocessing Win64 Thread
Priority bug Status resolved
Superseder Nosy List marc.jofre
Assigned To Keywords

Created on 2015-10-27.07:30:35 by marc.jofre, last changed by kayhayen.

Files
File name Uploaded Type Edit Remove
DebugDump.rtf marc.jofre, 2015-12-23.11:24:32 application/msword
RPCconnectTests.py marc.jofre, 2015-11-06.21:12:30 text/plain
ReaderTest.py marc.jofre, 2015-11-06.21:12:10 text/plain
wampserverTest.py marc.jofre, 2015-11-06.21:12:18 text/plain
Messages
msg2511 (view) Author: kayhayen Date: 2018-08-23.23:31:54
Can you retry? I think Nuitka has gotten a lot of improvements in the mean time 
and should work better now.

Yours,
Kay
msg1741 (view) Author: marc.jofre Date: 2015-12-23.11:24:32
Hi all,

Find attach the debug dump while operating the compiled scripts with nuitka 
standalone.

The big message is:

The thread 'Win64 Thread' (0x1f3c) has exited with code 0 (0x0).
Unhandled exception at 0x77a2cf24 in wampserver.exe: 0x80000001: Not 
implemented.

A list of documentation and test links:

https://bugs.python.org/issue21204

https://docs.python.org/2/library/multiprocessing.html

https://docs.python.org/2/c-api/init.html

https://www.jeffknupp.com/blog/2013/06/30/pythons-hardest-problem-revisited/

https://www.reddit.com/r/Python/comments/2os0ip/python_thread_locking_issues_wit
h_python_27_and/
msg1718 (view) Author: marc.jofre Date: 2015-11-30.14:21:34
Hi Kay,

Any advice or recommendation on how to evelove with this issue?

I confirm that nuitka 0.5.17pre3 compiles the code withoout error. Then, at 
execution time the error is the same as listed in previous messages.

Marc
msg1685 (view) Author: marc.jofre Date: 2015-11-06.21:14:53
Hi all,

I reproduced the execution error in a test example:

nuitka compile:

nuitka --exe --explain-imports --file-reference-choice=original --recurse-all --
recurse-to=multiprocessing --plugin-enable=multiprocessing --recurse-not-
to=PySide RPCconnectTests.py


nuitka --exe --explain-imports --file-reference-choice=original --recurse-all --
recurse-to=multiprocessing --plugin-enable=multiprocessing --recurse-not-
to=PySide wampserverTest.py

Then, in command line execute:
RPCconnectTests.exe

The windows command line dump is:
<type 'compiled_function'>

Then, stop with Ctrl+C

Then, execute again RPCconnectTests.exe

The windows command line dump is:
Traceback (most recent call last):
  File "D:\productgeneraldistributables\backend\Backend_GUI\mysite\mysite\test\w
ampserverTest.py", line 30, in __parents_main__
    from twisted.internet import reactor
  File "D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\twisted\
internet\reactor.py", line 38, in reactor
    from twisted.internet import default
  File "D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\twisted\
internet\default.py", line 56, in default
    install = _getInstallFunction(platform)
  File "D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\twisted\
internet\default.py", line 50, in _getInstallFunction
    from twisted.internet.selectreactor import install
  File "D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\twisted\
internet\selectreactor.py", line 18, in selectreactor
    from twisted.internet import posixbase
  File "D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\twisted\
internet\posixbase.py", line 23, in posixbase
    from twisted.internet import error, udp, tcp
  File "D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\twisted\
internet\tcp.py", line 29, in tcp
    from twisted.internet._newtls import (
  File "D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\twisted\
internet\_newtls.py", line 21, in _newtls
    from twisted.protocols.tls import TLSMemoryBIOFactory, TLSMemoryBIOProtocol
SystemError: NULL result without error in CALL_FUNCTION
Traceback (most recent call last):
  File "D:\productgeneraldistributables\backend\Backend_GUI\mysite\mysite\test\w
ampserverTest.py", line 105, in <module>
    mainWampServer(arguments)
  File "D:\productgeneraldistributables\backend\Backend_GUI\mysite\mysite\test\w
ampserverTest.py", line 61, in mainWampServer
    connection = serverRPCconnectTest()
  File "D:\productgeneraldistributables\backend\Backend_GUI\mysite\mysite\test\R
PCconnectTests.py", line 70, in __init__
    self.res=0
  File "D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\multipro
cessing\__init__.py", line 104, in Manager
    m.start()
  File "D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\multipro
cessing\managers.py", line 502, in start
    self._address = reader.recv()
EOFError

It raises a multiprocessing error. What is it to be improved?
msg1680 (view) Author: marc.jofre Date: 2015-10-30.14:30:18
Hi Kay,

I recompiled the wampserver.py in non-standalone mode. When executing the 
program a message of copy_reg module not found:

ImportError: No module named copy_reg

Which other information do you need?
msg1676 (view) Author: marc.jofre Date: 2015-10-30.07:19:27
Hi,

After re-launching the executable just after a failed execution, the windows 
command line prompt is different from the previous one:

Traceback (most recent call last):
  File "D:\productgeneraldistributables\backend\Backend_GUI\mysite\mysite\wampse
rver.py", line 122, in <module>
    mainWampServer(arguments)
  File "D:\productgeneraldistributables\backend\Backend_GUI\mysite\mysite\wampse
rver.py", line 73, in mainWampServer
    connection = serverRPCconnectCYT()
UnboundLocalError: local variable 'serverRPCconnectCYT' referenced before assign
ment
msg1675 (view) Author: marc.jofre Date: 2015-10-30.07:15:38
Hi Kay,

Using the plugin functionality, nuitka compiles. When the executable is launched 
it proceed accordingly.

When executing and making use of wampserver "An unhandled win32 exception 
occurred in wampserver.exe [3532]":

The thread 'Win64 Thread' (0x1ff4) has exited with code 0 (0x0).
Unhandled exception at 0x7748b8d2 in wampserver.exe: 0x80000001: Not 
implemented.

An issue with Win64 Thread occured. How to proceed?
msg1674 (view) Author: marc.jofre Date: 2015-10-29.18:00:32
Hi Kay,

I am nuitka compiling using the --recurse-plugin of the containing folder 
mysite (which contains the script RPCconnectCYT. Then in the build folder it 
is compiled the module.mysite.RPCconnectCYT

In the RPCconnectCYT it is imported as:
from RPCconnectCYT import ConnectionRpc as serverRPCconnectCYT

Will the nuitka compiled script wampserver.py correctly detected and import 
the file?
msg1673 (view) Author: marc.jofre Date: 2015-10-29.09:55:36
Hi Kay,

I use the --recurse-plugin to make sure to recurse to the script 
RPCconnectCYT.py. In the folder mysite, there are several scripts which 
contain a main function, thus nuitka warns with message:

Nuitka:WARNING:Re-importing '__main__' module via its filename duplicates 
the mo
dule code. You might want to use sys.modules["__main__"] instead.


Which are your indications?

The command line prompt dump:
D:\SixSensoCompilation\cytometer\ExeWebBased64bits\wampserver.build>nuitka -
-exe
 --standalone --file-reference-choice=original --output-
dir=D:/SixSensoCompilati
on/cytometer/ExeWebBased64bits/ --recurse-all --recurse-to=multiprocessing -
-plu
gin-enable=multiprocessing --recurse-not-to=PySide --recurse-
plugin=D:/productge
neraldistributables/backend/Backend_GUI/mysite/mysite/ --recurse-not-
to=RPCconne
ctMBI --recurse-not-to=HZM --recurse-not-to=MBI --recurse-
directory=D:/productge
neraldistributables/softwaregeneralscripts 
D:/productgeneraldistributables/backe
nd/Backend_GUI/mysite/mysite/wampserver.py
Nuitka:WARNING:Re-importing '__main__' module via its filename duplicates 
the mo
dule code. You might want to use sys.modules["__main__"] instead.
msg1671 (view) Author: marc.jofre Date: 2015-10-28.07:13:33
Hi Kay,

The warning says:
Nuitka:WARNING:Failed to recurse to directory 'RPCconnectCYT'.

How so I specify to nuitka that RPCconnectCYT is a script and it does have to 
recurse it?
msg1670 (view) Author: marc.jofre Date: 2015-10-28.06:24:25
Hi Kay

The line call to nuitka compilation I have included --recurse-
plugin=RPCconnectCYT:
nuitka --exe --standalone --file-reference-choice=original --output-
dir=D:/SixSensoCompilation/cytometer/ExeWebBased64bits/ --recurse-all --recurse-
to=multiprocessing --plugin-enable=multiprocessing --recurse-not-to=PySide --
recurse-plugin=RPCconnectCYT --recurse-not-to=HZM --recurse-not-to=MBI --
recurse-directory=D:/productgeneraldistributables/softwaregeneralscripts 
D:/productgeneraldistributables/backend/Backend_GUI/mysite/mysite/wampserver.py

Exactly, nuitka warning on RPCconnectCYT:
Nuitka:WARNING:Failed to recurse to directory 'RPCconnectCYT'.

The command windows prompt dump is:

D:\SixSensoCompilation\cytometer\ExeWebBased64bits\wampserver.build>nuitka --exe
 --standalone --file-reference-choice=original --output-dir=D:/SixSensoCompilati
on/cytometer/ExeWebBased64bits/ --recurse-all --recurse-to=multiprocessing --plu
gin-enable=multiprocessing --recurse-not-to=PySide --recurse-plugin=RPCconnectCY
T --recurse-not-to=HZM --recurse-not-to=MBI --recurse-directory=D:/productgenera
ldistributables/softwaregeneralscripts D:/productgeneraldistributables/backend/B
ackend_GUI/mysite/mysite/wampserver.py
Nuitka:WARNING:Failed to recurse to directory 'RPCconnectCYT'.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\n
umpy\distutils\__init__.py:16: Cannot find '__config__' in package 'numpy.distut
ils' as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\c
onfigparser.py:130: Cannot find 'ordereddict' as relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\n
umpy\distutils\system_info.py:1765: Cannot find 'Numeric' in package 'numpy.dist
utils' as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\n
umpy\distutils\system_info.py:1770: Cannot find 'numarray' in package 'numpy.dis
tutils' as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\n
umpy\f2py\diagnose.py:48: Cannot find 'numpy_distutils' in package 'numpy.f2py'
as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\n
umpy\f2py\diagnose.py:87: Cannot find 'numpy_distutils.command.build_flib' in pa
ckage 'numpy.f2py' as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\n
umpy\f2py\diagnose.py:107: Cannot find 'numpy_distutils.fcompiler' in package 'n
umpy.f2py' as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\n
umpy\f2py\diagnose.py:129: Cannot find 'numpy_distutils.command.cpuinfo' in pack
age 'numpy.f2py' as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\n
umpy\f2py\diagnose.py:135: Cannot find 'numpy_distutils.cpuinfo' in package 'num
py.f2py' as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\n
ose\suite.py:22: Cannot find 'clr' in package 'nose' as relative or absolute imp
ort.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\n
ose\suite.py:24: Cannot find 'IronPython.Runtime.Exceptions' in package 'nose' a
s relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\n
ose\plugins\skip.py:22: Cannot find 'unittest2.case' in package 'nose.plugins' a
s relative or absolute import.
Nuitka:INFO:Injecting plug-in based pre load code for module 'multiprocessing.fo
rking':
Nuitka:INFO:    Monkey patching "multiprocessing" load environment.
Nuitka:INFO:Injecting plug-in based post load code for module 'multiprocessing.f
orking':
Nuitka:INFO:    Monkey patching "multiprocessing" for compiled methods.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\m
ultiprocessing\heap.py:18: Cannot find 'multiprocessing._mmap25' in package 'mul
tiprocessing' as relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\p
kg_resources\__init__.py:94: Cannot find 'packaging.version' in package 'pkg_res
ources' as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\p
kg_resources\__init__.py:95: Cannot find 'packaging.specifiers' in package 'pkg_
resources' as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\n
umpy\distutils\command\build_src.py:18: Cannot find 'Pyrex.Compiler.Main' in pac
kage 'numpy.distutils.command' as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\n
umpy\f2py\__version__.py:6: Cannot find '__svn_version__' in package 'numpy.f2py
' as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\s
etuptools\compat.py:46: Cannot find 'http.server' in package 'setuptools' as rel
ative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\s
etuptools\sandbox.py:14: Cannot find 'org.python.modules.posix.PosixModule' in p
ackage 'setuptools' as relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\t
wisted\python\util.py:621: Cannot find 'twisted.python._initgroups' in package '
twisted.python' as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\t
wisted\internet\_sslverify.py:167: Cannot find 'service_identity' in package 'tw
isted.internet' as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\t
wisted\internet\_sslverify.py:168: Cannot find 'service_identity.pyopenssl' in p
ackage 'twisted.internet' as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\p
ycparser\ply\yacc.py:108: Cannot find 'ply.lex' in package 'pycparser.ply' as re
lative or absolute import.
Nuitka:WARNING:D:\productgeneraldistributables\softwaregeneralscripts\PythonAlgP
roc\WavelengthRetrieval.py:15: Cannot find 'scipy.optimize.leastsq' as relative
or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\s
kimage\color\colorlabel.py:8: Cannot find 'skimage._shared.six.moves' in package
 'skimage.color' as relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\s
cipy\misc\pilutil.py:22: Cannot find 'Image' in package 'scipy.misc' as absolute
 import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\s
cipy\misc\pilutil.py:23: Cannot find 'ImageFilter' in package 'scipy.misc' as ab
solute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\P
IL\GifImagePlugin.py:213: Cannot find '_imaging_gif' in package 'PIL' as relativ
e or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\s
cipy\sparse\linalg\dsolve\linsolve.py:14: Cannot find 'scikits.umfpack' in packa
ge 'scipy.sparse.linalg.dsolve' as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\m
atplotlib\pyplot.py:90: Cannot find 'PyQt5.QtWidgets' in package 'matplotlib' as
 absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\m
atplotlib\pyplot.py:96: Cannot find 'gobject' in package 'matplotlib' as absolut
e import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\m
atplotlib\hatch.py:9: Cannot find 'six.moves' in package 'matplotlib' as absolut
e import.
Nuitka:WARNING:Use --plugin-enable=qt-plugins for: Inclusion of Qt plugins.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\m
atplotlib\mlab.py:3441: Cannot find 'mpl_toolkits.natgrid' in package 'matplotli
b' as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\m
atplotlib\tri\triinterpolate.py:8: Cannot find 'six.moves' in package 'matplotli
b.tri' as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\m
atplotlib\axes\_axes.py:5: Cannot find 'six.moves' in package 'matplotlib.axes'
as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\m
atplotlib\backends\backend_svg.py:5: Cannot find 'six.moves' in package 'matplot
lib.backends' as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\t
ornado\platform\auto.py:43: Cannot find 'monotime' in package 'tornado.platform'
 as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\t
ornado\httputil.py:41: Cannot find 'http.cookies' in package 'tornado' as absolu
te import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\s
erial\serialposix.py:20: Cannot find 'TERMIOS' in package 'serial' as relative o
r absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\s
erial\serialposix.py:25: Cannot find 'FCNTL' in package 'serial' as relative or
absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\s
erial\serialcli.py:9: Cannot find 'clr' in package 'serial' as relative or absol
ute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\s
erial\serialcli.py:10: Cannot find 'System' in package 'serial' as relative or a
bsolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\s
erial\serialcli.py:11: Cannot find 'System.IO.Ports' in package 'serial' as rela
tive or absolute import.
Nuitka:WARNING:D:\productgeneraldistributables\softwaregeneralscripts\PythonAlgP
roc\ImageSensorCapture.py:87: Cannot find 'PythonWrapHamamatsuC12081captureCAM'
as relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\s
kimage\segmentation\random_walker_segmentation.py:36: Cannot find 'pyamg' in pac
kage 'skimage.segmentation' as relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\s
cipy\sparse\linalg\dsolve\umfpack\_umfpack.py:20: Cannot find '__umfpack' in pac
kage 'scipy.sparse.linalg.dsolve.umfpack' as relative or absolute import.
Nuitka:WARNING:D:\productgeneraldistributables\softwaregeneralscripts\PythonAlgP
roc\ImageHandling.py:20: Cannot find 'skimage.restoration' as relative or absolu
te import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\p
ygments\formatters\html.py:22: Cannot find 'ctags' in package 'pygments.formatte
rs' as relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\C
ython\Debugger\DebugWriter.py:22: Cannot find 'cElementTree' in package 'Cython.
Debugger' as relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\C
ython\Debugger\DebugWriter.py:26: Cannot find 'elementtree.ElementTree' in packa
ge 'Cython.Debugger' as relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\I
Python\kernel\zmq\gui\gtkembed.py:17: Cannot find 'gobject' in package 'IPython.
kernel.zmq.gui' as relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\I
Python\kernel\zmq\gui\gtkembed.py:18: Cannot find 'gtk' in package 'IPython.kern
el.zmq.gui' as relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\I
Python\external\appnope\__init__.py:3: Cannot find 'appnope' in package 'IPython
.external.appnope' as relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\I
Python\external\ssh\tunnel.py:35: Cannot find 'paramiko' in package 'IPython.ext
ernal.ssh' as relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\I
Python\external\pexpect\__init__.py:2: Cannot find 'pexpect' in package 'IPython
.external.pexpect' as relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\I
Python\external\ssh\forward.py:33: Cannot find 'socketserver' in package 'IPytho
n.external.ssh' as relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\I
Python\parallel\client\map.py:39: Cannot find 'Numeric' in package 'IPython.para
llel.client' as relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\I
Python\parallel\client\map.py:51: Cannot find 'numarray' in package 'IPython.par
allel.client' as relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\I
Python\utils\pickleutil.py:50: Cannot find 'dill' in package 'IPython.utils' as
relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\I
Python\utils\_process_cli.py:15: Cannot find 'clr' in package 'IPython.utils' as
 relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\I
Python\utils\_process_cli.py:16: Cannot find 'System' in package 'IPython.utils'
 as relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\I
Python\core\debugger.py:46: Cannot find 'pydb' in package 'IPython.core' as rela
tive or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\I
Python\core\debugger.py:229: Cannot find 'pydb.fns' in package 'IPython.core' as
 relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\I
Python\lib\inputhook.py:298: Cannot find 'gtk' in package 'IPython.lib' as relat
ive or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\I
Python\lib\inputhook.py:375: Cannot find 'OpenGL.GLUT' in package 'IPython.lib'
as relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\I
Python\lib\inputhook.py:410: Cannot find 'glut_support' in package 'IPython.lib'
 as relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\I
Python\lib\inputhookgtk3.py:20: Cannot find 'gi.repository' in package 'IPython.
lib' as relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\I
Python\lib\inputhookpyglet.py:27: Cannot find 'pyglet' in package 'IPython.lib'
as relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\I
Python\lib\inputhookglut.py:38: Cannot find 'OpenGL.platform' in package 'IPytho
n.lib' as relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\I
Python\lib\inputhookgtk.py:20: Cannot find 'gobject' in package 'IPython.lib' as
 relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\p
yreadline\keysyms\common.py:127: Cannot find 'startup' in package 'pyreadline.ke
ysyms' as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\p
yreadline\keysyms\ironpython_keysyms.py:10: Cannot find 'System' in package 'pyr
eadline.keysyms' as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\p
yreadline\clipboard\ironpython_clipboard.py:9: Cannot find 'clr' in package 'pyr
eadline.clipboard' as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\p
yreadline\clipboard\ironpython_clipboard.py:11: Cannot find 'System.Windows.Form
s.Clipboard' in package 'pyreadline.clipboard' as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\p
yreadline\console\ansi.py:177: Cannot find 'console' in package 'pyreadline.cons
ole' as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\p
yreadline\console\ironpython_console.py:29: Cannot find 'clr' in package 'pyread
line.console' as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\p
yreadline\console\ironpython_console.py:31: Cannot find 'IronPythonConsole' in p
ackage 'pyreadline.console' as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\p
yreadline\console\ironpython_console.py:37: Cannot find 'System' in package 'pyr
eadline.console' as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\p
yreadline\rlmain.py:31: Cannot find 'System' in package 'pyreadline' as absolute
 import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\I
Python\utils\localinterfaces.py:144: Cannot find 'netifaces' in package 'IPython
.utils' as relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\z
mq\eventloop\minitornado\platform\auto.py:39: Cannot find 'monotime' in package
'zmq.eventloop.minitornado.platform' as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\z
mq\sugar\context.py:78: Cannot find 'pyczmq' in package 'zmq.sugar' as relative
or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\I
Python\core\history.py:24: Cannot find 'pysqlite2' in package 'IPython.core' as
relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\I
Python\external\simplegeneric\__init__.py:2: Cannot find 'simplegeneric' in pack
age 'IPython.external.simplegeneric' as relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\I
Python\testing\iptestcontroller.py:497: Cannot find 'coverage' in package 'IPyth
on.testing' as relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\I
Python\testing\iptestcontroller.py:510: Cannot find 'coverage.html' in package '
IPython.testing' as relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\I
Python\core\interactiveshell.py:964: Cannot find 'pydb' in package 'IPython.core
' as absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\r
edis\utils.py:5: Cannot find 'hiredis' in package 'redis' as relative or absolut
e import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\o
penpyxl\reader\excel.py:18: Cannot find 'tests' in package 'openpyxl' 2 package
levels up.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\j
dcal.py:453: Cannot find 'pyslalib' as relative or absolute import.
Nuitka:WARNING:D:\WinPython-64bit-2.7.6.3\python-2.7.6.amd64\Lib\site-packages\o
penpyxl\drawing\drawing.py:422: Cannot find 'Image' in package 'openpyxl.drawing
' as absolute import.
msg1669 (view) Author: kayhayen Date: 2015-10-27.07:35:34
The --recurse-to just allows to recurse to something, it doesn't require that, 
so if it's in the --recurse-directory (better name is actually --recurse-
plugin), then it will be picked up no matter what.

I think you ought to get warnings about --recurse-to, if Nuitka finds in the 
end, it wasn't done, don't you?

Yours,
Kay
msg1668 (view) Author: marc.jofre Date: 2015-10-27.07:30:35
Hi all,

Wampserver.py is called every time a new connection to the server is processed. 

I attach an example script (wampserver.py) using global variables along classes. 
With nuitka standalone compiled code a command line prompt is:

RPCconnectHZM could not be imported
RPCconnectCYT could not be imported
RPCconnectMBI could not be imported
Traceback (most recent call last):
  File "D:\productgeneraldistributables\backend\Backend_GUI\mysite\mysite\wampse
rver.py", line 121, in <module>

  File "D:\productgeneraldistributables\backend\Backend_GUI\mysite\mysite\wampse
rver.py", line 72, in mainWampServer
    global connection
UnboundLocalError: local variable 'serverRPCconnectCYT' referenced before assign
ment


The nuitka command compilation line is:
nuitka --exe --standalone --file-reference-choice=original --output-
dir=D:/SixSensoCompilation/cytometer/ExeWebBased64bits/ --recurse-all --recurse-
to=multiprocessing --plugin-enable=multiprocessing --recurse-not-to=PySide --
recurse-to=RPCconnectCYT --recurse-not-to=HZM --recurse-not-to=MBI --recurse-
directory=D:/productgeneraldistributables/softwaregeneralscripts 
D:/productgeneraldistributables/backend/Backend_GUI/mysite/mysite/wampserver.py

Where I indicate to recurse to RPCconnectCYT.

Best,

Marc
History
Date User Action Args
2018-09-13 12:10:55kayhayensetstatus: testing -> resolved
2018-08-23 23:31:54kayhayensetstatus: chatting -> testing
messages: + msg2511
2015-12-23 11:24:32marc.jofresetfiles: + DebugDump.rtf
messages: + msg1741
2015-11-30 14:21:34marc.jofresetmessages: + msg1718
2015-11-15 14:30:31marc.jofresettitle: Import Script and Issue with Win64 Thread -> Multiprocessing Win64 Thread
2015-11-06 21:14:53marc.jofresetmessages: + msg1685
2015-11-06 21:12:54marc.jofresetmessages: - msg1684
2015-11-06 21:12:30marc.jofresetfiles: + RPCconnectTests.py
2015-11-06 21:12:18marc.jofresetfiles: + wampserverTest.py
2015-11-06 21:12:10marc.jofresetfiles: + ReaderTest.py
messages: + msg1684
2015-11-06 21:08:37marc.jofresetfiles: - wampserver.py
2015-11-06 21:08:35marc.jofresetfiles: - RPCconnectCYT.py
2015-10-30 14:30:18marc.jofresetmessages: + msg1680
2015-10-30 07:19:27marc.jofresetmessages: + msg1676
title: Issue with Win64 Thread -> Import Script and Issue with Win64 Thread
2015-10-30 07:15:38marc.jofresetmessages: + msg1675
title: global variables and compiling modules -> Issue with Win64 Thread
2015-10-29 18:00:32marc.jofresetmessages: + msg1674
2015-10-29 09:55:36marc.jofresetmessages: + msg1673
2015-10-28 07:13:33marc.jofresetfiles: + RPCconnectCYT.py
messages: + msg1671
2015-10-28 06:24:25marc.jofresetmessages: + msg1670
2015-10-27 07:35:34kayhayensetstatus: unread -> chatting
messages: + msg1669
2015-10-27 07:30:35marc.jofrecreate