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

No module named 'imp' #873

Closed
Enrico68 opened this issue Jul 10, 2024 · 3 comments
Closed

No module named 'imp' #873

Enrico68 opened this issue Jul 10, 2024 · 3 comments

Comments

@Enrico68
Copy link

Hello,

just installed on python 3.12 an the importing of module gave the imp module failed. I cannot downgrade to python 3.11 , is there a workaround this ?

File ~/.virtualenvs/data_analisi/lib/python3.12/site-packages/dtale/__init__.py:29
     26 ENABLE_WEB_UPLOADS = False
     28 # flake8: NOQA
---> 29 from dtale.app import show, get_instance, instances, offline_chart  # isort:skip
     30 from dtale.cli.loaders import LOADERS  # isort:skip
     31 from dtale.cli.clickutils import retrieve_meta_info_and_version

File ~/.virtualenvs/data_analisi/lib/python3.12/site-packages/dtale/app.py:35
     32 from flask_compress import Compress
     33 from six import PY3
---> 35 import dtale.auth as auth
     36 import dtale.global_state as global_state
     37 import dtale.config as dtale_config

File ~/.virtualenvs/data_analisi/lib/python3.12/site-packages/dtale/auth.py:4
      1 from flask import redirect, render_template, request, session, url_for
      2 from functools import wraps
----> 4 import dtale.global_state as global_state
      7 def setup_auth(app):
      8     if not global_state.get_auth_settings()["active"]:

File ~/.virtualenvs/data_analisi/lib/python3.12/site-packages/dtale/global_state.py:7
      4 from logging import getLogger
      5 from six import PY3
----> 7 from dtale.utils import dict_merge, format_data
      9 try:
     10     from collections.abc import MutableMapping

File ~/.virtualenvs/data_analisi/lib/python3.12/site-packages/dtale/utils.py:19
     17 import pandas as pd
     18 from pkg_resources import parse_version
---> 19 from past.utils import old_div
     20 from six import BytesIO, PY3, StringIO
     22 logger = getLogger(__name__)

File ~/.virtualenvs/data_analisi/lib/python3.12/site-packages/past/__init__.py:88
      1 # coding=utf-8
      2 """
      3 past: compatibility with Python 2 from Python 3
      4 ===============================================
   (...)
     84 The software is distributed under an MIT licence. See LICENSE.txt.
     85 """
---> 88 from past.translation import install_hooks as autotranslate
     89 from future import __version__, __copyright__, __license__
     91 __title__ = 'past'

File ~/.virtualenvs/data_analisi/lib/python3.12/site-packages/past/translation/__init__.py:35
      1 # -*- coding: utf-8 -*-
      2 """
      3 past.translation
      4 ==================
   (...)
     32 Inspired by and based on ``uprefix`` by Vinay M. Sajip.
     33 """
---> 35 import imp
     36 import logging
     37 import marshal

ModuleNotFoundError: No module named 'imp'
@aschonfeld
Copy link
Collaborator

Unfortunately D-Tale does not support 3.12 yet. Please use 3.11 for the time being. Will update this thread if anything changes.

@cmillani
Copy link

Hey @aschonfeld

First of all, thanks for the amazing work on DTale!
And happy holidays!

Is there any ETA/roadmap you could share with us about supporting 3.12 - maybe even so that we could contribute!
A project I work on is migrating to 3.12 and we use DTale, we are in the middle of analyzing our dependencies and found this issue.

If there is anything you could share we would be very happy to help!

@Enrico68
Copy link
Author

Just installed today on a fresh env with python3.12.8 . It works fine. For me the problem is closed.

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

3 participants