The reason is that the code is running under Linux, but I am running under Windows. The ‘OS’ module in WIN is different, which does not have this property. Please modify it as follows:
os.mknod(os.path.join(args.save_path, "{}.lst".format(args.set)))
Instead, the final “w” is added according to your own needs.
open(os.path.join(args.save_path, "{}.lst".format(args.set)),"w")
Read More:
- AttributeError: module ‘os’ has no attribute ‘mknod’
- Syntax error: unexpected end of file problem [two solutions]
- Syntax error near unexpected token ‘$’Do is reported when running bash file
- About Java File.separator
- Pytorch RuntimeError: Error(s) in loading state_ dict for Dat aParallel:.. function submit.py Solutions for reporting errors
- After the installation of vs2017, we can’t find the source files such as windows. H, stdio. H, etc
- TFTP: server says: file not found solution
- Solved – problem cannot find module ‘webpack / bin / config yargs’
- ExecutableNotFound: failed to execute [‘dot’, ‘-Tsvg’], make sure the Graphviz executables are on yo
- Gulp Error: Cannot find module ‘jshint/src/cli’;
- Problems encountered in running OpenGL
- Failed to create JVM. JVM Path: xxxxx
- Solve the problem of vscode window console “flash”
- The difference of. Pt,. PTH,. Pkl and the way to save the model
- Solve the problem of shell script “syntax error near unexpected token `fi’”.
- Linux Mint installs Hadoop environment
- JavaFX 11: “missing JavaFX runtime component”
- Solve the problem of prompt couldn’t find path to unrear library after installing unrear in Python
- Win10 vs 2017 prompt cannot open include file: “windows. H”: no such file or director
- Python error: pandas.errors.ParserError: Error tokenizing data. C error: Expected 3……