The Data Mining Forum                             open-source data mining software data mining conferences Data Science for Social and Behavioral Analytics DSSBA 2022 data science journal
IMPORTANT: This is the old Data Mining forum.
I keep it online so that you can read the old messages.

Please post your new messages in the new forum: https://forum2.philippe-fournier-viger.com/index.php
 
PrefixSpan with strings
Posted by: saiph
Date: April 05, 2013 08:01AM

Hi,

I'm trying to use PrefixSpan with strings, through the graphical interface as well as command line. But I always get the following error:

$ java -jar spmf.jar run "PrefixSpan_with_strings" test_files/contextPrefixSpanStrings.txt 50%
java.io.FileNotFoundException: file:/home/saiph/spam/spmf.jar!/ca/pfv/spmf/tests/contextPrefixSpanStrings.txt (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at ca.pfv.spmf.sequentialpatterns.prefixspan_with_strings_saveToFile.SequenceDatabase.loadFile(SequenceDatabase.java:47)
at ca.pfv.spmf.gui.MainWindow.runAlgorithm(MainWindow.java:964)
at ca.pfv.spmf.gui.MainWindow.commandLine(MainWindow.java:1530)
at ca.pfv.spmf.gui.MainWindow.main(MainWindow.java:168)
Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:207)
at java.awt.Window.<init>(Window.java:535)
at java.awt.Frame.<init>(Frame.java:420)
at java.awt.Frame.<init>(Frame.java:385)
at javax.swing.SwingUtilities$SharedOwnerFrame.<init>(SwingUtilities.java:1756)
at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1831)
at javax.swing.JOptionPane.getRootFrame(JOptionPane.java:1697)
at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:863)
at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:667)
at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:638)
at ca.pfv.spmf.gui.MainWindow.runAlgorithm(MainWindow.java:1501)
at ca.pfv.spmf.gui.MainWindow.commandLine(MainWindow.java:1530)
at ca.pfv.spmf.gui.MainWindow.main(MainWindow.java:168)

What can I do to sort this out?

Thanks.

Options: ReplyQuote
Re: PrefixSpan with strings
Date: April 05, 2013 03:10PM

Hi,

Thanks for this information.

It is a bug. It works fine under Windows. But when I test it with Cygwin, it gives a similar error.

It must be something with how I handle the file paths in the software. I tried to make it platform independent. But since I mostly work under Windows, I had not see that problem.

I will check this out tomorrow and fix it.

Until then, if you try on Windows, it will work fine.

Best,

Philippe



Edited 2 time(s). Last edit at 04/05/2013 03:11PM by webmasterphilfv.

Options: ReplyQuote
Re: PrefixSpan with strings
Date: April 08, 2013 05:59AM

Hi Saiph,

I have fixed the bug.

The problem was that there was an hardcoded path in MainWindow.Java.

You can download the new spmf.jar or spmf.zip from the download page, and it will work!

Best,

Philippe

Options: ReplyQuote
Re: PrefixSpan with strings
Posted by: saiph
Date: April 08, 2013 06:25AM

Thank you smiling smiley

Options: ReplyQuote


This forum is powered by Phorum and provided by P. Fournier-Viger (© 2012).
Terms of use.