I have a master repo with repositories checked out at certain commits. All individual repositories are installable with the command:
pip install -r requirements.txt
from within the master-repository, I want to make it so you can install all the packages at once. The file structure is like:
├── aws_login_handler
│ ├── AWSLoginHandler
│ ├── requirements.txt
│ └── setup.py
├── datamodels
│ ├── BATDataModels
│ ├── requirements.txt
│ └── setup.py
├── gribmanager
│ ├── GribManager
│ ├── requirements.txt
│ └── setup.py
├── mongobase
│ ├── MongoBase
│ ├── requirements.txt
│ ├── setup.py
├── pyrtz
│ ├── PyRTZ
│ ├── requirements.txt
│ └── setup.py
├── routingserver
│ ├── requirements.txt
│ ├── RoutingServer
│ └── setup.py
├── runrouting
│ ├── requirements.txt
│ ├── RunRouting
│ └── setup.py
├── weatherrouting_v3
│ ├── BATWeatherRouting
│ ├── requirements.txt
│ └── setup.py
└── requirements.txt
Where I have added the requirements file:
-r ./datamodels/requirements.txt
-r ./mongobase/requirements.txt
-r ./routingserver/requirements.txt
-r ./runrouting/requirements.txt
-r ./weatherrouting_v3/requirements.txt
-r ./aws_login_handler/requirements.txt
-r ./gribmanager/requirements.txt
However when I run the command:
pip install -r requirements.txt
From the top level strucutre, the error:
ERROR: Directory '.' is not installable. Neither 'setup.py' nor 'pyproject.toml' found.
Is printed.
How can I create a way to install all the requirements of the sub modules?
Since you are using a relative path (./) you must add a setup.py in your main requirements folder.
Have a look at
https://pip.pypa.io/en/stable/cli/pip_install/#argument-handling
I have something wrong with Node-red. After installing library nothing appears in Node-red. I was trying to find this issue on the internet for several hours but nothing help.
I guess problem is with directory...
Could you help me please?
Thanks
Here you can see install log of NPMJS and Library:
pi#raspberrypi:~ $ curl https://www.npmjs.com/install.sh | sudo sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5450 100 5450 0 0 22708 0 --:--:-- --:--:-- --:--:-- 22803
tar=/bin/tar
version:
tar (GNU tar) 1.30
Copyright © 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Napsali John Gilmore a Jay Fenlason.
install npm#latest
fetching: https://registry.npmjs.org/npm/-/npm-6.14.6.tgz
up to date in 0.334s
/usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
/usr/bin/npx -> /usr/lib/node_modules/npm/bin/npx-cli.js
+ npm#6.14.6
added 435 packages from 877 contributors in 54.249s
It worked
pi#raspberrypi:~ $ npm install node-red-contrib-opcua
npm WARN checkPermissions Missing write access to /home/pi/node_modules/node-red-contrib-opcua
npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /home/pi/node_modules/node-red-contrib-opcua
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/home/pi/node_modules/node-red-contrib-opcua'
npm ERR! { [Error: EACCES: permission denied, access '/home/pi/node_modules/node-red-contrib-opcua']
npm ERR! stack:
npm ERR! 'Error: EACCES: permission denied, access \'/home/pi/node_modules/node-red-contrib-opcua\'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/home/pi/node_modules/node-red-contrib-opcua' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2020-07-09T09_31_09_039Z-debug.log
pi#raspberrypi:~ $ sudo npm install node-red-contrib-opcua
npm WARN saveError ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#2.1.3 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
+ node-red-contrib-opcua#0.2.66
updated 1 package and audited 649 packages in 24.45s
24 packages are looking for funding
run `npm fund` for details
found 89 low severity vulnerabilities
run `npm audit fix` to fix them, or `npm audit` for details
pi#raspberrypi:~ $
Log of reccomeded commands:
pi#raspberrypi:~ $ npm fund
/home/pi
├─┬ https://opencollective.com/node-red-contrib-modbus
│ └── node-red-contrib-modbus#5.13.3
├─┬ https://github.com/sponsors/sindresorhus
│ └── mimic-response#2.1.0, p-limit#2.3.0
├─┬ https://github.com/sponsors/feross
│ └── safe-buffer#5.2.1
├─┬ https://www.patreon.com/feross
│ └── safe-buffer#5.2.1
├─┬ https://feross.org/support
│ └── safe-buffer#5.2.1
├─┬ https://github.com/sponsors/erossignon
│ └── node-opcua#2.7.0
├─┬ https://github.com/chalk/chalk?sponsor=1
│ └── chalk#4.1.0
├─┬ https://github.com/chalk/ansi-styles?sponsor=1
│ └── ansi-styles#4.2.1
├─┬ https://github.com/sponsors/isaacs
│ └── rimraf#3.0.2, glob#7.1.6
├─┬ https://github.com/sponsors/jonschlinkert
│ └── picomatch#2.2.2
├─┬ https://opencollective.com/core-js
│ └── core-js-pure#3.6.5
└─┬ https://github.com/sponsors/ljharb
└── deep-equal#1.1.1, is-date-object#1.0.2, is-regex#1.1.0, object-is#1.1.2, regexp.prototype.flags#1.3.0, has-symbols#1.0.1, es-abstract#1.17.6, es-to-primitive#1.2.1, is-callable#1.2.0, object-inspect#1.8.0, string.prototype.trimend#1.0.1, string.prototype.trimstart#1.0.1, is-symbol#1.0.3
pi#raspberrypi:~ $ npm audit fix
npm ERR! code EAUDITNOPJSON
npm ERR! audit No package.json found: Cannot audit a project without a package.json
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2020-07-09T09_56_29_012Z-debug.log
First, you are trying to install nodes in the wrong directory. To install Node-RED nodes you need to be in the userDIR (this is logged at startup, but is normally /home/pi/.node-red on a Raspberry Pi)
Second the permission error implies that you have tried to run npm as root at some point. You should not be using sudo to run npm normally.
I was installing FFmpeg and libav today using brew install ffmpeg libav when I noticed unbound in the dependencies list.
It's very strange because unbound is DNS resolver and why ffmpeg would need it.
❯ brew install ffmpeg libav
==> Installing dependencies for ffmpeg: aom, frei0r, gmp, libtasn1, nettle, p11-kit, unbound, gnutls, lame, libass, libbluray, libsoxr, libvidstab, libvpx, opencore-amr, opus, libsndfile, libsamplerate, rubberband, sdl2, speex, giflib, leptonica, tesseract, theora, x264, x265 and xvid
I even checked the info list for ffmpeg but unbound was not present there
❯ brew info ffmpeg
ffmpeg: stable 4.2.1 (bottled), HEAD
Play, record, convert, and stream audio and video
https://ffmpeg.org/
/usr/local/Cellar/ffmpeg/4.2.1_2 (287 files, 56.6MB)*
- Poured from bottle on 2019-12-19 at 10:45:56
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/ffmpeg.rb
==> Dependencies
Build: nasm ✘, pkg-config ✔, texi2html ✘
Required: aom ✔, fontconfig ✔, freetype ✔, frei0r ✔, gnutls ✔, lame ✔, libass ✔, libbluray ✔, libsoxr ✔, libvidstab ✔, libvorbis ✔, libvpx ✔, opencore-amr ✔, openjpeg ✔, opus ✔, rtmpdump ✔, rubberband ✔, sdl2 ✔, snappy ✔, speex ✔, tesseract ✔, theora ✔, x264 ✔, x265 ✔, xvid ✔, xz ✔
==> Options
--HEAD
Install HEAD version
==> Analytics
install: 66,434 (30 days), 280,128 (90 days), 1,079,492 (365 days)
install-on-request: 48,053 (30 days), 203,583 (90 days), 759,254 (365 days)
build-error: 0 (30 days)
Links for reference
https://formulae.brew.sh/formula/ffmpeg
https://formulae.brew.sh/formula/unbound
brew deps --tree can help you figure this out. In the case of ffmpeg, unbound is pulled in by gnutls for HTTPS support.
% brew deps --tree ffmpeg
ffmpeg
├── aom
├── fontconfig
│ └── freetype
│ └── libpng
├── freetype
│ └── libpng
├── frei0r
├── gnutls
│ ├── gmp
│ ├── libidn2
│ │ ├── gettext
│ │ └── libunistring
│ ├── libtasn1
│ ├── libunistring
│ ├── nettle
│ │ └── gmp
│ ├── p11-kit
│ │ └── libffi
│ └── unbound
│ ├── libevent
│ │ └── openssl#1.1
│ └── openssl#1.1
├── lame
├── libass
│ ├── freetype
│ │ └── libpng
│ ├── fribidi
│ └── harfbuzz
│ ├── cairo
│ │ ├── fontconfig
│ │ │ └── freetype
│ │ │ └── libpng
│ │ ├── freetype
│ │ │ └── libpng
│ │ ├── glib
│ │ │ ├── gettext
│ │ │ ├── libffi
│ │ │ ├── pcre
│ │ │ └── python
│ │ │ ├── gdbm
│ │ │ ├── openssl#1.1
│ │ │ ├── readline
│ │ │ ├── sqlite
│ │ │ │ └── readline
│ │ │ └── xz
│ │ ├── libpng
│ │ ├── lzo
│ │ └── pixman
│ ├── freetype
│ │ └── libpng
│ ├── glib
│ │ ├── gettext
│ │ ├── libffi
│ │ ├── pcre
│ │ └── python
│ │ ├── gdbm
│ │ ├── openssl#1.1
│ │ ├── readline
│ │ ├── sqlite
│ │ │ └── readline
│ │ └── xz
│ ├── graphite2
│ └── icu4c
├── libbluray
│ ├── fontconfig
│ │ └── freetype
│ │ └── libpng
│ └── freetype
│ └── libpng
├── libsoxr
├── libvidstab
├── libvorbis
│ └── libogg
├── libvpx
├── opencore-amr
├── openjpeg
│ ├── libpng
│ ├── libtiff
│ │ └── jpeg
│ └── little-cms2
│ ├── jpeg
│ └── libtiff
│ └── jpeg
├── opus
├── rtmpdump
│ └── openssl#1.1
├── rubberband
│ ├── libsamplerate
│ │ └── libsndfile
│ │ ├── flac
│ │ │ └── libogg
│ │ ├── libogg
│ │ └── libvorbis
│ │ └── libogg
│ └── libsndfile
│ ├── flac
│ │ └── libogg
│ ├── libogg
│ └── libvorbis
│ └── libogg
├── sdl2
├── snappy
├── speex
│ └── libogg
├── tesseract
│ ├── leptonica
│ │ ├── giflib
│ │ ├── jpeg
│ │ ├── libpng
│ │ ├── libtiff
│ │ │ └── jpeg
│ │ ├── openjpeg
│ │ │ ├── libpng
│ │ │ ├── libtiff
│ │ │ │ └── jpeg
│ │ │ └── little-cms2
│ │ │ ├── jpeg
│ │ │ └── libtiff
│ │ │ └── jpeg
│ │ └── webp
│ │ ├── jpeg
│ │ ├── libpng
│ │ └── libtiff
│ │ └── jpeg
│ └── libtiff
│ └── jpeg
├── theora
│ ├── libogg
│ └── libvorbis
│ └── libogg
├── x264
├── x265
├── xvid
└── xz
On Homebrew unbound is a dependency of gnutls which is a dependency of ffmpeg when using --enable-gnutls (which is used by default in the ffmpeg Homebrew formulae).
gnutls (or openssl, mbedtls, libtls, securetransport) is used in ffmpeg for HTTPS support.
Whenever I try to install packages I get this error:
/usr/local/bin/karma -> /usr/local/lib/node_modules/karma/bin/karma
npm ERR! Darwin 14.5.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "karma"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package karma does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer grunt-karma#0.6.2 wants karma#~0.10.0
npm ERR! peerinvalid Peer karma-html2js-preprocessor#0.1.0 wants karma#>=0.9
npm ERR! peerinvalid Peer karma-mocha#0.1.10 wants karma#>=0.12.8
npm ERR! peerinvalid Peer karma-phantomjs-launcher#0.1.4 wants karma#>=0.9
npm ERR! peerinvalid Peer karma-script-launcher#0.1.0 wants karma#>=0.9
npm ERR! peerinvalid Peer karma-jasmine#0.1.6 wants karma#>=0.9
npm ERR! peerinvalid Peer karma-requirejs#0.2.2 wants karma#>=0.9
npm ERR! peerinvalid Peer karma-coffee-preprocessor#0.1.3 wants karma#>=0.9
npm ERR! Please include the following file with any support request:
npm ERR! /Applications/Xcode-beta.app/Contents/Developer/npm-debug.log
I've tried uninstalling/reinstalling npm, node and karma but to no avail
also tried:
rm -rf /usr/local/lib/node_modles/karma-*
npm cache clean -g
I had the same error for generator-karma and here's what I did:
Run this:
[sudo] npm -g ls --depth=0
It'll show you the list of modules, like this:
├── bower#1.5.2
├── david#6.2.0
├── express#4.13.3
├── express-generator#4.13.1
├── generator-karma#1.0.0 peer invalid
├── grunt#0.4.5
├── grunt-cli#0.1.13
├── gulp#3.9.0
├── ionic#1.6.4
├── jscs#2.1.1
├── jshint#2.8.0
├── less#2.5.1
├── mean-cli#0.10.14
├── mocha#2.3.0
├── node-inspector#0.12.3
├── nodemon#1.4.1
├── nodesql#0.2.4
├── npm#2.11.3
├── pm2#0.14.7
├── sass#0.5.0
├── sqlite3#3.0.10
├── todo#1.1.0
└── yo#1.4.7
See this line: generator-karma#1.0.0 peer invalid ?
This is the problematic one, you should see something similar in your output. You can either try to update it with [sudo] npm -g update generator-karma or remove it with [sudo] npm -g uninstall generator-karma and do what you wanted to do in the first place.
After that, re-installing it again or leaving it like this is up to you.
I have problems instaling some packages with npm, after uninstalling node.js from C:\nodejs and installing in Program Files\nodejs
I previously removed folders npm cache and npm from appdata folder.
I am using latest official node version from their site.
I also tried with chocolatey package nodejs.install...
this is uotput from console:
C:\Users\My\Desktop>npm install -g gulp
npm ERR! Error: UNKNOWN, open 'C:\Users\My\AppData\Roaming\npm-cache\minimatch\0.3.0\package\package.json'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "gulp"
npm ERR! cwd C:\Users\My\Desktop
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path C:\Users\My\AppData\Roaming\npm-cache\minimatch\0.3.0\package\package.json
npm ERR! code UNKNOWN
npm ERR! errno -1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\My\Desktop\npm-debug.log
npm ERR! not ok code 0
C:\Users\My\Desktop>
after trying to install gulp I successfully installed grunt
C:\Users\My\Desktop>npm install -g grunt
grunt#0.4.5 C:\Users\My\AppData\Roaming\npm\node_modules\grunt
├── dateformat#1.0.2-1.2.3
├── which#1.0.5
├── eventemitter2#0.4.13
├── getobject#0.1.0
├── colors#0.6.2
├── rimraf#2.2.8
├── async#0.1.22
├── hooker#0.2.3
├── grunt-legacy-util#0.2.0
├── exit#0.1.2
├── lodash#0.9.2
├── coffee-script#1.3.3
├── iconv-lite#0.2.11
├── underscore.string#2.2.1
├── minimatch#0.2.14 (sigmund#1.0.0, lru-cache#2.5.0)
├── glob#3.1.21 (inherits#1.0.0, graceful-fs#1.2.3)
├── findup-sync#0.1.3 (lodash#2.4.1, glob#3.2.11)
├── nopt#1.0.10 (abbrev#1.0.5)
├── grunt-legacy-log#0.1.1 (lodash#2.4.1, underscore.string#2.3.3)
└── js-yaml#2.0.5 (esprima#1.0.4, argparse#0.1.15)
C:\Users\My\Desktop>
Do you try this?:
npm cache clear
I solve a similar issue with this command.