Procedure to determine how a requirements file was generated - pip

Context: I am working with python codes developed by different teams and each teams provides their corresponding requirements file. Trying to install the requirements via pip (pip install -r requirements.txt) is resulting in error of the following type:
ERROR: Invalid requirement: 'python-scipy = 0.18.1-2~pn1' (from line 13 of dependencies.txt)
Hint: = is not a valid operator. Did you mean == ?
and according to this post a possible reason is that the requirements file I have are conda generated. When trying to install the requirements using conda (conda install --file requirements.txt) the following error appears:
InvalidVersionSpec: Invalid version '0.18.1-2~pn1': invalid character(s)
I don't know what is the standard procedure to determine how a requirements file was generated in order to determine how it should be installed.
Questions:
Given a requirements file, what is the standard procedure to use in order to determine how it was generated?
Do the the characters like "~" - appearing at the end of requirements - offer any hint about how the file was generated?
What else can I try to use in order to install the requirement file with requirements that contain such invalid characters for conda?

Related

Issue installing ceedling in Windows 11

I have tried to install ceedling for Windows 11. But come across this error:
Failed to load C:/ProgramData/gemrc, (<unknown>): control characters are not allowed at line 1 column 1
I installed Ruby 3.1.3.1 (x64) from here https://rubyinstaller.org/downloads/
Then I ran:
gem install ceedling
Any ideas on how to install ceedling correctly would be appreciated.
That error is telling you that the file C:\ProgramData\gemrc has invalid data in it at line 1, column 1. You have most likely edited this file improperly when installing Ruby because this is a default file with a default configuration that should have been created when you installed Ruby.
You should try these steps in order:
Inspect the file to see what invalid characters exist at that position, comparing it to some default gemrc files, and remove any invalid characters, or:
Rename the file and try again, or:
Remove the file and reinstall Ruby from scratch so that the file is created from scratch

Installing toolboxes in Octave

In order to realise some course's activity in Octave, found in the following site
https://nbviewer.org/github/gpeyre/numerical-tours/blob/master/matlab/audio_1_processing.ipynb#
I needed to install some toolboxes found in
http://www.numerical-tours.com/installation_matlab/
Two of them seems to be easily installed via pkg install -forge ... (I have Linux Mint 19), these toolboxes are 'general' and 'signal', but 'graph' and 'wavelet_meshes' seems not to be directly available for Octave.
1 - So, if I downloaded them manually.. how should I install these packages? I do not even find Octave directory using 'whereis' in order to localise a proper folder to throw toolboxes files (its path shown located in /app/share/octave when open).
2 - Another thing.. should I spect to use toolboxes automatically after toolbox is installed? or may I indicate its selection in some specific way? ..I ask this because after running the following script chunk
n = 1024*16;
options.n = n;
[x,fs] = load_sound('bird', n);
command window throws the following message
error: 'load_sound' undefined near line 3, column 4
so I understand Octave does not recognises 'load_sound' function, which is from 'signal' toolbox (that is already installed).
Any suggestions?

command not found: mssql on macOS

I installed mssql using
npm install -g sql-cli
and it was installed succesfully.
The output after insallation:
`npm WARN deprecated sprintf#0.1.5: The sprintf package is deprecated in favor of sprintf-js.
npm WARN deprecated core-js#1.2.7: core-js#<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
/usr/local/Cellar/heroku-node/12.21.0/bin/mssql -> /usr/local/Cellar/heroku-node/12.21.0/lib/node_modules/sql-cli/bin/mssql
sql-cli#0.6.2
updated 1 package in 6.057s`
However, when I try to run
mssql -u sa -p myPassw0rd
I get an error that says
command not found: mssql on macOS
I also made sure that
/usr/local/Cellar/heroku-node/12.21.0/lib/node_modules/sql-cli/bin/mssql is in my $PATH variable
What is the solution to this issue?
I am using
npm v6.14.10
node v12.21.0
macOS Bug Sur 11.6
When adding sql-cli your path, make sure to add the directory containing the executable rather than the executable itself.
In your case, add /usr/local/Cellar/heroku-node/12.21.0/lib/node_modules/sql-cli/bin to your path, rather than /usr/local/Cellar/heroku-node/12.21.0/lib/node_modules/sql-cli/bin/mssql.
I've got the same error and I've seen some tutorials in youtube getting the same message. Changing the path did not work for me. I checked the logs docker logs <container_id> and got the message:
ERROR: Unable to set system administrator password: Password
validation failed. The password does not meet SQL Server password
policy requirements because it is not complex enough. The password
must be at least 8 characters long and contain characters from three
of the following four sets: Uppercase letters, Lowercase letters, Base
10 digits, and Symbols
When I used a different password, it started to work correctly despite of the warnings.

