PrusaControl icon indicating copy to clipboard operation
PrusaControl copied to clipboard

PrusaControl doesn't start

Open coolcow opened this issue 8 years ago • 16 comments

On a fresh installation of Windows 10 (64bit) in a VM i get this error when i start PrusaControl.

auswahl_001

The error Failed to execute script main stays in the backgroud behind the splashscreen. I have uninstalled and installed PrusaControl again a couple of times, but without success.

Slic3r PE works fine.

What am i doing wrong ?

coolcow avatar Jun 11 '17 17:06 coolcow

Hi, attach a log file from PrusaControl. It is placed in C:\Users\{your user name}\prusacontrol.log

tibor-vavra avatar Jun 12 '17 10:06 tibor-vavra

It said:

[INFO][controller.py:55:__init__()]-Local path: C:\Program Files (x86)\PrusaControl\
[ERROR][main.py:77:log_exception()]-Logging an uncaught exception
Traceback (most recent call last):
  File "main.py", line 170, in <module>
  File "main.py", line 139, in main
  File "controller.py", line 62, in __init__
  File "parameters.py", line 283, in __init__
  File "configparser.py", line 696, in read
  File "configparser.py", line 1077, in _read
configparser.MissingSectionHeaderError: File contains no section headers.
file: 'C:\\Users\\jruiz\\prusacontrol.cfg', line: 1
'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'

After deleting `prusacontrol.cfg' it works now (it appeared to be empty). Maybe the application should ask if it should create a new configuration file (in the case of a corrupted one) instead of just crashing. But hey, its Beta ! :)

Thx for the hint !

coolcow avatar Jun 12 '17 12:06 coolcow

I am receiving the same Error message on PrusaControl launch. My error log says

[ERROR][main.py:95:log_exception()]-Logging an uncaught exception Traceback (most recent call last): File "main.py", line 193, in File "main.py", line 159, in main File "controller.py", line 65, in init File "parameters.py", line 354, in init File "parameters.py", line 477, in check_versions File "parameters.py", line 514, in get_materials_info FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Ryan\.prusacontrol\materials_i3_mk2mm.json'

Ryans585 avatar Sep 15 '17 13:09 Ryans585

Has been working fine ...tried removing `prusacontrol.cfg' didn't work Uninstalled and reinstalled after reboot worked

[INFO][controller.py:55:init()]-Local path: C:\Program Files (x86)\PrusaControl
[ERROR][main.py:77:log_exception()]-Logging an uncaught exception Traceback (most recent call last): File "main.py", line 170, in File "main.py", line 139, in main File "controller.py", line 62, in init File "parameters.py", line 293, in init File "parameters.py", line 407, in check_versions File "parameters.py", line 446, in get_materials_info FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\jason\.prusacontrol\materials_i3_mk2mm.json'

wootner avatar Sep 15 '17 20:09 wootner

I copied the 'materials_i3_mk2.json' file and renamed it 'materials_i3_mk2mm.json'. it launches just fine now.

Ryans585 avatar Sep 15 '17 20:09 Ryans585

Yep that works

Many thanks

From: Ryans585 [mailto:[email protected]] Sent: 15 September 2017 21:49 To: prusa3d/PrusaControl [email protected] Cc: Jason roger [email protected]; Comment [email protected] Subject: Re: [prusa3d/PrusaControl] PrusaControl doesn't start (#9)

I copied the 'materials_i3_mk2.json' file and renamed it 'materials_i3_mk2mm.json'. it launches just fine now.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/prusa3d/PrusaControl/issues/9#issuecomment-329897746, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AehIy-_-8oIZ_nCdkU7qLLlm86Ge4UIYks5siuKmgaJpZM4N2c9T.

wootner avatar Sep 15 '17 21:09 wootner

I have the same issue. Logfile gives this output:

[ERROR][main.py:95:log_exception()]-Logging an uncaught exception Traceback (most recent call last): File "main.py", line 193, in File "main.py", line 159, in main File "controller.py", line 65, in init File "parameters.py", line 357, in init File "parameters.py", line 497, in check_versions File "parameters.py", line 576, in get_materials_info File "json_init_.py", line 265, in load File "c:\python35\lib\encodings\cp1252.py", line 23, in decode UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 54870: character maps to

ljcousse avatar Sep 24 '18 12:09 ljcousse

I have the same issue. Logfile gives this output:

[ERROR][main.py:95:log_exception()]-Logging an uncaught exception Traceback (most recent call last): File "main.py", line 193, in File "main.py", line 159, in main File "controller.py", line 65, in init File "parameters.py", line 357, in init File "parameters.py", line 497, in check_versions File "parameters.py", line 576, in get_materials_info File "json__init__.py", line 265, in load File "c:\python35\lib\encodings\cp1252.py", line 23, in decode UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 54870: character maps to I have the exact same problem

RogerStr avatar Sep 24 '18 13:09 RogerStr

same error here i think it has to be with the new sla printer that came out

[ERROR][main.py:95:log_exception()]-Logging an uncaught exception Traceback (most recent call last): File "main.py", line 193, in File "main.py", line 159, in main File "controller.py", line 65, in init File "parameters.py", line 357, in init File "parameters.py", line 497, in check_versions File "parameters.py", line 576, in get_materials_info File "json_init_.py", line 265, in load File "c:\python35\lib\encodings\cp1252.py", line 23, in decode UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 54870: character maps to

thiaggo avatar Sep 24 '18 15:09 thiaggo

Same issue

[ERROR][main.py:95:log_exception()]-Logging an uncaught exception Traceback (most recent call last): File "main.py", line 193, in File "main.py", line 159, in main File "controller.py", line 65, in init File "parameters.py", line 357, in init File "parameters.py", line 497, in check_versions File "parameters.py", line 576, in get_materials_info File "json_init_.py", line 265, in load File "c:\python35\lib\encodings\cp1252.py", line 23, in decode UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 54870: character maps to

Voodazel avatar Sep 24 '18 16:09 Voodazel

Same here [ERROR][main.py:95:log_exception()]-Logging an uncaught exception Traceback (most recent call last): File "main.py", line 193, in File "main.py", line 159, in main File "controller.py", line 65, in init File "parameters.py", line 357, in init File "parameters.py", line 497, in check_versions File "parameters.py", line 576, in get_materials_info File "json_init_.py", line 265, in load File "c:\python35\lib\encodings\cp1252.py", line 23, in decode UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 54870: character maps to

moeskerv avatar Sep 24 '18 16:09 moeskerv

To everyone who has the same issue: Please report your exact operating system and version, thanks.

probonopd avatar Sep 24 '18 18:09 probonopd

Win10 PrusaControl 0.9.4_415 beta - but issue seems to be fixed now.

moeskerv avatar Sep 24 '18 18:09 moeskerv

It seems that https://github.com/prusa3d/PrusaControl-settings/commit/e53b853e22f6bedbc4bf26d68d8193ea8933233f fixed the issue.

moeskerv avatar Sep 24 '18 18:09 moeskerv

It seems that prusa3d/PrusaControl-settings@e53b853 fixed the issue.

Indeed, same here!

ljcousse avatar Sep 25 '18 06:09 ljcousse

Had the same error also with this version... The reason was simple.

I did hide these 2 files as I didn't want to see them in my main user folder. C:\Users{your user name}\prusacontrol.log C:\Users{your user name}\prusacontrol.cfg

Usually works for other apps but not here, after removing windows hide file flag the startup worked as before...

schnaggels avatar Nov 03 '18 21:11 schnaggels