question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Carreaucommented, Mar 26, 2020

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:

  1. Archive this repository, and/or
  2. update the readme and issues templates for user to be aware.

There are also likely more recent JupyterLab plugin to work with google drive.

1reaction
willingccommented, Mar 25, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found