Python compiled script giving error of “Can't load plugin: sqlalchemy.dialects:presto”
up vote
2
down vote
favorite
I compiled .py file with pyinstaller as follows:
pyinstaller --hidden-import presto --hidden-import scipy._lib.messagestream --onefile main.py
When I ran the compiled file, I got the error:
sqlalchemy.exc.NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:presto
p.s. I used sqlalchemy.engine to connect to presto like:
engine = create_engine('presto://presto.service.example.com:8080/hive/default')
I haven't found anything useful on google.
python sqlalchemy pyinstaller prestodb
|
show 1 more comment
up vote
2
down vote
favorite
I compiled .py file with pyinstaller as follows:
pyinstaller --hidden-import presto --hidden-import scipy._lib.messagestream --onefile main.py
When I ran the compiled file, I got the error:
sqlalchemy.exc.NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:presto
p.s. I used sqlalchemy.engine to connect to presto like:
engine = create_engine('presto://presto.service.example.com:8080/hive/default')
I haven't found anything useful on google.
python sqlalchemy pyinstaller prestodb
The error doesn't occur if you runmain.pywithout compiling?
– SuperShoot
19 hours ago
@SuperShoot no error occurs when running the script directly
– nullne
18 hours ago
2
Are you sure--hidden-import prestois correct? Seems like the DB-API driver is provided by PyHive. The packageprestoin pypi seems unrelated.
– Ilja Everilä
18 hours ago
@IljaEverilä yes you are right, I tried many different packages as hidden import, but failed, including pyhive
– nullne
16 hours ago
This might also have something to do with how 3rd party dialects are registered using entry points. Perhaps pyinstaller requires some hand holding with that?
– Ilja Everilä
16 hours ago
|
show 1 more comment
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I compiled .py file with pyinstaller as follows:
pyinstaller --hidden-import presto --hidden-import scipy._lib.messagestream --onefile main.py
When I ran the compiled file, I got the error:
sqlalchemy.exc.NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:presto
p.s. I used sqlalchemy.engine to connect to presto like:
engine = create_engine('presto://presto.service.example.com:8080/hive/default')
I haven't found anything useful on google.
python sqlalchemy pyinstaller prestodb
I compiled .py file with pyinstaller as follows:
pyinstaller --hidden-import presto --hidden-import scipy._lib.messagestream --onefile main.py
When I ran the compiled file, I got the error:
sqlalchemy.exc.NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:presto
p.s. I used sqlalchemy.engine to connect to presto like:
engine = create_engine('presto://presto.service.example.com:8080/hive/default')
I haven't found anything useful on google.
python sqlalchemy pyinstaller prestodb
python sqlalchemy pyinstaller prestodb
edited 16 hours ago
Ilja Everilä
22.4k33459
22.4k33459
asked 22 hours ago
nullne
3314
3314
The error doesn't occur if you runmain.pywithout compiling?
– SuperShoot
19 hours ago
@SuperShoot no error occurs when running the script directly
– nullne
18 hours ago
2
Are you sure--hidden-import prestois correct? Seems like the DB-API driver is provided by PyHive. The packageprestoin pypi seems unrelated.
– Ilja Everilä
18 hours ago
@IljaEverilä yes you are right, I tried many different packages as hidden import, but failed, including pyhive
– nullne
16 hours ago
This might also have something to do with how 3rd party dialects are registered using entry points. Perhaps pyinstaller requires some hand holding with that?
– Ilja Everilä
16 hours ago
|
show 1 more comment
The error doesn't occur if you runmain.pywithout compiling?
– SuperShoot
19 hours ago
@SuperShoot no error occurs when running the script directly
– nullne
18 hours ago
2
Are you sure--hidden-import prestois correct? Seems like the DB-API driver is provided by PyHive. The packageprestoin pypi seems unrelated.
– Ilja Everilä
18 hours ago
@IljaEverilä yes you are right, I tried many different packages as hidden import, but failed, including pyhive
– nullne
16 hours ago
This might also have something to do with how 3rd party dialects are registered using entry points. Perhaps pyinstaller requires some hand holding with that?
– Ilja Everilä
16 hours ago
The error doesn't occur if you run
main.py without compiling?– SuperShoot
19 hours ago
The error doesn't occur if you run
main.py without compiling?– SuperShoot
19 hours ago
@SuperShoot no error occurs when running the script directly
– nullne
18 hours ago
@SuperShoot no error occurs when running the script directly
– nullne
18 hours ago
2
2
Are you sure
--hidden-import presto is correct? Seems like the DB-API driver is provided by PyHive. The package presto in pypi seems unrelated.– Ilja Everilä
18 hours ago
Are you sure
--hidden-import presto is correct? Seems like the DB-API driver is provided by PyHive. The package presto in pypi seems unrelated.– Ilja Everilä
18 hours ago
@IljaEverilä yes you are right, I tried many different packages as hidden import, but failed, including pyhive
– nullne
16 hours ago
@IljaEverilä yes you are right, I tried many different packages as hidden import, but failed, including pyhive
– nullne
16 hours ago
This might also have something to do with how 3rd party dialects are registered using entry points. Perhaps pyinstaller requires some hand holding with that?
– Ilja Everilä
16 hours ago
This might also have something to do with how 3rd party dialects are registered using entry points. Perhaps pyinstaller requires some hand holding with that?
– Ilja Everilä
16 hours ago
|
show 1 more comment
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53367842%2fpython-compiled-script-giving-error-of-cant-load-plugin-sqlalchemy-dialectsp%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The error doesn't occur if you run
main.pywithout compiling?– SuperShoot
19 hours ago
@SuperShoot no error occurs when running the script directly
– nullne
18 hours ago
2
Are you sure
--hidden-import prestois correct? Seems like the DB-API driver is provided by PyHive. The packageprestoin pypi seems unrelated.– Ilja Everilä
18 hours ago
@IljaEverilä yes you are right, I tried many different packages as hidden import, but failed, including pyhive
– nullne
16 hours ago
This might also have something to do with how 3rd party dialects are registered using entry points. Perhaps pyinstaller requires some hand holding with that?
– Ilja Everilä
16 hours ago