Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run without admin privileges #717

Closed
xxjlee opened this issue Jan 25, 2022 · 5 comments
Closed

Run without admin privileges #717

xxjlee opened this issue Jan 25, 2022 · 5 comments

Comments

@xxjlee
Copy link

xxjlee commented Jan 25, 2022

ibmdb 3.1.1, Python 3.7.3, Windows 10.
I need to run the code without admin access, is this possible?
I cannot get it to work unless I start program with admin.
Thanks for any advice.
John

@amukherjee28
Copy link
Member

@xxjlee
Could you please explain a bit on what exactly you need to run without admin.
When you say run the code do you mean running python application using ibm_db driver?
Also please do mention on how the driver was installed. If the installation was done using ADMIN account/privilege then the working is expected to have admin rights for using the binaries.
Thanks

@xxjlee
Copy link
Author

xxjlee commented Jan 25, 2022

Hi,
Yes when I run the python app using ibm_db driver, I need to start cmd window with Run as Administrator. I only have one account on this laptop so all I did is issue pip install ibm_db from normal window (not administrator) I think. I can try to uninstall and then try reinstalling making sure it is not using admin window.
Will try that. Thanks.
John

@xxjlee
Copy link
Author

xxjlee commented Jan 25, 2022

I uninstalled and reinstalled in cmd window with no admin privilege. Cannot run python code unless I start
cmd with Admin. This is going to present problem for us as we cannot run with admin privileges in prod.
pip install ibm_db
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see pypa/pip#5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Defaulting to user installation because normal site-packages is not writeable
Collecting ibm_db
Using cached ibm_db-3.1.1-py3-none-any.whl
Installing collected packages: ibm-db
Successfully installed ibm-db-3.1.1

@amukherjee28
Copy link
Member

@xxjlee

There are few things that we have to check in here.

  1. What is the error you are getting when running from normal command prompt. Can you please put the error you are getting when running normally.
  2. How was the python installed. Pip installation has dependency on the site-packages folders which is part of the python installation. So we need to be sure that the installation happened normally and any user has access to use the site-packages folder. This is purely from the installation point of view in windows operating system.

Can you please check on the above points.

@xxjlee
Copy link
Author

xxjlee commented Jan 26, 2022

Hi,
Issue resolved. There was DB2 connect installed on my laptop. I uninstalled that and it seems to be working now without admin access. Thanks.
John

@xxjlee xxjlee closed this as completed Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants