ess-mode fails to start s-plus process correctly - linux

When trying to start S-plus 6.2.1 for linux using Emacs 25.2.1 lucid and ess-17.11.2 under Elementary OS 5.0 (based on Ubuntu 18.04 LTS), I get the following error:
ess-command: Wrong number of arguments: #[(com &optional buf sleep) "Á!" [com ess-eval-linewise] 2
("/usr/share/emacs25/site-lisp/ess/ess-dde.elc" . 4843)], 7
It seems that an S+ process is running, but when I try to issue a command, I get this error:
ess-get-process: No ESS process is associated with this buffer now
How do I fix it? I tried with ess-18.10, but got another error telling that it could not find the Splus program although it is in the PATH.

Related

Pytorch "hipErrorNoBinaryForGpu: Unable to find code object for all current devices!"

SYSTEM: Ryzen 5800x, rx 6700xt, 32 gigs of RAM, Ubuntu 22.04.1
I'm attempting to install Stable-Diffusion by following https://youtu.be/d_CgaHyA_n4
When attempting to run the SD script, I get the "hipErrorNoBinaryForGpu: Unable to find code object for all current devices!" error.
I believe this is caused by PyTorch not working as expected. When validating Pytorchs' installation with "The Master Test", I get the same error:
"hipErrorNoBinaryForGpu: Unable to find code object for all current devices!"
Aborted (core dumped)
I believe that it is install correctly as using the conda list command tells me that torch 1.12.0a0+git2a932eb and torchvision 0.13.0a0+f5afae5 are installed. Interestingly, when I change the command ever-so-slightly to torch.cuda.is_available, (without the parentheses), I get the following output: <function is_available at 0x7f42278788b0>. Granted, I'm not sure what this is telling me. Following the "Verification" step resulted in the expected array of random numbers. However, failed the GPU driver check.
Thank you in advance.
Try running the following command:
export HSA_OVERRIDE_GFX_VERSION=10.3.0
This made it work on my machine using an RX 6600 XT, with which I got the same error running it, before exporting the variable.
I was struggling with ROCm enabled Tensorflow, the tensorflow-rocm, package. Without setting up the environment variable
export HSA_OVERRIDE_GFX_VERSION=10.3.0
, tensorflow-rocm crashes.
After setting it up, it works with 6700XT as well (at least it does not crash.) But still having problem with finding libraries.
It seems ROCm has a lot to catch up.

opencv Code keep crashing and didn't execute afterward

I was working on a project that was running fine but now when I try to setup the whole code again for the client. my opencv code execute and crashes the first time I try to run it.afterwards the code doesn't even execute until I restart my system again.then code execute and crash again then it doesn't even execute. the terminal shows the msg(attached image) and nothing happen afterwards
os: ubuntu 18.04
python version: python3
opencv version 4
The problem seems to come from pytroch library as te error comes from torch.nn.modules.
I recommend you to check if you have the last version of Pytorch or if there are some issue within the test_2.py code in line 139 when calling:
utils.predict(model_ft, labels, transforms, test_dir, imgFile)

This piece of python code hung up my whole system , Does anybody have a clue?

My host system is OpenSuse 13.2 and i am running FreeBsd 10.1 on vagrant
when i ran following code on Freebsd 10.1 running on vagrant , not only freebsd but the host system hung up and i had to manually press power button to shutdown .
#!/usr/local/bin/python3
import os,subprocess
subprocess.Popen("cd /usr/local/ && sh",shell=True)
on freebsd output of
$ ps $$
is
PID TT STAT TIME COMMAND
900 0 Ss 0:00.47 -sh (sh)
I strongly doubt, the hang was due to the script. It would not hang the OS, and it most certainly would not hang the host.
I just ran this "script" here without any ill-effects. Most likely you had a problem with your vagrant-host (hardware error?), which happened to coincide with you running the script.
Have you tried it again -- after the host came back?

Error in using 'theano-nose' command

After installing Theano from Enthought Canopy on Windows, following the steps here: http://deeplearning.net/software/theano/install.html#id9 , I tried to execute the command theano-nose from Canopy terminal. I got an error message saying "unable to find theano-nose". Can someone tell me what might be going wrong?
theano-nose is from the command line. But your shell need to be able to find it.
It is highly possible it didn't got installed correctly on Windows or that you need to reboot or log out/log in. I do not remember Windows particularities on that level.
But a simple work around is to start python and run this:
import theano
theano.test()
This is equivalent for what you want to do.

java does not exit back to prompt when running jar file fails

when running java -jar myfile.jar on my RHEL 64 machine, if the install fails for some reason, i don't get back to prompt - thus the process doesn't exit
on other RHEL 64 machine, when running the same jar file, if it fails, i get back to prompt.
both machines are running the same version of java 1.6.0_25
anyone know what can cause this behavior ?
edit: the jar has an ant build xml that fails right on the beginning (i've added <fail/> task).
when running the file i get this
Total time: 1 second
validate failed
org.tp23.antinstaller.InstallException: Error running the install, Ant run failed - examine the error logs for details
at org.tp23.antinstaller.runtime.exe.AntLauncherFilter.exec(AntLauncherFilter.java:112)
at org.tp23.antinstaller.runtime.exe.AntLauncherValidateFilter.exec(AntLauncherValidateFilter.java:53)
at org.tp23.antinstaller.runtime.ExecInstall.exec(ExecInstall.java:89)
at org.tp23.antinstaller.selfextract.SelfExtractor.main(SelfExtractor.java:372)
Install failed
Error running the install, Ant run failed - examine the error logs for details
Failed
but no prompt, process still running...
Could it be that you still have some non-daemon threads sticking around? Try getting a Java stack dump with:
kill -QUIT <process_id>

Resources