B4J Question Library is declared twice.

Tim Chapman

Active Member
Licensed User
Longtime User
I uploaded my OpenAI library to my post here: https://www.b4x.com/android/forum/threads/openai-library.163668/

In doing so, I am switching from using it as a class module in my code which I removed.

Having done that, when I open the IDE, I get the error: OpenAI is declared twice. You should either remove the library reference or the code module.

I uploaded 3 files to the the post above:

The one called OpenAIUtils Works.zip functions properly when you open the IDE using the class module.

The one called OpenAIUtils.zip gives the error when I open the IDE. It uses the library which I put in my additional libraries folder.

The one called OpenAI.b4xlib is, of course, the library.

This library module is the first time I have released a library for the public, so I may have done something wrong.

Thank you in advance for the help!
 
Solution
Please fix it for me and add the fixed file to this post so I can see what you mean. Sorry to ask for more help.

Look this Screenshot.
I opene B4XCollenction.b4xlib on left side.
Ipenai.b4xlib on right side.

The solution is NOT TO USE a OpenAI folder inside. just add the files directly to the root of the zip.

Attached the updated b4xlib-file ;-)

dopus_C8ioNsEzTE.png

Tim Chapman

Active Member
Licensed User
Longtime User
There is no post with attachments!?
This post:
 
Upvote 0

Tim Chapman

Active Member
Licensed User
Longtime User
OpenAI.b4xlib isn't built properly. You need to move the two files out of the folder and remove the OpenAI folder.
I must be missing something. If I understand you correctly, you are saying there is a a folder inside the zip file that my files are in. I unzipped the B4XCollections.b4xlib just to compare. It seems to have the same folder structure as my zip file. So I don't know how to fix this. Please fix it for me and add the fixed file to this post so I can see what you mean. Sorry to ask for more help.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Please fix it for me and add the fixed file to this post so I can see what you mean. Sorry to ask for more help.

Look this Screenshot.
I opene B4XCollenction.b4xlib on left side.
Ipenai.b4xlib on right side.

The solution is NOT TO USE a OpenAI folder inside. just add the files directly to the root of the zip.

Attached the updated b4xlib-file ;-)

dopus_C8ioNsEzTE.png
 

Attachments

  • OpenAI.b4xlib
    11.1 KB · Views: 30
Upvote 0
Solution
Top