Giter Club home page Giter Club logo

Comments (6)

pklaus avatar pklaus commented on May 12, 2024 1

As 7ab1e67 is now part of the latest release v0.9.2, which can be installed using pip install --upgrade brother_ql, I'll close this issue. Thanks again for reporting.

from brother_ql.

hydroid7 avatar hydroid7 commented on May 12, 2024

Now I upgraded python to 3.6 but the issue is still present.

from brother_ql.

pklaus avatar pklaus commented on May 12, 2024

from brother_ql.

christianflintrup avatar christianflintrup commented on May 12, 2024

Experiencing the same issue. Also tried passing them on the command-line rather than environment variables:

brother_ql --printer tcp://192.168.1.142 --model QL-1060N print -l 102x152 test.png

Results in:

NotImplementedError: Currently the printer can be specified either via an appropriate string or via an os.open() handle.

Using default Python 2.7.13 bundled with Mac OS X.

from brother_ql.

uched41 avatar uched41 commented on May 12, 2024

I had the same issue a few days ago, it seems for some reason the script is not recognizing the exported variables, try passing them as command line variables:

sudo brother_ql -p usb://04f9:0242 -m QL-1060N print -l 102x152 test.png

Note: the size is very important if you do not know the size, you can try -l 62 it seems to work with different sizes. Also make sure that you have pyusb installed.

pip install pyusb

You may need to run the command as sudo.

from brother_ql.

pklaus avatar pklaus commented on May 12, 2024

Alright, I did investigate this issue. The problem reported by @hydroid7 and @christianflintrup is a Python 2 compatibility issue. This is now fixed with the latest commit 7ab1e67.

@uched41: The problem you reported by is a different one. You are using the sudo command to run the brother_ql CLI. The sudo tool is stripping away the environment variable. A quick workaround would be to use sudo -E .... The better solution is to set up a udev .rules file to set the permission on your USB device correctly so that you don't need to use sudo at all.

from brother_ql.

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.