ConfigurationLoadError: Unable to load configuration file - configuration

I have no idea why but I am unable to use conda within terminal. Conda command results in "ConfigurationLoadError"
ConfigurationLoadError: Unable to load configuration file.
path: /Users/kiranmarathe/.condarc
reason: invalid yaml at line 2, column 42
kiranmarathe$ cat /Users/kiranmarathe/.condarc
channels:
- defaults
- conda-forge
- bioconda
- http://conda.binstar.org/faircloth-lab

Go to the /Users/kiranmarathe/ path and delete the .condarc file. I think the issue will be resolved.

Related

Octave GUI on Mac is not able to find a file

I entered this code on my octave GUI on Mac:
>>cd file:///Users/Sudipta/Downloads/Stanford/warmUpExercise.m
error: file:///Users/Sudipta/Downloads/Stanford/warmUpExercise.m: No such file or directory
I am using macOS Big Sur and Octave version 3.8.0.The file in question exists in my computer and I have checked this code multiple times.
It is not able to locate the file on my MacBook for some reason. Can someone help?
Edit: I have tried a new code as mentioned in the comments, but it also can't find the file
>> cd Users/Sudipta/Downloads/Stanford/warmUpExercise.m
error: Users/Sudipta/Downloads/Stanford/warmUpExercise.m: No such file or directory
I have also tried:
1.>> cd Users/Sudipta/Downloads
error: Users/Sudipta/Downloads No such file or directory
2.>> cd Users/Sudipta/Downloads/Stanford
error: Users/Sudipta/Downloads/Stanford No such file or directory
And I got the same error as above.
The other code gave a different error:
3.> cd /Users/Sudipta/Downloads
warning: load_path: .: Operation not permitted
QKqueueFileSystemWatcherEngine::addPaths: open: Operation not permitted
Warning: QFileSystemWatcher: failed to add paths: /Users/Sudipta/Downloads

unable to install any pkg in Octave

I am new to Octave, coming from Matlab. I am trying to install a few packages, and so far none has worked. I have tried the download method from forge, then running the install command. But my question is about my latest attempt. There it is:
pkg install -global -forge io
csvconcat.cc:79:37: warning: result of comparison of constant 18446744073709551615 with expression of type
'unsigned int' is always true [-Wtautological-constant-out-of-range-compare]
while ((pos=str.find(prot, pos)) != str.npos) {
~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~
1 warning generated.
error: couldn't append to /Applications/Octave-4.4.1.app/Contents/Resources/usr/Cellar/octave-octave-app#4.4.1/4.4.1/share/octave/octave_packages
save: unable to open output file '/Applications/Octave-4.4.1.app/Contents/Resources/usr/Cellar/octave-octave-app#4.4.1/4.4.1/share/octave/octave_packages'
error: called from
install at line 254 column 7
pkg at line 437 column 9
Couldn't find any documentation on it, I am a bit lost.... (oh and btw, I can't find the config.log file! where is that gem?)
I am on MacOS catalina 10.15.7, and just followed that procedure https://flaviocopes.com/fix-xcrun-error-invalid-active-developer-path/, which solved the issues I had before which is described on that page.
cheers for any help
The error:
error: couldn't append to /Applications/Octave-4.4.1.app/Contents/Resources/usr/Cellar/octave-octave-app#4.4.1/4.4.1/share/octave/octave_packages
save: unable to open output file '/Applications/Octave-4.4.1.app/Contents/Resources/usr/Cellar/octave-octave-app#4.4.1/4.4.1/share/octave/octave_packages'
error: called from
install at line 254 column 7
pkg at line 437 column 9
basically says it's failing to save to that file. Probably a permissions issue. Check if the file /Applications/Octave-4.4.1.app/Contents/Resources/usr/Cellar/octave-octave-app#4.4.1/4.4.1/share/octave/octave_packages exists and its permissions. That file is a database of all packages installed globally, i.e., for all users in the system.
Fixing the permission issues is dependent on what is the permissions issue you have (probably you need to run octave as root to install a global package). But maybe try to install the package for your user only, i.e., install the package without the -global flag, like so:
pkg install -forge io

Problem with configuration of odoo for working with pycharm

