using Xpress failed - julia

when I type using Xpress it show me two errors. One is
LoadError: XPRESS cannot be loaded. Please run Pkg.build("Xpress")
and another is
Failed to precompile Xpress [9e70acf3-d6c9-5be6-b5bd-4e2c73e3e054] to C:\Users\cys\.julia\compiled\v1.6\Xpress\jl_7C6D.tmp.
I tried to solve it by Pkg.build("Xpress") but it show me
ERROR: Error building `Xpress`:
ERROR: LoadError: Unable to locate Xpress installation.
Please check your enviroment variable XPRESSDIR.
Note that Xpress must be obtained separately from fico.com.
using XpressPkg.build("Xpress")

Please follow the installation instructions mentioned here: https://github.com/jump-dev/Xpress.jl#install which go into the perquisites installs required before you can successfully type using Xpress.

Related

Android Studio 4 Build ERROR : Execution failed for task ':app:mergeDebugResources'

Hello this is my first time make android program and found this error but the code not have an error point. the error message is below :
Execution failed for task ':app:mergeDebugResources'.
Could not resolve all files for configuration ':app:_internal_aapt2_binary'.
Failed to transform aapt2-4.1.1-6503028-windows.jar (com.android.tools.build:aapt2:4.1.1-6503028) to match attributes {artifactType=_internal-android-aapt2-binary, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for Aapt2Extractor: C:\Users\lenovo.gradle\caches\modules-2\files-2.1\com.android.tools.build\aapt2\4.1.1-6503028\cc838ebadee3649d47e07d029371bc1054e2200d\aapt2-4.1.1-6503028-windows.jar.
> java.io.IOException: Unable to delete directory 'C:\Users\lenovo.gradle\caches\transforms-2\files-2.1\aa8b5888abc00f78a9403248465821cc'
Failed to delete some children. This might happen because a process has files open or has its working directory set in the target directory.
- C:\Users\lenovo.gradle\caches\transforms-2\files-2.1\aa8b5888abc00f78a9403248465821cc\aapt2-4.1.1-6503028-windows
can someone tell me how to fix it ?
i had same problem in linux
tried many ways and asked some question.
finally found out there is file missing named aap2 in build-tools
i couldn't find that file to place it in destination so i deleted whole file and re Download it with sdk manager and if it doesn't work too i guess u should try reinstall android studio
yes its not a good answer but it was all experience i had with this error.

GLM Precompile Error In Julia Pro 1.0/1.2

Hello internet friends,
I am using the Julia Pro v.1.0.5-2 IDE to render animations for some Condensed Matter Physics data. When I attempt to run:
array = load("C:/Users/Kyle/Desktop/julia/data/Psi_L=89_W=0_0.01_500000-500/Psi_L=89_W=0_g=0.0_L^2.jld", "data")
#gif for i=1:7
array_2 = abs2.(array[i][:,:,1])
x=1:89
y=1:89
f(x,y) = array_2[x,y]
plot(x,y,f,st=:surface,camera=(0,30), title = "Wavefunction Density Animation, L=89, g=0, t = $(5*i)")
end
I get the following error:
[ Info: Precompiling GLM [38e38edf-8417-5370-95a0-9cbb8c7f171a]
ERROR: LoadError: No deps.jl file could be found. Please try running Pkg.bui
Currently, the build command might fail when Julia has been built from sourc
and the recommendation is to use the official binaries from julialang.org.
For more info see https://github.com/JuliaLinearAlgebra/Arpack.jl/issues/5.
ERROR: LoadError: LoadError: Failed to precompile Arpack [7d9fca2a-8960-54d3aPro_v1.0.5-2\compiled\v1.0\Arpack\X5VZL.ji.
in expression starting at C:\Users\Kyle\.juliapro\JuliaPro_v1.0.5-2\packages
in expression starting at C:\Users\Kyle\.juliapro\JuliaPro_v1.0.5-2\packages
ERROR: LoadError: Failed to precompile PDMats [90014a1f-27ba-587c-ab20-58faa-2\compiled\v1.0\PDMats\wuzEE.ji.
in expression starting at C:\Users\Kyle\.juliapro\JuliaPro_v1.0.5-2\packages
ERROR: LoadError: Failed to precompile Distributions [31c24e10-a181-5473-b8e_v1.0.5-2\compiled\v1.0\Distributions\xILW0.ji.
in expression starting at C:\Users\Kyle\.juliapro\JuliaPro_v1.0.5-2\packages
ERROR: LoadError: Failed to precompile GLM [38e38edf-8417-5370-95a0-9cbb8c7fcompiled\v1.0\GLM\6OREG.ji.
When I attempt to run:
Pkg.build("Arpack")
I get the following error:
Pkg.build("Arpack")
Building Arpack → `C:\Users\Kyle\.juliapro\JuliaPro_v1.0.5-2\packages\Arpa
┌ Error: Error building `Arpack`:
│ ┌ Warning: Platform `x86_64-w64-mingw32-libgfortran4` is not an officially
│ └ # BinaryProvider C:\Users\julia\AppData\Local\Julia-1.0.5\share\julia\st
It is important to mention that I had produced several animations with no problems with the same exact code. I stopped to go through some emails and when I tabbed back and ran the code with new parameters, it broke as I described. Furthermore, all the relevant packages are installed (except the ones that threw these errors) and "using [xpackage]" are sprinkled in appropriately.
Thanks for taking the time to read!
Unfortunately, Arpack >=0.3.2 is incompatible with JuliaPro 1.2.0-1. To work aound this issue, you can either ] add Arpack#0.3.1 or install JuliaPro version 1.2.0-2.

Warning: Package xxxxx does not have POMDPSimulators in its dependencies in Julia if usual recommendations don't work.

I have seen this issue commonly since I started the transition to Julia v0.7 from v0.6. I am getting the following warning:
Warning: Package xxxxx does not have POMDPSimulators in its dependencies:
│ - If you have xxxxx checked out for development and have
│ added POMDPSimulators as a dependency but haven't updated your primary
│ environment's manifest file, try `Pkg.resolve()`.
│ - Otherwise you may need to report an issue with xxxxx
└ Loading POMDPSimulators into xxxxx from project dependency, future warnings for xxxxx are suppressed.
I do not understand why I get this warning. In one of my files, I do: using POMDPSimulators. Since I typed in that, I have done a resolve in the Pkg manager, and done a build POMDPSimulators in the package manager. This doesn't change the warning. How can I get rid of this warning?
Note: xxxxx is just the name of a file/project that is removed to make this post general.
Note: I asked a similar question here: [Julia ERROR: LoadError: ArgumentError: Package xxxx does not have ExcelReaders in its dependencies:
I already checked out the Julia documentation and did what it says. I added the package to the project by using the package manager and typing add POMDPSimulators.
Any suggestions to resolve this issue?
Note: If possible, I am looking for a general answer since I think I am going to have this issue with other packages as well. If there is any other documentation out there besides what was provided by JuliaLang I could appreciate that since I didn't find it helpful.
Link to the Julia Article about dependencies
I tried a pkg> update, build, and resolve. The issue isn't resolved. I see the file in my Manifest and Project file.
Here is what got the Warning to no longer show for me.
Go to your require file and type "NameOfPackageGivingWarning" on a new line.
Click "]" in Julia to open the package manager in Julia command line version:
up NameOfPackageGivingWarning
build NameOfPackageGivingWarning
resolve
activate NameOfPackageGivingWarning
This should resolve the issue for you. I am honestly unsure why this works and I may be taking more steps than necessary, but it resolved the issue for all of my package dependency warnings!

How to use the module in Julia v0.7

I have the following set up: module xxxxx at the top of my file named xxxxx.jl
I go to do the following:
include("modules/xxxxx/xxxxx.jl")
using xxxxx
I get the following error:
ERROR: LoadError: ArgumentError: Package xxxxx not found in current path:
- Run Pkg.add("xxxxx") to install the xxxxx package.
Any suggestions? I don't have this error on Julia v0.6 only on v0.7!
Thanks!
Write
using .xxxxx
By using include function the module is loaded as a submodule of a current module.
E.g. if you included it in global scope then you can also write
using Main.xxxxx
But the syntax I gave at the top would work no matter if you are in Main module or you include a submodule in another module defined by you.

Build error - variable environment not set correctly

I'm trying to build an opensource code on windows.
I get the error:
Warning: QT_QMAKE_EXECUTABLE reported QT_INSTALL_LIBS as D;/Qt/4.8.4/lib
Warning: D**;**/Qt/4.8.4/lib does NOT exist, Qt must NOT be installed correctly.
CMake Error at /usr/share/cmake-2.6.4/Modules/FindQt4.cmake:640 (MESSAGE):
Could NOT find QtCore header
(this is only a part of the error message)
I tried to re-install Qt, didn't work.
I tried to change QT_INSTALL_LIBS to be D:/Qt/4.8.4/lib (and not D:/Qt/4.8.4/lib) in my computer -> properties -> advanced - > environment variables but that didn't seem to change a thing.
I have no idea what to do next. Does anyone know what I should do fix it?

Resources