ZribeDev / cloudpip

CloudPIP is a dynamic Python package importer that simplifies the process of using Python packages on the fly.
GNU General Public License v3.0
1 stars 0 forks source link

Wasn't able to get it to work #1

Open amks1 opened 6 months ago

amks1 commented 6 months ago

Here's my code:

from cloudpip import download_and_load_package as cloudimport, cleanup as cloudcleanup
oracledb = cloudimport("oracledb")
import oracledb
print(oracledb.__file__)
cloudcleanup()

Output:

Exception has occurred: ModuleNotFoundError
No module named 'oracledb'
ZribeDev commented 6 months ago

Yep, currently it's broken. The issue is it imports the src of the library without its depeneds

On Mon, Apr 1, 2024, 03:42 amks1 @.***> wrote:

Here's my code:

from cloudpip import download_and_load_package as cloudimport, cleanup as cloudcleanuporacledb = cloudimport("oracledb")import oracledbprint(oracledb.file)cloudcleanup()

Output:

Exception has occurred: ModuleNotFoundError No module named 'oracledb'

— Reply to this email directly, view it on GitHub https://github.com/ZribeDev/cloudpip/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/APZEYEXHDB4L6WT4YWRL6U3Y3CUOZAVCNFSM6AAAAABFQ23A6GVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYTOMRYGA3DGNA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ZribeDev commented 6 months ago

Wait a moment, never mind, this error just means this specific package could not be found ( I am pretty sure ), try to upload to a cdn or a direct file host