English 中文(简体)
Permission Error: [Errno 1]Operation 不允许
原标题:Permission Error: [Errno 1] Operation Not permitted

我正试图将一些txt文档添加到我的密码中,但当我读到pyinstaller maze.spec时, 我正在发现一个许可错误。 我认为,一个简单的诉讼将予以纠正,但我仍在犯错误。 任何关于什么可能是错误的的想法?

Here is my error btw

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.8/bin/pyinstaller", line 8, in <module>
    sys.exit(run())
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyInstaller/__main__.py", line 112, in run
    run_build(pyi_config, spec_file, **vars(args))
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyInstaller/__main__.py", line 63, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyInstaller/building/build_main.py", line 732, in main
    build(specfile, kw.get( distpath ), kw.get( workpath ), kw.get( clean_build ))
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyInstaller/building/build_main.py", line 679, in build
    exec(code, spec_namespace)
  File "maze.spec", line 20, in <module>
    exe = EXE(pyz,
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyInstaller/building/api.py", line 443, in __init__
    self.__postinit__()
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyInstaller/building/datastruct.py", line 158, in __postinit__
    self.assemble()
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyInstaller/building/api.py", line 520, in assemble
    os.remove(self.name)
PermissionError: [Errno 1] Operation not permitted:  /Users/jr194/Bit Club/Test Cases/Maze_Solver_Stack/dist/maze 

此外,我还检查了马齐格耳朵的许可,而且看来,我对使用者的许可很严格,我确信这意味着允许我读写。 因此,诚实地放弃了这种行为。

问题回答

要求先获得执行许可,然后执行文字。 为此,在终点站运行chmod +x maze.spec,然后尝试pyinstaller maze.spec

你可以尝试(从指挥线上看,但我相信在<代码>python档案中有一些错误。 首先请查问:在您的<编码>上,是否有任何错误?

Well You Can Try:

sudo chown your_username:your_groupname filename

<>说明/指示>:小组通常只是用户名称。 但我觉得与这些许可一样错了。 人人都可以读写。 如何创建这一档案? 谁也不能由用户创建?





相关问题
Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

How to remove unique, then duplicate dictionaries in a list?

Given the following list that contains some duplicate and some unique dictionaries, what is the best method to remove unique dictionaries first, then reduce the duplicate dictionaries to single ...

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

How can I make the PyDev editor selectively ignore errors?

I m using PyDev under Eclipse to write some Jython code. I ve got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

Converting Dictionary to List? [duplicate]

I m trying to convert a Python dictionary into a Python list, in order to perform some calculations. #My dictionary dict = {} dict[ Capital ]="London" dict[ Food ]="Fish&Chips" dict[ 2012 ]="...

热门标签