Commit 8bff6b78 authored by yogesh.m's avatar yogesh.m

fixed exe file

parent 99b8a4d4
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
('c:\\users\\admin\\appdata\\local\\programs\\python\\python39\\tcl\\tcl8.6\\..\\tcl8',
'tcl8',
[],
'DATA',
[('tcl8\\8.6\\http-2.9.0.tm',
'c:\\users\\admin\\appdata\\local\\programs\\python\\python39\\tcl\\tcl8.6\\..\\tcl8\\8.6\\http-2.9.0.tm',
'DATA'),
('tcl8\\8.5\\msgcat-1.6.1.tm',
'c:\\users\\admin\\appdata\\local\\programs\\python\\python39\\tcl\\tcl8.6\\..\\tcl8\\8.5\\msgcat-1.6.1.tm',
'DATA'),
('tcl8\\8.5\\tcltest-2.5.0.tm',
'c:\\users\\admin\\appdata\\local\\programs\\python\\python39\\tcl\\tcl8.6\\..\\tcl8\\8.5\\tcltest-2.5.0.tm',
'DATA'),
('tcl8\\8.4\\platform-1.0.14.tm',
'c:\\users\\admin\\appdata\\local\\programs\\python\\python39\\tcl\\tcl8.6\\..\\tcl8\\8.4\\platform-1.0.14.tm',
'DATA'),
('tcl8\\8.4\\platform\\shell-1.1.4.tm',
'c:\\users\\admin\\appdata\\local\\programs\\python\\python39\\tcl\\tcl8.6\\..\\tcl8\\8.4\\platform\\shell-1.1.4.tm',
'DATA')])
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity type="win32" name="main" processorArchitecture="amd64" version="1.0.0.0"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" language="*" processorArchitecture="*" version="6.0.0.0" publicKeyToken="6595b64144ccf1df"/>
</dependentAssembly>
</dependency>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
</application>
</compatibility>
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
</windowsSettings>
</application>
</assembly>
\ No newline at end of file
This file lists modules PyInstaller was not able to find. This does not
necessarily mean this module is required for running your program. Python and
Python 3rd-party packages include a lot of conditional or optional modules. For
example the module 'ntpath' only exists on Windows, whereas the module
'posixpath' only exists on Posix systems.
Types if import:
* top-level: imported at the top-level - look at these first
* conditional: imported within an if-statement
* delayed: imported within a function
* optional: imported within a try-except-statement
IMPORTANT: Do NOT post this list to the issue-tracker. Use it as a basis for
tracking down the missing module yourself. Thanks!
missing module named _posixshmem - imported by multiprocessing.resource_tracker (conditional), multiprocessing.shared_memory (conditional)
missing module named 'org.python' - imported by copy (optional), xml.sax (delayed, conditional)
missing module named 'java.lang' - imported by platform (delayed, optional), xml.sax._exceptions (conditional)
missing module named multiprocessing.BufferTooShort - imported by multiprocessing (top-level), multiprocessing.connection (top-level)
missing module named multiprocessing.AuthenticationError - imported by multiprocessing (top-level), multiprocessing.connection (top-level)
missing module named _posixsubprocess - imported by subprocess (optional), multiprocessing.util (delayed)
missing module named _frozen_importlib_external - imported by importlib._bootstrap (delayed), importlib (optional), importlib.abc (optional), zipimport (top-level)
excluded module named _frozen_importlib - imported by importlib (optional), importlib.abc (optional), zipimport (top-level)
missing module named pep517 - imported by importlib.metadata (delayed)
missing module named posix - imported by os (conditional, optional), shutil (conditional)
missing module named resource - imported by posix (top-level)
missing module named grp - imported by subprocess (optional), shutil (optional), tarfile (optional), pathlib (delayed, optional)
missing module named pwd - imported by posixpath (delayed, conditional), subprocess (optional), shutil (optional), tarfile (optional), pathlib (delayed, conditional, optional), netrc (delayed, conditional), getpass (delayed), http.server (delayed, optional), webbrowser (delayed), distutils.util (delayed, conditional, optional)
missing module named org - imported by pickle (optional)
missing module named multiprocessing.get_context - imported by multiprocessing (top-level), multiprocessing.pool (top-level), multiprocessing.managers (top-level), multiprocessing.sharedctypes (top-level)
missing module named multiprocessing.TimeoutError - imported by multiprocessing (top-level), multiprocessing.pool (top-level)
missing module named multiprocessing.set_start_method - imported by multiprocessing (top-level), multiprocessing.spawn (top-level)
missing module named multiprocessing.get_start_method - imported by multiprocessing (top-level), multiprocessing.spawn (top-level)
missing module named pyimod02_importers - imported by C:\Users\Admin\AppData\Local\Programs\Python\Python39\Lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_pkgutil.py (top-level), C:\Users\Admin\AppData\Local\Programs\Python\Python39\Lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_pkgres.py (top-level)
missing module named StringIO - imported by six (conditional), pkg_resources._vendor.six (conditional)
missing module named termios - imported by getpass (optional), tty (top-level)
missing module named readline - imported by cmd (delayed, conditional, optional), code (delayed, conditional, optional), pdb (delayed, optional)
missing module named __builtin__ - imported by pkg_resources._vendor.pyparsing (conditional)
missing module named ordereddict - imported by pkg_resources._vendor.pyparsing (optional)
missing module named _manylinux - imported by pkg_resources._vendor.packaging.tags (delayed, optional)
missing module named 'pkg_resources.extern.pyparsing' - imported by pkg_resources._vendor.packaging.markers (top-level), pkg_resources._vendor.packaging.requirements (top-level)
missing module named 'win32com.shell' - imported by pkg_resources._vendor.appdirs (conditional, optional)
missing module named 'com.sun' - imported by pkg_resources._vendor.appdirs (delayed, conditional, optional)
missing module named com - imported by pkg_resources._vendor.appdirs (delayed)
missing module named win32api - imported by pkg_resources._vendor.appdirs (delayed, conditional, optional)
missing module named win32com - imported by pkg_resources._vendor.appdirs (delayed)
missing module named _winreg - imported by platform (delayed, optional), pkg_resources._vendor.appdirs (delayed, conditional)
missing module named pkg_resources.extern.packaging - imported by pkg_resources.extern (top-level), pkg_resources (top-level)
missing module named pkg_resources.extern.appdirs - imported by pkg_resources.extern (top-level), pkg_resources (top-level)
missing module named 'pkg_resources.extern.six.moves' - imported by pkg_resources (top-level), pkg_resources._vendor.packaging.requirements (top-level)
missing module named pkg_resources.extern.six - imported by pkg_resources.extern (top-level), pkg_resources (top-level)
missing module named vms_lib - imported by platform (delayed, optional)
missing module named java - imported by platform (delayed)
missing module named _scproxy - imported by urllib.request (conditional)
missing module named six.moves.range - imported by six.moves (top-level), dateutil.rrule (top-level)
runtime module named six.moves - imported by dateutil.tz.tz (top-level), dateutil.tz._factories (top-level), dateutil.tz.win (top-level), dateutil.rrule (top-level)
missing module named dateutil.tz.tzfile - imported by dateutil.tz (top-level), dateutil.zoneinfo (top-level)
missing module named bcrypt - imported by cryptography.hazmat.primitives.serialization.ssh (optional)
missing module named sets - imported by pytz.tzinfo (optional)
missing module named UserDict - imported by pytz.lazy (optional)
missing module named _gdbm - imported by dbm.gnu (top-level)
missing module named _dbm - imported by dbm.ndbm (top-level)
missing module named importlib_metadata - imported by asyncua (conditional)
missing module named asyncio.DefaultEventLoopPolicy - imported by asyncio (delayed, conditional), asyncio.events (delayed, conditional)
This diff is collapsed.
icon.ico