How to install golang compiler in solaris 11.3

I am trying to install golang compiler in Solaris 11.3 but I am getting following error;
pkg install: The requested change to the system attempts to install multiple actions
for link 'usr/perl5/pod' with conflicting attributes:
1 package delivers 'link mediator=perl mediator-priority=vendor mediator-version=5.22 path=usr/perl5/pod target=5.22/lib/pod':
pkg://solaris/runtime/perl-522#5.22.1,5.12-5.12.0.0.0.122.0:20170510T193143Z
1 package delivers 'link path=usr/perl5/pod target=5.12/lib/pod':
pkg://solaris/runtime/perl-512#5.12.5,5.11-0.175.3.0.0.30.0:20150821T171525Z
These packages may not be installed together. Any non-conflicting set may
be, or the packages must be corrected before they can be installed.
The requested change to the system attempts to install multiple actions
for link 'usr/perl5/man' with conflicting attributes:
1 package delivers 'link mediator=perl mediator-priority=vendor mediator-version=5.22 path=usr/perl5/man target=5.22/man':
pkg://solaris/runtime/perl-522#5.22.1,5.12-5.12.0.0.0.122.0:20170510T193143Z
1 package delivers 'link path=usr/perl5/man target=5.12/man':
pkg://solaris/runtime/perl-512#5.12.5,5.11-0.175.3.0.0.30.0:20150821T171525Z
These packages may not be installed together. Any non-conflicting set may
be, or the packages must be corrected before they can be installed.
The requested change to the system attempts to install multiple actions
for link 'usr/perl5/bin' with conflicting attributes:
1 package delivers 'link mediator=perl mediator-priority=vendor mediator-version=5.22 path=usr/perl5/bin target=5.22/bin':
pkg://solaris/runtime/perl-522#5.22.1,5.12-5.12.0.0.0.122.0:20170510T193143Z
1 package delivers 'link path=usr/perl5/bin target=5.12/bin':
pkg://solaris/runtime/perl-512#5.12.5,5.11-0.175.3.0.0.30.0:20150821T171525Z
These packages may not be installed together. Any non-conflicting set may
be, or the packages must be corrected before they can be installed.
////////////////////////////////////////////////////////////////////////////
I installed Perl-5.22 then also it is giving the same error. After googling I found the following command to ignore runtime Perl-512.
pkg change-facet facet.version-lock.runtime/perl-512=false
but I still getting this error which I mentioned above.
Please help me to sort out this error.
thanks in advance...
if you are also getting the same error with installation of any package follow the given command:
pkg install --accept --licenses perl-512
pkg install --accept --licenses perl-522
pkg install golang-17

Getting wrong when installing tensorflow from source

I had been trying to install tensorflow for a few day. However, cuda 7.5 is the version that tensorflow r0.10.0 supports default. So I can only install it from source. But I came after the following problem which bother me a lot.
.....
INFO: Reading options for 'clean' from /home/lhx/tensorflow-r0.10/tools/bazel.rc:
Inherited 'build' options: --force_python=py2 --host_force_python=py2 --python2_path=/usr/bin/python --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --define PYTHON_BIN_PATH=/usr/bin/python --spawn_strategy=standalone --genrule_strategy=standalone
Unrecognized option: --host_force_python=py2
ERROR: /home/lhx/tensorflow-r0.10/WORKSPACE:18:6: First argument of load() is a path, not a label. It should start with a single slash if it is an absolute path..
ERROR: /home/lhx/tensorflow-r0.10/WORKSPACE:22:6: First argument of load() is a path, not a label. It should start with a single slash if it is an absolute path..
ERROR: WORKSPACE file could not be parsed.
ERROR: package contains errors: third_party/boringssl.
ERROR: no such package 'external': Package 'external' contains errors.
Configuration finished
I just can't figure out what is going wrong and I have been trying for so long.
I experienced similar errors when my bazel was too outdated. You can try newer bazel version.

Resources