Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python源代码防御程序_Python_Python 3.x_Importerror - Fatal编程技术网

Python源代码防御程序

Python源代码防御程序,python,python-3.x,importerror,Python,Python 3.x,Importerror,我一直在尝试让sourcedefender()在运行PiDesktop和windows 7的笔记本电脑上工作,这两台电脑都有相同的问题。PiDesktop运行的是python 3.7,windows机器运行的是python 3.8 两人都回来了 ImportError:无法从“sourcedefender”导入名称“loader” D:\Python Stuff>sourcedefender加密测试\u Stuff.py 回溯(最近一次呼叫最后一次): 文件“C:\Users\adam.hedl

我一直在尝试让sourcedefender()在运行PiDesktop和windows 7的笔记本电脑上工作,这两台电脑都有相同的问题。PiDesktop运行的是python 3.7,windows机器运行的是python 3.8

两人都回来了

ImportError:无法从“sourcedefender”导入名称“loader”

D:\Python Stuff>sourcedefender加密测试\u Stuff.py
回溯(最近一次呼叫最后一次):
文件“C:\Users\adam.hedley\AppData\Local\Programs\Python38\Scripts\sourcedefender script.py”,第11行,在
加载入口点('sourcedefender==6.0.21','console\u脚本','sourcedefender')()
文件“C:\Users\adam.hedley\AppData\Local\Programs\Python38\lib\site packages\pkg\u resources\uuuuu init\uuuu.py”,第490行,在加载入口点
返回获取分布(dist)。加载入口点(组、名称)
文件“C:\Users\adam.hedley\AppData\Local\Programs\Python38\lib\site packages\pkg\u resources\uuuuuu init\uuuuu.py”,第2862行,在加载入口点
返回ep.load()
文件“C:\Users\adam.hedley\AppData\Local\Programs\Python38\lib\site packages\pkg\u resources\uuuuu init\uuuuu.py”,第2462行,已加载
返回self.resolve()
文件“C:\Users\adam.hedley\AppData\Local\Programs\Python38\lib\site packages\pkg\u resources\uuuuu init\uuuuu.py”,第2468行,解析
module=\uuuu导入(self.module\u name,fromlist=[''\uuuu name\uuuuuuu'],级别=0)
加载模块中第259行的文件“”
文件“C:\Users\adam.hedley\AppData\Local\Programs\Python38\lib\site packages\sourcedefender-6.0.21-py3.8.egg\sourcedefender\\ uuuu init\uuuuu.py”,lin
e 3,在
ImportError:无法从“sourcedefender”(C:\Users\adam.hedley\AppData\Local\Programs\Python\Python38\lib\site packages\sourcede)导入名称“loader”
fender-6.0.21-py3.8.egg\sourcedefender\\ uuuu init\uuuuuu.py)
如果我也尝试
sourcedefender加密--ttl=1d test\u stuff.py
我希望有人能有一个简单的解决办法

D:\Python Stuff>sourcedefender encrypt test_stuff.py

Traceback (most recent call last):
  File "C:\Users\adam.hedley\AppData\Local\Programs\Python\Python38\Scripts\sourcedefender-script.py", line 11, in <module>
    load_entry_point('sourcedefender==6.0.21', 'console_scripts', 'sourcedefender')()
  File "C:\Users\adam.hedley\AppData\Local\Programs\Python\Python38\lib\site-packages\pkg_resources\__init__.py", line 490, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "C:\Users\adam.hedley\AppData\Local\Programs\Python\Python38\lib\site-packages\pkg_resources\__init__.py", line 2862, in load_entry_point
    return ep.load()
  File "C:\Users\adam.hedley\AppData\Local\Programs\Python\Python38\lib\site-packages\pkg_resources\__init__.py", line 2462, in load
    return self.resolve()
  File "C:\Users\adam.hedley\AppData\Local\Programs\Python\Python38\lib\site-packages\pkg_resources\__init__.py", line 2468, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "<frozen zipimport>", line 259, in load_module
  File "C:\Users\adam.hedley\AppData\Local\Programs\Python\Python38\lib\site-packages\sourcedefender-6.0.21-py3.8.egg\sourcedefender\__init__.py", lin
e 3, in <module>
ImportError: cannot import name 'loader' from 'sourcedefender' (C:\Users\adam.hedley\AppData\Local\Programs\Python\Python38\lib\site-packages\sourcede
fender-6.0.21-py3.8.egg\sourcedefender\__init__.py)