Plantuml cant create PDF any longer - homebrew

I was using plantuml to generate UML-class diagrams on my mac for a long time successfully. I installed plantuml with homebrew originally. Now suddenly I get the following error trying to generate a pdf file:
java.lang.ClassNotFoundException: org.apache.batik.apps.rasterizer.SVGConverter
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:636)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:182)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:375)
at net.sourceforge.plantuml.pdf.PdfConverter.convert(PdfConverter.java:57)
at net.sourceforge.plantuml.UmlDiagram.exportDiagramInternalPdf(UmlDiagram.java:288)
at net.sourceforge.plantuml.UmlDiagram.exportDiagramNow(UmlDiagram.java:140)
at net.sourceforge.plantuml.AbstractPSystem.exportDiagram(AbstractPSystem.java:157)
at net.sourceforge.plantuml.PSystemUtils.exportDiagramsCuca(PSystemUtils.java:233)
at net.sourceforge.plantuml.PSystemUtils.exportDiagrams(PSystemUtils.java:89)
at net.sourceforge.plantuml.SourceFileReaderAbstract.getGeneratedImages(SourceFileReaderAbstract.java:160)
at net.sourceforge.plantuml.Run.manageFileInternal(Run.java:519)
at net.sourceforge.plantuml.Run.processArgs(Run.java:403)
at net.sourceforge.plantuml.Run.manageAllFiles(Run.java:370)
at net.sourceforge.plantuml.Run.main(Run.java:198)
Probably homebrew updated some packages and this causes some incompatibilities now. I already tried to uninstall and reinstall plantuml and all dependencies. Unfortunatley, without any success. I have the following package versions installed:
batik 1.14
fop 2.6
graphviz 2.47.2
librsvg 2.50.7
plantuml 1.2021.7
Does anybody have an idea how to fix this issue?
Best regards,
Alex

Related

How to install luagraph using luarocks

I'm trying to use luagraph, a binding to the graphviz library:
http://luagraph.luaforge.net/index.html
To install, I'm using luarocks in Mac OS X. The following command is executed in bash:
luarocks install luagraph
The output is the following:
Installing https://luarocks.org/luagraph-1.0.4-1.src.rock... Using
https://luarocks.org/luagraph-1.0.4-1.src.rock... switching to 'build'
mode
Error: Could not find expected file graphviz/graph.h, or
graphviz/graph.h for GRAPHVIZ -- you may have to install GRAPHVIZ in
your system and/or pass GRAPHVIZ_DIR or GRAPHVIZ_INCDIR to the
luarocks command. Example: luarocks install luagraph
GRAPHVIZ_DIR=/usr/local
I have been installed graphviz using homebrew, but I can't figure out how to pass GRAPHVIZ_DIR or GRAPHVIZ_INCDIR properly.
How can I install luagraph?
I've updated LuaGRAPH a couple of weeks ago. It now supports the newest version of Graphviz based on the cgraph library instead of the old graph library.
There is one drawback: I couldn't get luagraph to run on Windows using mingw because of some runtime library issues (compiler and dll compatibility probably). Please look at the README file for more details.
I personally never produced a rockspec for this module. This was created by someone else based on a fork of my luagraph library.
Installation without Luarocks is simple. Download from
https://github.com/hleuwer/luagraph
and follow the instruction in the documentation and the README file. You need adopt a simple config file which is included by make.
Herbert
Well, luaGRAPH is still the top result when searching for lua and graph. So the question is still standing.
And, unfortunately, the answer is: luagraph is OLD, the last update happened before the ubuntu 14.04 was released. And there seem to be some notable changes in the system itself, the flags the error message show do not seem to work. On top of that, graphviz is now about 20 releases newer than the luarock recommends.
There now is a bare bone alternative lua package: graphviz
It is extremely basic, and documentation in not at all informative, but at least it works.
update: Luagraph may be working again, but not through rocks. See the other answer.

Cannot install Grails from GVM on my Ubuntu machine; gvm install grails does not work

I tried to use GVM tool to install Grails, and before that I updated GVM to the last version from a very old version. After the proposal of the prompt, I executed gvm install grails and it failed after a connection problem. I tried to install again Grails by typing the same command.
Found a previously downloaded grails 3.0.1 archive.
Not downloading it again...
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one
of /home/myhome/.gvm/archives/grails-3.0.1.zip or
/home/myhome/.gvm/archives/grails-3.0.1.zip.zip,
and cannot find /home/myhome/.gvm/archives/grails-3.0.1.zip.ZIP, period.
Stop! The archive was corrupt and has been removed! Please try installing again.
I executed again gvm install grails and it gave me the same error above, I tried to remove the files manually but I got an error that they are not found.
Try:
gvm list grails
This will give you a list of all installed candidates. You should see an asterisk (*) symbol if you have candidates installed and an arrow to show which candidate is being used.
If they do show up. Try uninstalling it by specifying the candidate along with install
gvm uninstall grails 3.0.1
Then try running the install command again.
It usually does work.

Couldn't find `document._registerDartTypeUpgrader`

My previously executing application now fails to run with the following stacktrace
Exception: Unsupported operation: Couldn't find 'document._registerDartTypeUpgrader'. Please make sure that 'packages/web_components/interop_support.html' is loaded and available before calling this function. (package:web_components/interop.dart:24)
What exactly does this means.
I have the same problem but only on my Windows machine. On my MacBook it works OK with the exact same code.
UPDATE:
I've compared my Windows machine with the MacBook regarding versions. They both have:
DartSDK 1.7.2_r41096
Chromium 37.0.2062.120 (292122)
The packges folder symlinks point to the exact same version folder for every package
Still no idea what the difference is.
UPDATE:
Got it working after changing version to "any" for some packages and doing a "pub upgrade". I checked in the pubspec.lock which packages were upgraded. If you depend on any of these it might help if you upgrade them:
args
barback
code_transformers
collection
core_elements intl
paper_elements
smoke source_maps
stack_trace
string_scanner
In particular I suspect the old version of core_elements and paper_elements to have caused the problem but I have not reproduced it.

railsinstaller 2.2.1 fails on windows

i downloaded the rails installer and tried to install, but i get the error in the screenshot. I have re-downloaded the file several times and installed times over, but without success.
what is the problem?
Can you please try with version 2.2.2? Additionally, any issues with the installer should be reported in Github Issues.
Evan

Installing the OpenCV prebuilt library on Ubuntu server 11.10

I am new to the Linux scene and I am trying to get OpenCV installed and running on our server as I need it to build and run a few applications on the system. I have followed the Ubuntu package Install directions, but I seem to have an issue when I get to the install command. I get the terminal saying that it is reading the package list and after a few seconds I get a message saying that opencv cannot be found.
Has anyone had any experiences installing this library and can anyone possibly help guide me on how to use this whole setup? If it's any help I get a 404 error when I try to access the PPA in the update. Did I add the repository incorrectly?
Any advice is greatly appreciated.
OpenCV 2.1 is quite old. Try setting up his new PPA for OpenCV 2.3.1. It has a Natty target.
Hope that's helpful!

Resources