puzrin / lbprint Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
lbprint establishes connection with the bluetooth printer PT300BT, sends the data but the printer seems to stuck on some error:
First blinks the green led when receiving data but then chnages to red blinking led, indicating an error.
Any suggestions for resolution?
Running the first step in the installation process results in an error:
$ sudo apt-get install imagemagick build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.8ubuntu1.1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libcairo2-dev : Depends: libglib2.0-dev but it is not going to be installed
libpango1.0-dev : Depends: libglib2.0-dev (>= 2.59.2) but it is not going to be installed
Depends: libharfbuzz-dev (>= 2.0.0) but it is not going to be installed
librsvg2-dev : Depends: libgdk-pixbuf2.0-dev (>= 2.23.5-2) but it is not going to be installed
Depends: libglib2.0-dev (>= 2.50.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I can't seem to find the proper steps to get a version of cairo that wants to install.
root@user:~# lbprint -h
internal/modules/cjs/loader.js:638
throw err;
^
Error: Cannot find module '../build/Release/canvas.node'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/usr/local/lib/node_modules/lbprint/node_modules/canvas/lib/bindings.js:3:18)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
hello, I got error on install your project from ubuntu 20.04
ubuntu@DESKTOP-TBK98PA-SW-DEV1:~$ curl -fsSL https://raw.githubusercontent.com/puzrin/lbprint/main/support/91-dymo-labelmanager-pnp.rules | sudo tee /etc/udev/rules.d/91-dymo-labelmanager-pnp.rules
curl: (22) The requested URL returned error: 404
ubuntu@DESKTOP-TBK98PA-SW-DEV1:~$ curl -fsSL https://raw.githubusercontent.com/puzrin/lbprint/main/support/dymo-labelmanager-pnp.conf | sudo tee /etc/usb_modeswitch.d/dymo-labelmanager-pnp.conf
tee: /etc/usb_modeswitch.d/dymo-labelmanager-pnp.conf: No such file or directory
curl: (22) The requested URL returned error: 404
seems like links are dead.
can you fix or alternative link for me?
Thanks!
sudo pkg install npm
sudo npm i lbprint -g
node-pre-gyp ERR! System FreeBSD 12.1-RELEASE-p8
node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/lbprint/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/lbprint/node_modules/canvas
node-pre-gyp ERR! node -v v14.13.0
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok
(...)
2343 verbose lifecycle [email protected]~install: unsafe-perm in lifecycle false
2344 verbose lifecycle [email protected]~install: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/usr/local/lib/node_modules/lbprint/node_modules/canvas/node_modules/.bin:/usr/local/lib/node_modules/lbprint/node_modules/.bin:/usr/local/lib/node_modules/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/home/user/bin
2345 verbose lifecycle [email protected]~install: CWD: /usr/local/lib/node_modules/lbprint/node_modules/canvas
2346 silly lifecycle [email protected]~install: Args: [ '-c', 'node-pre-gyp install --fallback-to-build' ]
2347 silly lifecycle [email protected]~install: Returned: code: 1 signal: null
2348 info lifecycle [email protected]~install: Failed to exec install script
2349 timing action:install Completed in 824ms
2350 verbose unlock done using /root/.npm/_locks/staging-3a08f0df5026584d.lock for /usr/local/lib/node_modules/.staging
2351 timing stage:rollbackFailedOptional Completed in 293ms
2352 timing stage:runTopLevelLifecycles Completed in 10781ms
2353 verbose stack Error: [email protected] install: `node-pre-gyp install --fallback-to-build`
2353 verbose stack Exit status 1
2353 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
2353 verbose stack at EventEmitter.emit (events.js:314:20)
2353 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
2353 verbose stack at ChildProcess.emit (events.js:314:20)
2353 verbose stack at maybeClose (internal/child_process.js:1047:16)
2353 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
2354 verbose pkgid [email protected]
2355 verbose cwd /usr/home/user
2356 verbose FreeBSD 12.1-RELEASE-p8
2357 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "lbprint" "-g"
2358 verbose node v14.13.0
2359 verbose npm v6.14.8
2360 error code ELIFECYCLE
2361 error errno 1
2362 error [email protected] install: `node-pre-gyp install --fallback-to-build`
2362 error Exit status 1
2363 error Failed at the [email protected] install script.
2363 error This is probably not a problem with npm. There is likely additional logging output above.
2364 verbose exit [ 1, true ]
Node's canvas is very fragile and flaky. It's better to use something more solid to render texts.
For example, harfbuzz OR pango webassembly build (pure FreeType is not enougth for full kerning support and other features).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.