kliment / Printrun

Pronterface, Pronsole, and Printcore - Pure Python 3d printing host software
GNU General Public License v3.0
2.35k stars 995 forks source link

Unhandled exception in script #1344

Closed Shuda12 closed 6 months ago

Shuda12 commented 1 year ago

I was trying to launch to the pronterface exe. I am getting this error I am using windows 11 and the newest Python.

Traceback (most recent call last): File "pronterface.py", line 62, in File "printrun\pronterface.py", line 2583, in init File "printrun\pronterface.py", line 170, in init File "printrun\pronsole.py", line 786, in parse_cmdline File "printrun\pronterface.py", line 1157, in process_cmdline_arguments File "printrun\pronsole.py", line 769, in process_cmdline_arguments File "printrun\pronsole.py", line 664, in load_default_rc File "printrun\pronsole.py", line 635, in load_rc File "cmd.py", line 211, in onecmd File "printrun\pronsole.py", line 412, in default File "cmd.py", line 236, in default AttributeError: 'NoneType' object has no attribute 'write'

I downloaded the files through the windows powershell command.

DivingDuck commented 1 year ago

Hi, What version of Pronterface is running? Do you run Pronterface from source or the pronterface.exe file?

Shuda12 commented 1 year ago

The lastest release and through the pronterface.exe

DivingDuck commented 1 year ago

can you pls. tell me the version number shown via -->Help -->About Printrun?

Shuda12 commented 1 year ago

It will not show me that as this happens the moments I try and run the exe. pronterface

DivingDuck commented 1 year ago

Ok, Had you an old installation of pronterface 1.6 running before?

Shuda12 commented 1 year ago

I just downloaded 1.6.0 and it opens fine.

DivingDuck commented 1 year ago

Sorry, I was interrupted.... unbelievable :) I want to find out what happen with your installation. I can't get your error on my windows 10 computer. Had you download the newest version from this source: https://github.com/kliment/Printrun/releases/tag/printrun-2.0.0 or from somewhere else?

Shuda12 commented 1 year ago

Correct it is from that release from github. 

Sent from Yahoo Mail on Android

On Fri, Apr 21, 2023 at 10:15 AM, @.***> wrote:

Sorry, I was interrupted.... unbelievable :) I want to find out what happen with your installation. I can't get your error on my windows 10 computer. Had you download the newest version from this source: https://github.com/kliment/Printrun/releases/tag/printrun-2.0.0 or from somewhere else?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

DivingDuck commented 1 year ago

@Shuda12, I searched a little bit in the code. I can't see a problem there. Looking in detail on your trace back report I think that there is maybe a problem with a corrupt configuration file called printrunconf.ini. This file had caused in the past problems for some users. It mostly happen if a user switch between different Pronterface versions. What had helped was to delete this configuration file. Maybe you can try to do this as well.

The configuration file is possible located on two places (you need to delete both before you start pronterface v2.0.0 again). Change YOUR_USER_NAME to your user name:

First place location is the root of your user directory: c:\Users\YOUR_USER_NAME\printrunconf.ini --> delete the file printrunconf.ini Second place location is directory c:\Users\YOUR_USER_NAME\AppData\Local\Printrun -->delete this directory Printrun

Remark: c:\Users\YOUR_USER_NAME\AppData\ is a hidden directory. (please see for further help if needed: https://support.microsoft.com/en-us/windows/view-hidden-files-and-folders-in-windows-97fbc472-c603-9d90-91d0-1166d1d9f4b5#WindowsVersion=Windows_11 )

It would be nice if you can make a backup of both, the mentioned printrunconf.ini and the directory printrun, before you delete them. Make a zip file and attach the zip file here. In case there is a file called Printrun.log available, please add it to the zip file too. It should be located at c:\Users\YOUR_USER_NAME\Printrun.log

Let me know whether this solve the problem or not.

DivingDuck commented 6 months ago

@Shuda12 , haven't got any further feedback regarding your issue. In the meantime we published a newer version. You can find the actual version of Pronterface here: https://github.com/kliment/Printrun/releases

I will close this issue as it belongs to an older version of Pronterface. Feel free to open a new issue in case the issue is still existing and/or you have further information running the actual version.

Best regards, DD