I have a problem with the configuration step of pycharm in order to work with Odoo 12.
I edited the configuration and set these parameters:
In the script path field: C:\Program Files (x86)\Odoo 12.0\server\odoo-bin
In the parameters field: --conf C:\Program Files (x86)\Odoo 12.0\server\odoo.conf
When I try to run I have the following error:
Usage: odoo-bin [options]
odoo-bin: error: unrecognized parameters: 'Files (x86)\Odoo 12.0\server\odoo.conf'
You are getting this error because of the space in the path try put it between two quotes:
--conf="C:\Program Files (x86)\Odoo 12.0\server\odoo.conf"

Load new module in Kamailio

I would like to ask, how can I load new module in Kamailio 4.1.2?
Actually, I have an issue, when I tried to compile my kamaiio.cfg
I've got error:
root#kamailio:/usr/local/# kamailio -c kamailio.cfg
loading modules under /usr/local/lib64/kamailio/modules/
0(25392) ERROR: <core> [sr_module.c:587]: load_module(): ERROR: load_module: could not find module <websocket> in </usr/local/lib64/kamailio/modules/>
0(25392) : <core> [cfg.y:3408]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 323, column 12-25: failed to load module
0(25392) ERROR: <core> [cfg.y:3272]: yyparse(): cfg. parser: failed to find command ws_handle_handshake
0(25392) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 1083, column 27: unknown command, missing loadmodule?
ERROR: bad config file (2 errors)
when I look physically to the /usr/local/lib64/kamailio/modules/ there is some modules, but websocket.so is missing.
So, how can I get and load module in Kamailio?
Thank you for help!
You haven't installed the module websocket. Edit modules.lst file in the source code directory and add websocket to include_modules variable. If you don't have modules.lst, just do:
make cfg
Alternative is to do:
make cfg include_modules="websocket"
By default, the build system for kamailio compiles and install only the modules that have the same dependencies as the core of the application. For websocket you need to install libunistring and openssl (libssl) devel packages.
Steps to load new module to Kamailio server. (Try if above answer is not working for you)
Check the modules is exist in the default module directly /usr/local/lib64/kamailio/modules.
If found, add loadmodule "module_name.so" in load module section in kamailio.cfg file.
If the module is not found in default module directory, you can check for the source code of that module in the default module source code directory /usr/local/src/kamailio-4.4/kamailio/modules.
If source code found, enter to the module directory. Then create modules' shared object file(.so) by following commands.
./configure
make
make test
make install
Then you will get a shared object file(.so). Copy that file into the default module directory. and load this module from the kamailio.cfg file as mentioned in step 1.
If module source code does not exist in the default source code directory, You need to download the source code from the web. And follow step 3 and 4.

Error: Cannot retrieve repository metadata (repomd.xml) for repository: boxgrinder-noarch

I am trying to run yum update on my machine and I get this error.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: boxgrinder-noarch. Please verify its path and try again
Any idea what is wrong?
I use Fedora 15
cd /etc/yum.repos.d/
perl -i -ape 's/https:/http:/g' *.repo
worked for me.
I have the same problem in Fedora 14.
When I changed the *.repo file in /etc/yum.repos.d, it works.
"Change all 'https' to 'http' in each *.repo file"
such as:
[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
baseurl=ftp://ftp.cru.fr/pub/linux/fedora/releases/11/Everything/x86_64/os/
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearchthe
change is like this
"mirrorlist=https:"--->"mirrorlist=*http:*"
find out the repo which is causing a problem in your case it is
box-grinder, remove the repo or fix it.
cd /etc/yum.repos.d/
mv /etc/yum.repos.d/box-grinder.repo /etc/yum.repos.d/box-grinder.repo.disabled
I was able to get rid of this error by removing the boxgrinder repos
I removed these files
boxgrinder-nightly.repo boxgrinder-noarch.repo boxgrinder-x86_64.repo
from /etc/yum.repos.d/ directory.
[ percona ]
Attempting to get the percona-release-0.1-3.noarch.rpm
The issue I had:
http://repo.percona.com/release/6.6/RPMS/noarch/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: percona-release-noarch. Please verify its path and try again
What I did to fix the issue:
sed -i 's/$releasever/5/g' /etc/yum.repos.d/percona-release.repo
You won't see a response.
yum clean all
yum update
This should solve your problem
What this does? sed overwrites whatever the percona-release.repo file says with s/$releasever/5/g incase the yum clean all doesn't catch it or some other error occurs.
yum repo shell drupal percona fedora