Can not add package Atom to Julia in command line - package

I have Julia version 1.5.3 on a Windows machine. When I try to add Atom package, I get the following error:
(#v1.5) pkg> add Atom
Resolving package versions...
ERROR: Unsatisfiable requirements detected for package Atom [c52e3926]:
Atom [c52e3926] log:
├─Atom [c52e3926] has no known versions!
└─restricted to versions * by an explicit requirement — no versions left
Here is the output of status.
(#v1.5) pkg> status
Status `C:\Users\USER\.julia\environments\v1.5\Project.toml`
[e5e0dc1b] Juno v0.8.4
I tried removing and adding Juno again. Any ideas how to solve this problem?

I deleted .julia folder in Users/USER and it worked. When I restarted Julia from the command line, it created the folder again.

Related

React Native: XCode: Build failed with error "EMFILE: too many open files, watch"

– MackBook Air M1
– macOS 11.3
– XCode 12.5
– react native 0.64.1
– node 16.0.0
– npm 7.15.1
– watchman 2021.05.31.00
When I try to archive a project or build one for a device, Xcode stops building with an error:
/Users/aptyp/Projects/Proffmylife/Client/node_modules/metro-hermes-compiler/src/emhermesc.js:81
throw ex;
^
Error: EMFILE: too many open files, watch
at FSEvent.FSWatcher._handle.onchange (node:internal/fs/watchers:204:21)
Emitted 'error' event on NodeWatcher instance at:
at NodeWatcher.checkedEmitError (/Users/aptyp/Projects/Proffmylife/Client/node_modules/sane/src/node_watcher.js:143:12)
at FSWatcher.emit (node:events:365:28)
at FSEvent.FSWatcher._handle.onchange (node:internal/fs/watchers:210:12) {
errno: -24,
syscall: 'watch',
code: 'EMFILE',
filename: null
}
Command PhaseScriptExecution failed with a nonzero exit code
But for the simulator, the build works fine.
I have tried to reinstall node_modules, Pods, watchman with brew. Also I've created files limit.maxfiles.plist, limit.maxproc.plist into dir /Library/LaunchDaemons/ and now ulimit -a shows processes 2000 and file descriptors 524288. Restarting computer and unlock Keychain.
On my PC with Hackintosh I don't have this problem.
This error is because of a bug in module fsevents for mac m1 silicon. See the thread: https://github.com/facebook/metro/issues/668
It got fixed with new version of watchman. Upgrade your watchman through brew. Delete your project and download from git and rebuild everything along with pod install and then it should archive no problem.
Facebook guy admitting to the bug and fixing it
I created a new project with the same name, installed all the latest packages and copied the code. Only after that the project was built success.

"Unsatisfiable requirements detected for the package" in Julia

I am getting an error while adding packages to the julia:
Error
DataFrame
(#v1.5) pkg> add DataFrames
Updating registry at `C:\Users\.julia\registries\JuliaComputingRegistry`
Resolving package versions...
ERROR: Unsatisfiable requirements detected for package DataFramesMeta [1313f7d8]:
DataFramesMeta [1313f7d8] log:
├─DataFramesMeta [1313f7d8] has no known versions!
└─restricted to versions * by an explicit requirement — no versions left
CUDA
(#v1.5) pkg> add CUDA
Resolving package versions...
ERROR: Unsatisfiable requirements detected for package CUDA [052768ef]:
CUDA [052768ef] log:
├─CUDA [052768ef] has no known versions!
└─restricted to versions * by an explicit requirement — no versions left
This happens every time I try to add any package to julia. I have tried reinstalling the julia but the issue still persist.
Please suggest a solution to this issue. I have also posted this issue on julia-discourse.
Thanks in advance.
Update
The issue is related to cloning of registry during update. Apparently, it is some kind of a bug.
To resolve this issue, you may delete the registry/General folder and then restart Julia. This will make Julia to rebuild all the packages and then everything should run smoothly.
To delete the folder, one may either go to console and perform following operations:
(#v1.5) pkg> registry rm General
Removing registry `General` from ~/.julia/registries/General
or
Look for the folder .julia/registries/General (tested in windows) and delete it manually. (Path will look something like this: C:\Users\User\.julia\registries\General
Thanks!!

bibliometrix (Problem in uploading the data)

I am trying to do bibliometrix analysis of articles using the bibliometrix package. I installed the package and then run the library.However, when I am uploading my data, it is showing this error:
Error in readFiles("C:/Users/patel/savedrecs.bib") : could not find
function "readFiles".
Also. when I am running library this is the massage I am getting.
library(bibliometrix) ### load bibliometrix package
Error: package or namespace load failed for ‘bibliometrix’: object
‘scale_type’ is not exported by 'namespace:ggplot2'
In addition:
Warning message: package ‘bibliometrix’ was built under R version
3.4.4
My question is how to upload data? Please help me.
Try to download the package directly from the github repository:
install.packages("devtools")# to install the bibliometrix most recent version from GITHUB
devtools::install_github("massimoaria/bibliometrix")
Beware! The github version, usually, is the most recent and not fixed one.
For windows, I had to install Rtools from https://cran.r-project.org/bin/windows/Rtools/
Then I did the following installs in RStudio
> install.packages("bibliometrix", dependencies=TRUE)
> library(bibliometrix)
To cite bibliometrix in publications, please use:
Aria, M. & Cuccurullo, C. (2017) bibliometrix: An R-tool for comprehensive science mapping analysis, Journal of Informetrics, 11(4), pp 959-975, Elsevier.
http:\\www.bibliometrix.org
To start with the shiny web-interface, please digit:
biblioshiny()
> biblioshiny()
Only then all such prerequisite problems got resolved. Without RTools, all such errors were getting reported.
I re-installed the rtools, then installed the jsonlite package and lastly, installed the bibliometrix package.
now it's working.

Error arose when using Pkg.add() in Julia

I have a problem when trying to add a package in the terminal using Pkg.add, the terminal gives me the following error message:
fatal:your current branch 'master' does not have any commits yet
Error: failed process: Process(`git' --git-dir=````)
How do I fix it?
I've had the same issue with Gadfly. Installation failed and I couldn't load nor reinstall the package.
After looking at the documentation.
Turns out there is a cache folder (with the same name as the package) hidden in Users\my_username\.julia\v0.4\.cache\ I removed this folder and the package installed fine from Julia running Pkg.add("Gadfly").
Try removing the folder and install the package again.
Please give more information about where this package comes from. Github? Your hard drive? A zip file?
If this is one of your packages, just create a commit.
git add .
git commit -m 'First commit'
This should work.

Error during installation of Cairo package on Red Hat (RHEL)

I am working on R and I need to install the Cairo package.
install.packages("Cairo")
Specification
R version 2.15.0 (2012-03-30)
OS : Red Hat Enterprise Linux Server release 6.1 (Santiago)
I'm getting following error message:
xlib-backend.c:34:74: fatal error: X11/Intrinsic.h: No such file or directory
compilation terminated.
make: *** [xlib-backend.o] Error 1
ERROR: compilation failed for package ‘Cairo’
* removing ‘/usr/local/lib64/R/library/Cairo’
The downloaded source packages are in
‘/tmp/RtmpqtvjPA/downloaded_packages’
Updating HTML index of packages in '.Library'
Making packages.html ... done
Warning message:
In install.packages("Cairo") :
installation of package ‘Cairo’ had non-zero exit status
Had same error. To solve:
Ran the 3 following pieces which were already installed, but doesn't hurt to run and check
yum install libX11
yum install libX11-devel
yum install libXt
Then ran the following which fixed my problem:
yum install libXt-devel
Was able to install.packages("Cairo") afterwards in R 2.15.0 RHEL6.1
On Alpine-linux I fixed this using the following:
apk add cairo-dev

Resources