Comments (6)
Thanks for reporting this. I'll look into it in the next weeks.
I think it may be a MacOS issue and should also happen in server environments without graphical capabilities (i.e., a remote server shell). The reason might be that Java AWT components like the java.awt.color
class are used in the code accessed by R.
If you require an immediate solution, you can try running it on a non-Mac computer or in RStudio Cloud.
from dna.
Thanks for the help! I've tried to run it on RStudio cloud and received this problem:
dna_init()
Jar file found in library path.
Jar file: /cloud/lib/x86_64-pc-linux-gnu-library/4.2/rDNA/inst/java/dna-3.0.9.jar
Error in dna_init() :
java.lang.NoClassDefFoundError: Could not initialize class java.awt.GraphicsEnvironment$LocalGE
from dna.
This indicates that rDNA has an old jar file version lying around in the library path. It's attempting to use that one instead of the one you have in your working directory. Make sure you use the current 3.0.10 version of both DNA and rDNA and, if necessary, delete the 3.0.9 jar file from the path indicated in the error message. It could be caused by a prior installation of rDNA 3.0.9, for example.
from dna.
If you are sure that you have rDNA 3.0.10 installed and deleting the file does not help, you can also set the relative or absolute path of the jar file you intend to use as an argument in your dna_init
call.
from dna.
This issue was fixed in commit 1906b0c and will be part of the next DNA release 3.0.11.
The problem was that rDNA called the Exporter
Java class in DNA, which in turn relied on the java.awt.Color
class like many other parts of DNA to save colours of coders, statements, regexes etc. The Color
class, however, depends on the graphics output system X11 to work. On some systems, such as HPC servers, X11 is not available. In such cases, rDNA throws a java.awt.HeadlessException
. Headless means there is no X11 graphics system although the code calls for it (via the Color
class as mentioned above).
For some reason, when you install the rJava
R package on MacOS, it throws a warning about not being able to load the X11 libraries for compiling rJava. It's not preventing users from installing rJava, but apparently any code that requires X11 doesn't work in that case, so the result is the same as on a server without X11, such as a Linux server. As rDNA depends in rJava, this effectively led rDNA to throw the java.awt.HeadlessException
on MacOS as well.
In the commit, I replaced all those instances of java.awt.Color
throughout DNA with a new, rewritten Color
class. I wrote this as a light-weight container that simply contains RGB values and can be converted to a java.awt.Color
object when needed. With this replacement, it works on MacOS as well as Linux servers now; I have tested it on both.
from dna.
Related Issues (20)
- When re-opening DNA files with Visone, labels of codes are no longer visible HOT 2
- Opening old DNA dataset in new version HOT 2
- empty csv file after exporting database HOT 11
- Unable to export DNA database HOT 3
- How to find the statements I deleted by mistake? HOT 1
- How to find the statements i deleted by mistake? HOT 1
- Statistics of our DNA? HOT 3
- [Question] Matrix and statistics HOT 2
- Database export gets stuck in "4/4 Writing to file" (uncaughtException / NoSuchElementException)
- Exporting time series DNA 3.0. HOT 1
- Unable to open database HOT 3
- Attributor Management Issue HOT 4
- Problem with unidentified character in text HOT 4
- Can't delete or add new statements on Discourse Network Analyzer (DNA) HOT 7
- Error while creating new database on Mysql or PosgreSQL (Uncaught exception) HOT 6
- Inquiry about Temporal Network Autocorrelation Models HOT 1
- Import files with codes HOT 2
- Failed to close DNA Statement Box
- filtering concepts HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dna.