Archived posts, use them to search

Re: New Virtual Programming Lab (VPL) module

by Frank Neumann -
Number of replies: 6
Hi Juan Carlos,

for a VPL activity in C# I need the following JSON parser as external component: Newtonsoft.Json.dll (this is a .NET assembly)

I added this one under "Execution files" and marked it as to be kept when running.

Unfortuantely the compiler gives me the following error:

error CS0009: Metadata file '/home/p14491/Newtonsoft.Json.dll' could not be opened -- PE image doesn't contain managed metadata.

I assume that VPL is not treating the Dll as binary data, i.e. that the Dll is somehow modified by VPL.
I had a similar case in Java where the JAR file was added the same way, but the compilation worked perfectly.

What is your recommendation for my use case?

Best regards,

Frank
In reply to Frank Neumann

Re: New Virtual Programming Lab (VPL) module

by Frank Neumann -

...I figured it out: When I use Base64 Encoding through the b64 extension it works fine.

JAR seems to be a special case.

Regards,

Frank

In reply to Frank Neumann

Re: New Virtual Programming Lab (VPL) module

by Juan Carlos Rodríguez-del-Pino -
Picture of Particularly helpful Moodlers Picture of Plugin developers
Hi Frank,
I have added "dll" extension to the list of extensions of binary files. For other extensions not in the list, the correct solution is to convert it to base64.

Best regards,
Juan Carlos.

In reply to Juan Carlos Rodríguez-del-Pino

Re: New Virtual Programming Lab (VPL) module

by Naveendurai K -

Hi 

Is there any way to add numpy and pandas  module for python course in vpl.


In reply to Naveendurai K

Re: New Virtual Programming Lab (VPL) module

by Juan Carlos Rodríguez-del-Pino -
Picture of Particularly helpful Moodlers Picture of Plugin developers

Hi, Naveendurai.
You must install the proper packages in your jail servers.
For Ubuntu, you can use the following commands:

sudo apt-get install python3-numpy python3-pandas
sudo systemctl restart vpl-jail-system


These commands will install the Python 3 version of Numpy and pandas. If you want the Python 2, remove the "3" from the package names.


I have added

Best regards,
Juan Carlos.

In reply to Juan Carlos Rodríguez-del-Pino

Re: New Virtual Programming Lab (VPL) module

by Naveendurai K -
thank you juan .Is there any way to run a JDBC program .how to add JDBC jar

files and make it work



On Tue, Dec 17, 2019 at 4:02 PM Juan Carlos Rodríguez-del-Pino (via
In reply to Juan Carlos Rodríguez-del-Pino

Re: New Virtual Programming Lab (VPL) module

by Frank Neumann -

Hi Juan Carlos,

thank you.

Best regards,

Frank