45.4 KB

import tkinter as tk
from opcua_transmitter import transmitter_main
from opcua_receiver import receive_main
import threading
class App(tk.Frame):
def __init__(self, master=None):
super().__init__(master)
self.master = master
self.master.geometry("400x300")
self.master.title("kl opcua cloner")
self.pack()
self.create_widgets()
......@@ -44,7 +47,7 @@ class App(tk.Frame):
self.server_hash_udp_ip_entry = tk.Entry(self)
self.server_hash_udp_ip_entry.pack(side="top")
self.server_hash_udp_port_label = tk.Label(self, text="Enter server_hash_port_ip:")
self.server_hash_udp_port_label = tk.Label(self, text="Enter server_hash_port:")
self.server_hash_udp_port_label.pack(side="top")
self.server_hash_udp_port_entry = tk.Entry(self)
self.server_hash_udp_port_entry.pack(side="top")
......@@ -119,20 +122,34 @@ class App(tk.Frame):
if(button_label=="Send"):
url = self.url_entry.get()
self.url_entry.configure(state="disabled")
namespace = self.namespace_entry.get()
self.namespace_entry.configure(state="disabled")
hash_server_ip = self.server_hash_udp_ip_entry.get()
hash_server_port = int(self.server_hash_udp_port_entry.get())
self.server_hash_udp_ip_entry.configure(state="disabled")
hash_server_port = self.server_hash_udp_port_entry.get()
self.server_hash_udp_port_entry.configure(state="disabled")
send_to_ip = self.server_udp_ip_entry.get()
send_to_port = int(self.server_udp_port_entry.get())
status = transmitter_main(hash_server_ip,hash_server_port,send_to_ip,send_to_port,url,namespace)
self.server_udp_ip_entry.configure(state="disabled")
send_to_port = self.server_udp_port_entry.get()
self.server_udp_port_entry.configure(state="disabled")
t1=threading.Thread(target=transmitter_main,args=(hash_server_ip,int(hash_server_port),send_to_ip,int(send_to_port),url,namespace,))
t1.start()
else:
Endpoint_Url = self.url_entry.get()
self.url_entry.configure(state="disabled")
Namespace_Server = self.namespace_entry.get()
self.namespace_entry.configure(state="disabled")
udp_hash_receiver_ip = self.udp_hash_receiver_ip_entry.get()
udp_hash_receiver_port = int(self.udp_hash_receiver_port_entry.get())
self.udp_hash_receiver_ip_entry.configure(state="disabled")
udp_hash_receiver_port = self.udp_hash_receiver_port_entry.get()
self.udp_hash_receiver_port_entry.configure(state="disabled")
localIP = self.udp_ip_entry.get()
localPort = int(self.udp_port_entry.get())
status = receive_main(Endpoint_Url,Namespace_Server,udp_hash_receiver_ip,udp_hash_receiver_port,localIP,localPort)
self.udp_ip_entry.configure(state="disabled")
localPort = self.udp_port_entry.get()
self.udp_port_entry.configure(state="disabled")
t1=threading.Thread(target=receive_main,args=(Endpoint_Url,Namespace_Server,udp_hash_receiver_ip,int(udp_hash_receiver_port),localIP,int(localPort),))
t1.start()
def back_of_send(self):
# Remove existing widgets
......@@ -150,6 +167,7 @@ class App(tk.Frame):
self.server_udp_ip_label.pack_forget()
self.server_udp_port_entry.pack_forget()
self.server_udp_port_label.pack_forget()
self.create_widgets()
def back_of_receive(self):
self.url_label.pack_forget()
......@@ -166,7 +184,6 @@ class App(tk.Frame):
self.udp_port_label.pack_forget()
self.udp_ip_entry.pack_forget()
self.udp_port_entry.pack_forget()
self.create_widgets()
# Create the main window
......@@ -174,6 +191,6 @@ root = tk.Tk()
# Create the app
app = App(master=root)
app.grid()
# Run the app
app.mainloop()
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(
['main.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='main',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon=['icon.ico'],
)
......@@ -5,14 +5,15 @@ from asyncua_server import st
import threading
import yaml
yamlfile=open("opc_ua_receiver_config.yaml")
data = yaml.load(yamlfile, Loader=yaml.FullLoader)
Endpoint_Url = data["configuration"]["endpoint_url"]
Namespace_Server = data["configuration"]["namespace_server"]
udp_hash_receiver_ip=data["configuration"]["udp_hash_receiver_ip"]
udp_hash_receiver_port=data["configuration"]["udp_hash_receiver_port"]
localIP = data["configuration"]["udp_ip"]
localPort = data["configuration"]["udp_port"]
if(os.path.isfile("opc_ua_receiver_config.yaml")):
yamlfile=open("opc_ua_receiver_config.yaml")
data = yaml.load(yamlfile, Loader=yaml.FullLoader)
Endpoint_Url = data["configuration"]["endpoint_url"]
Namespace_Server = data["configuration"]["namespace_server"]
udp_hash_receiver_ip=data["configuration"]["udp_hash_receiver_ip"]
udp_hash_receiver_port=data["configuration"]["udp_hash_receiver_port"]
localIP = data["configuration"]["udp_ip"]
localPort = data["configuration"]["udp_port"]
opua=None
......
......@@ -5,16 +5,18 @@ import hash_sender
from asyncua import Client, Node
from asyncua.common.subscription import DataChangeNotif, SubHandler
import yaml
import os
yamlfile=open("opc_ua_transmitter_config.yaml")
data = yaml.load(yamlfile, Loader=yaml.FullLoader)
server_hash_udp_ip = data["configuration"]["server_hash_udp_ip"]
server_hash_udp_port = data["configuration"]["server_hash_udp_port"]
server_udp_ip = data["configuration"]["server_udp_ip"]
server_udp_port = int(data["configuration"]["server_udp_port"])
serverAddressPort = (server_udp_ip,server_udp_port)
ENDPOINT = data["configuration"]["endpoint"]
NAMESPACE = data["configuration"]["namespace"]
if(os.path.isfile("opc_ua_transmitter_config.yaml")):
yamlfile=open("opc_ua_transmitter_config.yaml")
data = yaml.load(yamlfile, Loader=yaml.FullLoader)
server_hash_udp_ip = data["configuration"]["server_hash_udp_ip"]
server_hash_udp_port = data["configuration"]["server_hash_udp_port"]
server_udp_ip = data["configuration"]["server_udp_ip"]
server_udp_port = int(data["configuration"]["server_udp_port"])
serverAddressPort = (server_udp_ip,server_udp_port)
ENDPOINT = data["configuration"]["endpoint"]
NAMESPACE = data["configuration"]["namespace"]
bufferSize = 1024
UDPClientSocket = socket.socket(family=socket.AF_INET, type=socket.SOCK_DGRAM)
......@@ -94,9 +96,7 @@ def transmitter_main(_server_hash_udp_ip,_server_hash_udp_port,_server_udp_ip,_s
serverAddressPort = (_server_udp_ip, _server_udp_port)
ENDPOINT = _ENDPOINT
NAMESPACE = _NAMESPACE
print(server_hash_udp_ip, server_hash_udp_port, server_udp_ip, server_hash_udp_port, server_udp_ip, server_udp_port,serverAddressPort, ENDPOINT, NAMESPACE)
asyncio.run(main())
if __name__ == "__main__":
print(server_hash_udp_ip,server_hash_udp_port,server_udp_ip,server_hash_udp_port,server_udp_ip,server_udp_port,serverAddressPort,ENDPOINT,NAMESPACE)
asyncio.run(main())
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment