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
smart_open Version 1.8.1 Incompatibilities #80
Comments
Well that's annoying. But thanks for pointing out! |
I confirm the warning, which is ugly. python3.6/site-packages/smart_open/ssh.py:34: UserWarning: paramiko missing, opening SSH/SCP/SFTP paths will be disabled. `pip install paramiko` to suppress
warnings.warn('paramiko missing, opening SSH/SCP/SFTP paths will be disabled. `pip install paramiko` to suppress') Since This will keep the sample-sheet library slimmer by default, and for default use cases (reading the files from disk). |
Hi @BennettRand, I just released version 0.9.0 of this library and have dropped The library still supports opening any kind of objects using the Like: ❯ pip install sample_sheet>=0.9.0 smart_open Or: ❯ pip install 'sample_sheet[smart_open]' |
Is >>> import sys; print(sys.version)
3.7.3 (default, Mar 27 2019, 22:11:17)
[GCC 7.3.0]
>>> import sample_sheet
Traceback (most recent call last):
File "/home/mpanciera/nova/novaseq-sync/miniconda/lib/python3.7/site-packages/sample_sheet/__init__.py", line 29, in <module>
from smart_open import open # Migration for smart_open 1.8.1 # type: ignore
ModuleNotFoundError: No module named 'smart_open'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/mpanciera/nova/novaseq-sync/miniconda/lib/python3.7/site-packages/sample_sheet/__init__.py", line 31, in <module>
from smart_open import smart_open as open # type: ignore
ModuleNotFoundError: No module named 'smart_open'
>>>
[mpanciera@node22 novaseq-sync]$ pip freeze | grep sample
sample-sheet==0.9.2 |
Welp. I can fix. Thanks @averagehat |
@averagehat thanks for reporting. I had introduced a bug in I just released |
The
smart_open.smart_open
function has been deprecated in version 1.8.1 of thesmart_open
library in favor ofsmart_open.open
.This throws a warning in the console whenever a sample sheet is opened.
piskvorky/smart_open#268
Version 1.8.1 also added SSH/SCP/SFTP support which throws a warning if paramiko is not installed.
piskvorky/smart_open#267
This could be solved by adding a paramiko requirement and changing
smart_open
calls or setting the version ofsmart_open
to 1.8.0 in the setup file.The text was updated successfully, but these errors were encountered: