-
Notifications
You must be signed in to change notification settings - Fork 997
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
Printrun-Mac-03Feb2015.zip - odd exception when printing #619
Comments
Just an update. The printer/Pronterface lock up and must be reset. This happened on 3 prints somewhere around the 3rd to 4th layers. I have not been able to complete a print. When this happened, there were no errors in the console (they were long after the string of errors I attached above and I cleared console so I could look for new errors - there were none, just the lock up). |
It's the username of someone who kindly donated a mac for these builds - pyinstaller embeds the full path into the file. The timeout is likely due to network errors - might need to adjust the timeout value there, the tcp printing is not particularly extensively tested. Strange that the print didn't stop after the "disconnected" message, by all measures it should have. I'm not entirely sure what's going on here. The other error is means we don't have a means of inhibiting power management. It's probably a namespace issue due to the way pyobjc does dynamic import. I'll see if I can do anything about it. |
Thanks for the update. I don't think I can change the timeout without compiling the code can I? I have the smoothie direct to a 5 port gigabit ethernet switch. My mac host is on another port. the switch direct connects to my cable modem. All traffic should be from my mac to the printer. the smoothie port does show an amber light meaning it is not a gigabit connection. |
An update klimant, the print actually does stop after the disconnect, its just that there is gcode buffered at the other end so it takes some time before the print stops, but it does. I am still experiencing this problem 100% of the time. I tested on 2 different networks with completely different cables, etc. I've monitored the network and see no issues with latency. I have a similar issue with timeouts when using the Python upload script that's now part of the Smoothieboard project. I had to increase the timeout to 20sec. I've had lots of issues with my Smoothieboard so it very well could be a hardware issue with it. I am getting another board soon so I can test when that comes in. |
I can confirm also seeing '[ERROR] Failed to set power settings' when attempting to print from OSX. |
I am also having the same issue.. Does it have to do with the build? |
-----BEGIN PGP SIGNED MESSAGE----- Does the actual print work or does it stop after that error? On 02/20/2015 09:01 AM, fearfulWizard wrote:
iQIcBAEBAgAGBQJU5w2YAAoJEC9FHFwEZzqVGAQP/iTqwKPI80W7bwVMyXPKpZ58 |
For me, after I get the [ERROR] Failed to set power settings: message, the print starts but then fails shortly with a Not Connected message. This is 100% reproducible and I have not been able to use this version to print. |
It's most likely unrelated to the error message, which is solely related to some power settings helper and not to the rest of the print stack. Now we need to trace these disconnections :/ |
The printer does not work after that error. I must mention though, I do not have the extruder yet on my printer, so I tried simply running it by having it draw a 2D image with a pencil. This is my first printer, so i might've missed the "power settings", but I'm not sure what this is referring to: the configuration of the firmware, or power settings of the Gcode. |
It actually refers to power settings of the host operating system, that is to make Printrun run as high priority and inhibit sleep. So it shouldn't affect the print itself. |
Does not start printing for me on OSX. Ended up switching to my Ubuntu box On Friday, February 20, 2015, Guillaume Seguin notifications@github.com
Greg |
I think I've managed to solve this temporarily by switching to a previous build. Please do let me know how I can fix the issue if it's mainly a namespace error. Thanks |
Another update - the Windows version running in a Win 7 VM on the same mac is working fine, no network time outs. And of course it does not generate that initial "Failed to set power settings" |
so?! is craig vanvliet on this list?! awesomeness... |
craig donated the mac computer that I use to make the mac builds. I'll On 04/15/2015 12:06 PM, malemodel wrote:
|
cool. great. when is that happening? |
Printer is now online.
I printed the the android test little guy with minor issues (printer was not calibrated yet) but i downloaded the kendal90 slic3r configuration that I got from here. http://wiki.imal.org/howto/how-print-mendel-90 opened up a part I was going to try and print exported gcode and I got that in pronterface. |
Exact same problem here, with a gcod file as well. |
I wonder what is going on. It is weird. It printed the android guy just fine. but with the other gcode I am having an issue. |
Same problem (Mac OS X Yosemite 10.10.3): |
Looks to me like in printrun/power/osx.py lines 40 and 41 should be changed from:
to:
|
Hmm, but kCFStringEncodingASCII does not exist in this context, does it ? |
iXce, I expect it is a constant defined when you import CoreFoundation. |
That's not how things work in Python I think, if nothing explicitly imports the symbol it cannot be there (you'd need something like from blah import * for something like this to work) |
None of the CoreFoundation stuff makes any sense to me honestly, so I'm On 05/14/2015 07:24 PM, Guillaume Seguin wrote:
|
Note that // is not a valid way to comment things in python either, so I still highly doubt this works :P |
Let's debug this properly: could you pop a python shell, do "import CoreFoundation" and then "print dir(CoreFoundation)" ? Thanks ! |
(Edited to reduce length) Python 2.7.6 (default, Sep 9 2014, 15:04:36)
|
Typing CoreFoundation.kCFStringEncodingASCII into the python shell displays 1536 (= 0x600 which is how it is defined in CFString.h) |
Okai so it's definitely in the system CoreFoundation module. Now the question is, why isn't it in the binary ? Is a different CoreFoundation module shipped with the binary ? |
It's in there but when corefoundation is packed into a binary everything On 05/14/2015 08:14 PM, Guillaume Seguin wrote:
|
I am running pronterface on my macbook pro just an FYI |
Is it working for you with no issues? |
Did this ever get resolved? I'm seeing the same problem here, and I don't see a newer version of PrintRun to try.... |
I have been so busy with a new born and work I haven't had a chance to try
|
This is over a year old, yet the fix has not been made. Is anyone on this? |
Hey Markwbrown, I'm only a very begging user with 3D printing, and I like Printrun, but this is a killer problem, I'm not a programer so I can't help solve it, but if I can run tests for the Programing Gurus, I'm more than willing. |
Can someone test with the 2.0.0rc5 release? |
Hi Kliment, I just installed the 2.0.0rc5 (pronterface) and have the same issue. The error message has changed to read I also notice that once this error was issued the printer needed to be power cycled to get any response. I am using Marlin Version 1. on ramps 1.4. |
The exception was: ValueError: Expecting byte string of length 1, got a 'str' Yet bytes with any length appears to work, so i assume it is bogus. Fixes kliment#619 (comment)
I just installed the new Printrun-Mac-03Feb2015.zip on OS X 10.10.2 (Yosemite) this morning. Everything configured fine. I am commenting to a smoothieboard over tcp to a 3D printer. When I load the gcode file, all looks good. Then when I run, I get this in the console:
Print started at: 09:44:22
[ERROR] Failed to set power settings:
Traceback (most recent call last):
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/printrun.pronsole", line 1173, in startcb
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/printrun.power", line 130, in powerset_print_start
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/printrun.power.osx", line 72, in inhibit_sleep_osx
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/printrun.power.osx", line 49, in AssertionCreateWithName
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/printrun.power.osx", line 40, in StringToCFString
AttributeError: 'module' object has no attribute 'kCFStringEncodingASCII'
The object starts printing and then I get more errors thrown to console:
[ERROR] Can't write to printer (disconnected ?):
Traceback (most recent call last):
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/printrun.printcore", line 608, in _send
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/socket", line 324, in write
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/socket", line 303, in flush
timeout: timed out
[ERROR] Can't write to printer (disconnected ?):
Traceback (most recent call last):
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/printrun.printcore", line 608, in _send
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/socket", line 324, in write
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/socket", line 303, in flush
timeout: timed out
[ERROR] Can't write to printer (disconnected ?):
Traceback (most recent call last):
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/printrun.printcore", line 608, in _send
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/socket", line 324, in write
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/socket", line 303, in flush
timeout: timed out
[ERROR] Can't write to printer (disconnected ?):
Traceback (most recent call last):
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/printrun.printcore", line 608, in _send
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/socket", line 324, in write
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/socket", line 303, in flush
timeout: timed out
[ERROR] Can't write to printer (disconnected ?):
Traceback (most recent call last):
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/printrun.printcore", line 608, in _send
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/socket", line 324, in write
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/socket", line 303, in flush
timeout: timed out
[ERROR] Can't write to printer (disconnected ?):
Traceback (most recent call last):
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/printrun.printcore", line 608, in _send
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/socket", line 324, in write
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/socket", line 303, in flush
timeout: timed out
[ERROR] Disconnecting after 4 failed writes.
Disconnected.
[ERROR] Can't write to printer (disconnected ?):
Traceback (most recent call last):
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/printrun.printcore", line 608, in _send
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/socket", line 324, in write
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/socket", line 303, in flush
timeout: timed out
[ERROR] Failed to set power settings:
Traceback (most recent call last):
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/printrun.pronsole", line 1180, in endcb
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/printrun.power", line 134, in powerset_print_stop
File "/Users/craigvanvliet/Desktop/PyInstaller-2.1/pronterface/build/pronterface/out00-PYZ.pyz/printrun.power.osx", line 79, in deinhibit_sleep_osx
AttributeError: 'function' object has no attribute 'assertion_id'
It is printing all through the above. It seems odd that there would be a path to /Users/craigvanvliet - my user name is mhackney on my mac, Craig must be a developer?
The text was updated successfully, but these errors were encountered: