General Registry failed to update in Julia - julia

I just launched Julia and tried to add a package and then it gave the following error:
┌ Warning: Some registries failed to update:
│ — /Users/logankilpatrick/.julia/registries/General — failed to fetch from repo
└ # Pkg.Types /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/Pkg/src/Types.jl:1199
Any thoughts to resolve this? I don't think I made any recent changes to this and I am running on Julia 1.3.0 right now.
EDIT:
This is the output of the registry status command:
(v1.3) pkg> registry st
Registry Status
[23338594] General (https://github.com/JuliaRegistries/General.git)

I am not sure as to the root cause of why this occurred but the following basic steps from the Pkg docs resolved the issue:
(v1.3) pkg> registry rm General
Removing registry `General` from ~/.julia/registries/General
(v1.3) pkg> registry add https://github.com/JuliaRegistries/General
Cloning registry from "https://github.com/JuliaRegistries/General"
Added registry `General` to `~/.julia/registries/General`
(v1.3) pkg> registry up General
Updating registry at `~/.julia/registries/General`
Updating git-repo `https://github.com/JuliaRegistries/General`

Related

Cannot install Mariadb on Linux Ubuntu 20.04

I would like to install Mariadb on Ubuntu 20.04. I followed instructions on download page.
Here is what I get.
joe#joeslinux:~$ curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash
[sudo] password for joe:
[info] Repository file successfully written to /etc/apt/sources.list.d/mariadb.list
[info] Adding trusted package signing keys...
[info] Running apt-get update...
E: The repository 'http://ppa.launchpad.net/zanchey/asciinema/ubuntu focal Release' does not have a Release file.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://ocean.surfshark.com/debian stretch InRelease: The following signatures were invalid: EXPKEYSIG 1DB7590E83C8F643 Surfshark package maintainer <admin#surfshark.com>
W: GPG error: http://dl.google.com/linux/earth/deb stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 78BD65473CB3BD13
E: The repository 'http://dl.google.com/linux/earth/deb stable Release' is not signed.
[error] Failed to add trusted package signing keys
joe#joeslinux:~$
I notice it's balking at something to do with Surfshark. Yes, I have surfshark vpn running.
Please advise.
I'm not sure if problem with Mariadb installation is related with surfshark (I don't check MariaDB installation script, but probably it's fail when apt fail).
But,
GPG keys for surfshark repo was changed. Go to official surfshark website, and download new deb package. This package install repo and public keys, not surfshark itself.

I am unable to install the firebase cocoa pod on my Mac

I am trying to install the above pods but I am getting an error during the installation of firebase.
I cannot understand the error that it is giving.
error:
I don't understand what is above error is referring to and why it says anaconda3 I am not using anaconda anywhere for this code.
as suggested in some answers provided to similar problems I tried
pod repo remove master
and then:
pod setup
but it did not resolve the problem .
Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
target 'Flash Chat' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for Flash Chat
pod 'Firebase'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'SVProgressHUD'
pod 'ChameleonFramework'
end
(base) Sarthaks-Air:Flash_Chat sarthakdandriyal$ pod install
Analyzing dependencies
Downloading dependencies
Installing ChameleonFramework (2.1.0)
Installing Firebase (6.3.0)
[!] Error installing Firebase
[!] /Users/sarthakdandriyal/anaconda3/bin/curl -f -L -o /var/folders/1f/3fld6d6d3dxfdx2mf363_wxm0000gn/T/d20190620-6634-xjii3m/file.tgz https://dl.google.com/dl/cpdc/f64cf2cc2acbf58d/Firebase-6.3.0.tar.gz --create-dirs --netrc-optional --retry 2
dyld: Library not loaded: #rpath/libssl.1.0.0.dylib
Referenced from: /Users/sarthakdandriyal/anaconda3/lib/libssh2.1.dylib
Reason: image not found
I am using Xcode 9.4 could that be reason for this error?
Running conda install libssh2 solved the problem for me.

Error parsing triggers: Cannot find module 'google-auth-library'

I have downloaded a full project that has been in use for about a year now, I got a new computer and am trying to upload a change to a function. I had errors and now I am trying to redeploy a function that I know works and is the same as the source in Google Cloud.
I run:
firebase deploy --only functions:generateThumbnail
and this is the output:
deploying functions
i functions: ensuring necessary APIs are enabled...
✔ functions: all necessary APIs are enabled
i functions: preparing functions directory for uploading...
Error: Error parsing triggers: Cannot find module './dnssec'
Try running "npm install" in your functions directory before deploying.
I run npm install:
npm WARN functions# requires a peer of eslint#2.x but none is installed. You must install peer dependencies yourself.
npm WARN ajv-keywords#3.2.0 requires a peer of ajv#^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN firebase-functions#0.8.2 requires a peer of firebase-admin#~5.10.0 but none is installed. You must install peer dependencies yourself.
audited 7867 packages in 6.019s
found 20 vulnerabilities (3 low, 17 moderate)
run `npm audit fix` to fix them, or `npm audit` for details
then I ran npm audit fix:
npm WARN functions# requires a peer of eslint#2.x but none is installed. You must install peer dependencies yourself.
npm WARN ajv-keywords#3.2.0 requires a peer of ajv#^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN firebase-functions#0.8.2 requires a peer of firebase-admin#~5.10.0 but none is installed. You must install peer dependencies yourself.
removed 1 package and updated 5 packages in 7.583s
fixed 8 of 20 vulnerabilities in 7867 scanned packages
2 package updates for 12 vulns involved breaking changes
(use `npm audit fix --force` to install breaking changes; or do it by hand)
..I am still getting the same error as before:
Error: Error parsing triggers: Cannot find module './dnssec'
Hey so I think this is an issue with npm not updating the packages correctly. I was running into the same error.
Error: Error parsing triggers: Cannot find module './dnssec'
I found that the dnssec resource is within the 'sshpk' node module folder. So in order to correct the error I just went into the node_modules folder of my functions directory and removed the 'sshpk' module, and while still in the functions directory ran 'npm install'. Hopefully this works for you and some other people running into this issue.
Cheers. Good luck!

symfony webpack-encore not compile in win7x64

"C:\Program Files (x86)\Yarn\bin\yarn.cmd" add sass-loader node-sass --dev
yarn add v1.3.2
[1/4] Resolving packages...
[2/4] Fetching packages...
error fsevents#1.1.3: The platform "win32" is incompatible with this module.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
error Found incompatible module
Process finished with exit code 1 at 15:24:10.
Execution time: 22 799 ms.
.....
What a cause of this error?
the problem is in node_modules directory and this is the solution : https://github.com/yarnpkg/yarn/issues/626
Thanks for helps!
This problem solved, I install 'webpack' first in my project.

phpUnit - File/Iterator/Autoload.php failed opening

I am trying to get phpUnit running on a centos running plesk pannel.
I have installed phpunit successfully.
Package Version State
File_Iterator 1.3.1 stable
PHPUnit 3.6.10 stable
PHPUnit_MockObject 1.1.1 stable
PHP_CodeCoverage 1.1.2 stable
PHP_Invoker 1.1.0 stable
PHP_Timer 1.0.2 stable
PHP_TokenStream 1.1.3 stable
Text_Template 1.1.1 stable
however whenever i run the phpunit command from the shell i get the following error:
PHP Warning: require_once(File/Iterator/Autoload.php): failed to open
stream: No such file or directory in
/usr/share/pear/PHPUnit/Autoload.php on line 45
PHP Fatal error:
require_once(): Failed opening required 'File/Iterator/Autoload.php'
(include_path='.:') in /usr/share/pear/PHPUnit/Autoload.php on line 45
Has anyone a clue how to solve the problem?
I tried a billion different articles and the commands that finally fixed this issue for me were the following:
sudo pear channel-discover pear.phpunit.de
sudo pear install --alldeps --force phpunit/phpunit
Then, when I ran phpunit, I didn't get the errors and it ran successfully.
I'm not sure how this translates for plesk, but the problem is the include_path specified in your php.ini file is set to just the current directory. Verify where your php.ini file is by running the following from the command line...
% php --info
...and look for the following entries...
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini
In this case, edit /etc/php.ini and look for the for include_path. In my case I need to set it as follows...
include_path = ".:/opt/php-5.3.14/lib/php/pear"
Your include path must include the directory where PEAR installs all those packages. Add /usr/share/pear to your include path in php.ini--probably /etc/php5/cli/php.ini.
On the Ubuntu (10.04) I also added /usr/share/php to the /etc/php5/cli/php.ini.
In Fedora release 19 it has been solved by adding the /usr/share/pear/ path to the include_path of /etc/php.ini

Resources