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’
- Attribute Error: ‘XXX‘ object has no attribute ‘module‘
- Attributeerror: ‘module’ object has no attribute ‘handlers’ — Python sub module import problem
- AttributeError: module ‘os‘ has no attribute ‘fork‘
- [error] attributeerror: module ‘SIP’ has no attribute ‘setapi‘
- AttributeError: module ‘keras.backend‘ has no attribute ‘eager‘
- Module ‘Seaborn’ has no attribute ‘scatterplot’ solution
- Tensorflow reported an error when using session module: attributeerror: module ‘tensorflow’ has no attribute ‘session’, which has been solved
- AttributeError: module ‘onnxruntime‘ has no attribute ‘InferenceSession‘
- module ‘tensorflow‘ has no attribute ‘placeholder‘
- AttributeError:module“seaborn” has no attribute “lineplot”
- Please note that the module “sacrableu” has no “compute blue” attribute
- Solving attributeerror: module ‘urllib’ has no attribute ‘request’
- AttributeError: module ‘torch’ has no attribute’_six’ [The problem is solved after restart]
- Solving attributeerror: module ‘Matplotlib’ has no attribute ‘artist’
- AttributeError:module ‘seaborn‘ has no attribute ‘tsplot‘
- AttAttributeError: module ‘typing‘ has no attribute ‘NoReturn‘
- AttributeError: module ‘scipy.misc’ has no attribute ‘imread’
- AttributeError: module ‘sacrebleu‘ has no attribute ‘compute_bleu‘
- AttributeError: module ‘numpy‘ has no attribute ‘getbuffer‘