Git Product home page Git Product logo

Comments (7)

kdlucas avatar kdlucas commented on April 27, 2024

It looks like the mdns service didn't get fully added, as mdsn_browser.listener.discovered[k]['info'] should have been set once it was discovered. It get set in line 49 of _mdns.py. Try adding some statements in the setUpModule like:

under line 130:
for k in mdns_browser.listener.discovered:
print mdsn_browser.listener.discovered[k]

and then you can see what keys have been set for each value of k. The purpose of this code is to discover which port Privet is using.

from cloudprint_logocert.

tblossfeld avatar tblossfeld commented on April 27, 2024

I have added the line in as instructed with the following results. Not entirely sure what it means.

setupmodule3

from cloudprint_logocert.

kdlucas avatar kdlucas commented on April 27, 2024

Let me look through the code and see why this dictionary key is not getting set.

from cloudprint_logocert.

kdlucas avatar kdlucas commented on April 27, 2024

I wonder if you have the latest version of _mdns.py, as we recently made some changes to that file. Please check that, as I notice an older copy of _mdns.py would cause this issue.

from cloudprint_logocert.

tblossfeld avatar tblossfeld commented on April 27, 2024

I recently downloaded the zip file found here: http://google.github.io/cloudprint_logocert/ after noticing a change made to testcert.py.

I compared the version of _mdns.py in my working directory with the version on github, and they are identical.

from cloudprint_logocert.

kdlucas avatar kdlucas commented on April 27, 2024

Ok, I'm going to run some of these commands from the command line and I'll
see if I can't figure out why that key isn't getting set.

Kelly
kdLucas

On Thu, Jun 2, 2016 at 10:13 AM, tblossfeld [email protected]
wrote:

I recently downloaded the zip file found here:
http://google.github.io/cloudprint_logocert/ after noticing a change made
to testcert.py.

I compared the version of _mdns.py in my working directory with the
version on github, and they are identical.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#28 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ADk_fec9KjjrHsEb5kMAVInttcshGb02ks5qHw86gaJpZM4InmCY
.

from cloudprint_logocert.

kdlucas avatar kdlucas commented on April 27, 2024

I just tested this and it looks to be working ok. In your particular case, in order to see what is going on, edit _log.py and change the debug log level from info to debug. Then re-run testcert.py. If you're on Linux you should see some log files under /tmp/ . Open the log file and look for a statement like this:

2016-06-02 12:46:04,603, LogoCert INFO: Service added: "8D0F7D61-A70A-4816-AF60-8C04E3CF1593._privet._tcp.local." (type is _privet._tcp.local.)

Then, after that statement there should be a follow on statement like this:

2016-06-02 12:46:05,231, LogoCert DEBUG: 8D0F7D61-A70A-4816-AF60-8C04E3CF1593._privet._tcp.local. service info: ServiceInfo(type='_privet._tcp.local.', name=u'8D0F7D61-A70A-4816-AF60-8C04E3CF1593._privet._tcp.local.', address='\xc0\xa8\x04\xa5', port=80, weight=0, priority=0, server=u'linux-5.local.', properties={'mmid': 'AAw7x', 'ty': 'LED Flasher', 'note': 'Controls on-board LEDs', 'flags': 'CB', 'services': 'vendor', 'txtvers': '3', 'id': '44D38A8A-6E02-4A4B-885E-8FED36E68D3E'})

That 2nd string with "service info" in it means the 'info' key has been set properly. If that is missing, than there must be some issue with the mdns broadcast of the printer.

from cloudprint_logocert.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.