-
Notifications
You must be signed in to change notification settings - Fork 178
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
bug: installing packages from PyPi is broken upon upgrading from v7.1.0 to v7.2.2 #15110
Comments
Experiencing this as well on an OT-3 at v7.3.1. Presumably a breakage caused on the OT-2 by Opentrons/buildroot@4d580d8 / Opentrons/buildroot#231 but I don't really understand the mechanism and I know the OT-3 is pulling from eg Opentrons/oe-core@9eef29d . Anyway you can set PYTHONPATH to make this work-ish. Opentrons should still fix this.
|
Better solution: run the venv's pip with The breakage on Flex is caused by https://github.com/Opentrons/oe-core/blob/2ad1ac910d393c84b7f363ae3cca23786d290935/layers/meta-opentrons/recipes-devtools/python3-pip/files/pip.conf#L1 |
oh wow, this seems to work. Thank you! I don't understand the purpose of this pip config file :/ how is this supposed to work? it has also broke the venv mechanism. |
@vegano1 any thoughts on this? My guess is that OT doesn't run the Jupyter notebook inside of a venv, so if the user does Personally I think a better way to support One reason my approach, using venvs, is a better solution for Jupyter is because with venvs you can install the latest version of Pandas. Whereas in the current approach, even with this |
Overview
After updating our OT-2 robot's software from v7.1.0 to v7.2.2, installing a Python package (from outside Python's standard library) using
pip
doesn't work. The installed packages do exist in Python's site-packages directory, yet importing them inside the Python interpreter results aModule Not Found
error.Please note that this problem goes away when downgrading the software to v7.1.0.
Steps to reproduce
Note: the following problem can be reproduced by installing any PyPi package. The packages are installed following this Opentrons tutorial.
After completing the initial SSH-setup:
Current behavior
Doing, for example, this:
outputs:
Module Not Found Error
or simply attempting to uninstall the same package, with no further steps in between (as shown in the screenshot below):
outputs:
WARNING: Skipping openpyxl as it is not installed
.We have tried to install packages from PyPi into Python virtual environemts (venv), but the problem persists.
Problem Screenshot
The installed packages do exist in Python's system directory
Navigating to Python's site-packages directory, after package installation, shows that the packages exist within the Python directory. Doing in the robots terminal, for example:
outputs:
/usr/bin/python3
Now navigating to
/usr/bin/python3/.../site-packages
shows that the installed package (and its submodules) exists, as shown in these screenshots:Expected behavior
Before upgrading the software, which we had to do because of other problem, we used to install our Python packages from within our Jupyter notebooks by doing:
then import
openpyxl
in next cells with no issues. Now, doing the same resultsModule Not Found
errorsOperating system
Windows
System and robot setup or anything else?
PYTHONPATH
environment variable seems to be empty. We were not able to set it otherwiseThe text was updated successfully, but these errors were encountered: