Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'decode' #267

Open
eefweenink opened this issue May 3, 2024 · 0 comments
Open

AttributeError: 'NoneType' object has no attribute 'decode' #267

eefweenink opened this issue May 3, 2024 · 0 comments

Comments

@eefweenink
Copy link

eefweenink commented May 3, 2024

Since last update of octoprint (I think, but not sure), I get this error on every print I upload.
Arc_welder runs fine, untill finished and throws an error.
In log file I find this:

2024-05-03 05:58:27,320 - arc_welder.preprocessor - ERROR - An unhandled exception occurred while preprocessing the gcode file.
Traceback (most recent call last):
File "/home/eef/oprint/lib/python3.9/site-packages/octoprint_arc_welder/preprocessor.py", line 105, in run
self._process(path, processor_args, additional_metadata, is_manual_request)
File "/home/eef/oprint/lib/python3.9/site-packages/octoprint_arc_welder/preprocessor.py", line 166, in _process
self._success_callback(encoded_results, path, processor_args, additional_metadata, is_manual_request)
File "/home/eef/oprint/lib/python3.9/site-packages/octoprint_arc_welder/init.py", line 678, in preprocessing_success
new_path, new_name, metadata = self.save_preprocessed_file(
File "/home/eef/oprint/lib/python3.9/site-packages/octoprint_arc_welder/init.py", line 472, in save_preprocessed_file
self._file_manager.add_file(
File "/home/eef/oprint/lib/python3.9/site-packages/octoprint_PrintTimeGenius/init.py", line 579, in new_add_file
return self._file_manager.original_add_file(destination, path, file_object, links, allow_overwrite, printer_profile, None, display)
File "/home/eef/oprint/lib/python3.9/site-packages/octoprint/filemanager/init.py", line 728, in add_file
path_in_storage = self._storage(location).add_file(
File "/home/eef/oprint/lib/python3.9/site-packages/octoprint/filemanager/storage.py", line 963, in add_file
file_object.save(file_path)
File "/home/eef/oprint/lib/python3.9/site-packages/octoprint/filemanager/util.py", line 102, in save
shutil.copyfileobj(source, dest)
File "/usr/lib/python3.9/shutil.py", line 205, in copyfileobj
buf = fsrc_read(length)
File "/home/eef/oprint/lib/python3.9/site-packages/octoprint/filemanager/util.py", line 211, in read
line = self.input_stream.readline()
File "/home/eef/oprint/lib/python3.9/site-packages/octoprint/filemanager/util.py", line 230, in readinto
read = self.read(n)
File "/home/eef/oprint/lib/python3.9/site-packages/octoprint/filemanager/util.py", line 211, in read
line = self.input_stream.readline()
File "/home/eef/oprint/lib/python3.9/site-packages/octoprint/filemanager/util.py", line 230, in readinto
read = self.read(n)
File "/home/eef/oprint/lib/python3.9/site-packages/octoprint/filemanager/util.py", line 214, in read
processed_line = self.process_line(line)
File "/home/eef/oprint/lib/python3.9/site-packages/octoprint_SlicerEstimator/metadata.py", line 32, in process_line
return_line = self._metadata_obj.process_line(return_line)
File "/home/eef/oprint/lib/python3.9/site-packages/octoprint_SlicerEstimator/metadata.py", line 109, in process_line
decoded_line = line.decode()
AttributeError: 'NoneType' object has no attribute 'decode'

Is this an ArcWelder error? Should I change the settings in PrusaSlicer or Octoprint?
Or is this a Slicer_Estimator problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant