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

Unhandled exception in script #1344

Closed
Shuda12 opened this issue Apr 21, 2023 · 10 comments
Closed

Unhandled exception in script #1344

Shuda12 opened this issue Apr 21, 2023 · 10 comments

Comments

@Shuda12
Copy link

Shuda12 commented Apr 21, 2023

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
Copy link
Collaborator

DivingDuck commented Apr 21, 2023

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

@Shuda12
Copy link
Author

Shuda12 commented Apr 21, 2023

The lastest release and through the pronterface.exe

@DivingDuck
Copy link
Collaborator

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

@Shuda12
Copy link
Author

Shuda12 commented Apr 21, 2023

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

@DivingDuck
Copy link
Collaborator

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

@Shuda12
Copy link
Author

Shuda12 commented Apr 21, 2023

I just downloaded 1.6.0 and it opens fine.

@DivingDuck
Copy link
Collaborator

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
Copy link
Author

Shuda12 commented Apr 21, 2023 via email

@DivingDuck
Copy link
Collaborator

@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
Copy link
Collaborator

@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

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

No branches or pull requests

2 participants