Cannot import cast_unicode_py2 when i try to run python -m Jupyterdrive - Using Python 3.7
See original GitHub issue▶ python -m jupyterdrive
Traceback (most recent call last):
File "/opt/conda/lib/python3.7/runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/opt/conda/lib/python3.7/runpy.py", line 142, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/opt/conda/lib/python3.7/runpy.py", line 109, in _get_module_details
__import__(pkg_name)
File "/root/jupyter-drive/jupyterdrive/__init__.py", line 18, in <module>
from IPython.utils.py3compat import cast_unicode_py2
ImportError: cannot import name 'cast_unicode_py2' from 'IPython.utils.py3compat' (/opt/conda/lib/python3.7/site-packages/IPython/utils/py3compat.py)
(base)
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
"ImportError: No module named" when trying to run Python script
This issue arises due to the ways in which the command line IPython interpreter uses your current path vs. the way a separate...
Read more >5. The import system — Python 3.11.1 documentation
Python code in one module gains access to the code in another module by the process of importing it. The import statement is...
Read more >Porting Python 2 Code to Python 3 — Python 3.11.1 ...
Use caniusepython3 to find out which of your dependencies are blocking your use of Python 3 ( python -m pip install caniusepython3 )....
Read more >__main__ — Top-level code environment — Python 3.11 ...
In Python, the special name__main__ is used for two important constructs: the name of the top-level environment of the program, which can be...
Read more >1. Command line and environment — Python 3.11.1 ...
When called with -m module-name , the given module is located on the Python module path and executed as a script. In non-interactive...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks wes for looking into the history.
I don’t believe this project is active anymore as google remove the ability to use RT API.
If someone send a pull-request that fix the code, I think we can merge it, but we likely won’t do any more releases.
To avoid user opening issues we should either:
There are also likely more recent JupyterLab plugin to work with google drive.
@westurner I’m not sure what support we have for this project anymore. @Carreau @ian-r-rose may have a better idea.
If it is still active, I agree that we should drop Python 2.