fjenett / sql-library-processing

SQLibrary – a SQL database library for Processing incl. MySQL, SQLite and PostgreSQL
http://fjenett.github.com/sql-library-processing/
37 stars 24 forks source link

Processing 3 Compatibility #14

Open feltron opened 9 years ago

feltron commented 9 years ago

Attempting to use the library in Processing 3 gives the following error:

NoSuchMethodError: You may be using a library that's incompatible with this version of Processing.

Your library has been a critical part of my workflow and it would be tragic for it to not be updated to work with P3.

thanks!

fjenett commented 9 years ago

Hey, thanks for reporting. I will look into it this week.

... and glad you were able to make use of the lib!

feltron commented 9 years ago

Thanks Florian!

LucyMatch commented 8 years ago

Hey there!

I've recently encountered the same issue when using p3, I was wondering if you had found any possible solutions?

Thanks!

fjenett commented 8 years ago

Ehhh … no. I did not look into it yet. Thanks for the ping, will try to fix asap.

feltron commented 8 years ago

Thanks Florian.

jitterhorse commented 8 years ago

Hey Florian, thanks for sharing! Will there be a update for processing 3.0 compatibility soon?

zoha21 commented 8 years ago

Hello there. Thank you for sharing this! I'm probably going to sound redundant, but I was wondering if you were able to figure out how to update your library to be compatible with Processing 3?

q2dg commented 8 years ago

Well..Do you know where is the problem in the code? Can we help to mend it?

feltron commented 8 years ago

@benfry can you contribute your fix to this library as a pull request?

benfry commented 8 years ago

Already done back when we talked about it in May: https://github.com/fjenett/sql-library-processing/pull/15

q2dg commented 8 years ago

But this library (version 0.2.0) still appears as disabled in "Contribution Manager"'s Processing IDE's "Libraries" tab (version 3.1.1) so it can't be installed from there.

mattjarvis commented 8 years ago

Can it be installed and used reliably without the "Libraries" install feature?

matzTada commented 8 years ago

Hi all, I succeeded in 1 .compiling BezierSQLib library and

  1. installing it without the "Libraries" install feature of Processing IDE on Raspberry Pi. (It should work in other Linux, I guess. And also, once you have the new compiled library, you can just copy the library under "Processing/libraries" where other libraries in)

Step 1. Clone (or download ZIP) the repository from https://github.com/fjenett/sql-library-processing.
Step 2. Change two lines in build.xml.

around #L15. adapt "location" the same place where the processing.exe is in. 
Before:
<property name="processing.classes"  
    location="/Users/fjenett/Repos/processing/build/macosx/work/Processing.app/Contents/Resources/Java/" />
After:
<property name="processing.classes"  
    location="/usr/local/lib/processing-3.2.1" /> 

around #L18. adapt "location" the same place where the other libraries is in. 
Before:
<property name="processing" location="/Users/fjenett/Documents/Processing/libraries"/>   
After:
<property name="processing" location="/home/pi/sketchbook/libraries"/>   

Step 3. execute ant command.
Then you should be able to use BezierSQLib with Processing-3.

I hope this helps you.

fjenett commented 8 years ago

Yes, that should be about it …

q2dg commented 8 years ago

Thanks a lot for this hack, @matzTada but I think the problem with "Libraries" install feature should be resolved some time in the future to arrive to more (and less technical, generally speaking) people

fabianhemmert commented 8 years ago

Fixing the installation through the "Add Libraries" feature would be great, yes!

bbslipers commented 7 years ago

Please ... Help !!! Processing 3 Compatibility BezierSQLib.zip binary for Windows.

alemlishar commented 7 years ago

hello all, i am working on Procecessing 3 and using this library for mysql database connection i tried so hard by following the guide but, NoSuchMethodError happend, finally after the fix by @matzTada i stoped in the last step 3 (execute the ant command) can anyone tell me how to get the ant script or something i miss, thank you

feltron commented 7 years ago

For anyone who needs it, here's a link to a compiled version of the library with the Processing 3 fix. https://github.com/benfry/sql-library-processing/raw/master/release/BezierSQLib.zip

fabianhemmert commented 7 years ago

Perfect, thank you!

On Mon, Jan 9, 2017 at 5:48 PM, Nicholas Felton notifications@github.com wrote:

For anyone who needs it, here's a link to a compiled version of the library with the Processing 3 fix. https://github.com/benfry/sql-library-processing/raw/master/ release/BezierSQLib.zip

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fjenett/sql-library-processing/issues/14#issuecomment-271337354, or mute the thread https://github.com/notifications/unsubscribe-auth/ALXlbNVsN_HVctUoKc8eyxi_qEVIch4sks5rQmTAgaJpZM4GRgQu .

q2dg commented 7 years ago

So, can we consider this new link points to the library which should be added to Library Manager?

fjenett commented 7 years ago

Thanks @feltron !

topanalfa commented 7 years ago

can i insert data from sensor and my processing program run on Raspberry Pi post to DB server online(adepratama.xyz) ? is it possible with this library? how to do it? @fjenett @feltron

fjenett commented 7 years ago

@topanalfa this is not the right place to ask these kinds of use related questions. Please use the Processing Forum instead.