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

Does not work with Python 3.8 #10

Open
evrenesat opened this issue Mar 17, 2022 · 0 comments
Open

Does not work with Python 3.8 #10

evrenesat opened this issue Mar 17, 2022 · 0 comments

Comments

@evrenesat
Copy link

I couldn't see any statement about supported Python versions. Tried with 3.8 but importing trace was enough to break it due to deprecated imp module:

   from pycrunch_trace.client.api import trace
        Forbidden  = <class 'werkzeug.exceptions.Forbidden'>
        Iterable   = typing.Iterable
        Objects    = <class 'eiqbeta.platform.api.data.Objects'>
        Optional   = typing.Optional
        Role       = <class 'eiq.platform.users._models.Role'>
        Set        = typing.Set
        User       = <class 'eiq.platform.users._models.User'>
        UserGroup  = <class 'eiq.platform.users._models.UserGroup'>
        __builtins__ = <builtins>
        __cached__ = '/home/evren/eiq/platform-api/eiqbeta/platform/api/data/__pycache__/users.cpython-38.pyc'
        __doc__    = None
        __file__   = '/home/evren/eiq/platform-api/eiqbeta/platform/api/data/users.py'
        __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x7ff873f142b0>
        __name__   = 'eiqbeta.platform.api.data.users'
        __package__ = 'eiqbeta.platform.api.data'
        __spec__   = ModuleSpec(name='eiqbeta.platform.api.data.users', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7ff873f142b0>, origin='/home/evren/eiq/platform-api/eiqbeta/platform/api/data/users.py')
        current_user = None
        db         = <CustomSQLAlchemy engine=None>
        refresh_relations = <function refresh_relations at 0x7ff874014d30>
        set_mfa_activated_expression = <function set_mfa_activated_expression at 0x7ff87a04f280>
../../../.pyenv/versions/eiq/lib/python3.8/site-packages/pycrunch_trace/client/api/__init__.py:1: in <module>
    from .trace_decorator import trace
        __builtins__ = <builtins>
        __cached__ = '/home/evren/.pyenv/versions/eiq/lib/python3.8/site-packages/pycrunch_trace/client/api/__pycache__/__init__.cpython-38.pyc'
        __doc__    = None
        __file__   = '/home/evren/.pyenv/versions/eiq/lib/python3.8/site-packages/pycrunch_trace/client/api/__init__.py'
        __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x7ff873f14fa0>
        __name__   = 'pycrunch_trace.client.api'
        __package__ = 'pycrunch_trace.client.api'
        __path__   = ['/home/evren/.pyenv/versions/eiq/lib/python3.8/site-packages/pycrunch_trace/client/api']
        __spec__   = ModuleSpec(name='pycrunch_trace.client.api', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7ff873f14fa0>, origin='/home/evren/.pyenv/versions/eiq/lib/python3.8/site-packages/pycrunch_trace/client/api/__init__.py', submodule_search_locations=['/home/evren/.pyenv/versions/eiq/lib/python3.8/site-packages/pycrunch_trace/client/api'])
../../../.pyenv/versions/eiq/lib/python3.8/site-packages/pycrunch_trace/client/api/trace_decorator.py:2: in <module>
    from pycrunch_trace.client.api.trace import Trace
        __builtins__ = <builtins>
        __cached__ = '/home/evren/.pyenv/versions/eiq/lib/python3.8/site-packages/pycrunch_trace/client/api/__pycache__/trace_decorator.cpython-38.pyc'
        __doc__    = None
        __file__   = '/home/evren/.pyenv/versions/eiq/lib/python3.8/site-packages/pycrunch_trace/client/api/trace_decorator.py'
        __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x7ff873f1f1f0>
        __name__   = 'pycrunch_trace.client.api.trace_decorator'
        __package__ = 'pycrunch_trace.client.api'
        __spec__   = ModuleSpec(name='pycrunch_trace.client.api.trace_decorator', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7ff873f1f1f0>, origin='/home/evren/.pyenv/versions/eiq/lib/python3.8/site-packages/pycrunch_trace/client/api/trace_decorator.py')
        wraps      = <function wraps at 0x7ff8823c1ca0>
../../../.pyenv/versions/eiq/lib/python3.8/site-packages/pycrunch_trace/client/api/trace.py:8: in <module>
    from pycrunch_trace.client.networking import event_queue
        ArrayCommandBuffer = <class 'pycrunch_trace.client.command_buffer.ArrayCommandBuffer'>
        List       = typing.List
        Path       = <class 'pathlib.Path'>
        __builtins__ = <builtins>
        __cached__ = '/home/evren/.pyenv/versions/eiq/lib/python3.8/site-packages/pycrunch_trace/client/api/__pycache__/trace.cpython-38.pyc'
        __doc__    = None
        __file__   = '/home/evren/.pyenv/versions/eiq/lib/python3.8/site-packages/pycrunch_trace/client/api/trace.py'
        __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x7ff873f1f490>
        __name__   = 'pycrunch_trace.client.api.trace'
        __package__ = 'pycrunch_trace.client.api'
        __spec__   = ModuleSpec(name='pycrunch_trace.client.api.trace', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7ff873f1f490>, origin='/home/evren/.pyenv/versions/eiq/lib/python3.8/site-packages/pycrunch_trace/client/api/trace.py')
        datetime   = <module 'datetime' from '/home/evren/.pyenv/versions/3.8.12/lib/python3.8/datetime.py'>
        sys        = <module 'sys' (built-in)>
        uuid       = <module 'uuid' from '/home/evren/.pyenv/versions/3.8.12/lib/python3.8/uuid.py'>
../../../.pyenv/versions/eiq/lib/python3.8/site-packages/pycrunch_trace/client/networking/__init__.py:1: in <module>
    from .ClientOutgoingQueueThread import event_queue
        __builtins__ = <builtins>
        __cached__ = '/home/evren/.pyenv/versions/eiq/lib/python3.8/site-packages/pycrunch_trace/client/networking/__pycache__/__init__.cpython-38.pyc'
        __doc__    = None
        __file__   = '/home/evren/.pyenv/versions/eiq/lib/python3.8/site-packages/pycrunch_trace/client/networking/__init__.py'
        __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x7ff873f1fa90>
        __name__   = 'pycrunch_trace.client.networking'
        __package__ = 'pycrunch_trace.client.networking'
        __path__   = ['/home/evren/.pyenv/versions/eiq/lib/python3.8/site-packages/pycrunch_trace/client/networking']
        __spec__   = ModuleSpec(name='pycrunch_trace.client.networking', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7ff873f1fa90>, origin='/home/evren/.pyenv/versions/eiq/lib/python3.8/site-packages/pycrunch_trace/client/networking/__init__.py', submodule_search_locations=['/home/evren/.pyenv/versions/eiq/lib/python3.8/site-packages/pycrunch_trace/client/networking'])
        commands   = <module 'pycrunch_trace.client.networking.commands' from '/home/evren/.pyenv/versions/eiq/lib/python3.8/site-packages/pycrunch_trace/client/networking/commands.py'>
../../../.pyenv/versions/eiq/lib/python3.8/site-packages/pycrunch_trace/client/networking/ClientOutgoingQueueThread.py:7: in <module>
    import pyximport
        AbstractNetworkCommand = <class 'pycrunch_trace.client.networking.commands.AbstractNetworkCommand'>
        Empty      = <class '_queue.Empty'>
        EventsSlice = <class 'pycrunch_trace.client.networking.commands.EventsSlice'>
        FileContentSlice = <class 'pycrunch_trace.client.networking.commands.FileContentSlice'>
        Queue      = <class 'queue.Queue'>
        StartCommand = <class 'pycrunch_trace.client.networking.commands.StartCommand'>
        StopCommand = <class 'pycrunch_trace.client.networking.commands.StopCommand'>
        __annotations__ = {}
        __builtins__ = <builtins>
        __cached__ = '/home/evren/.pyenv/versions/eiq/lib/python3.8/site-packages/pycrunch_trace/client/networking/__pycache__/ClientOutgoingQueueThread.cpython-38.pyc'
        __doc__    = None
        __file__   = '/home/evren/.pyenv/versions/eiq/lib/python3.8/site-packages/pycrunch_trace/client/networking/ClientOutgoingQueueThread.py'
        __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x7ff873f1ff40>
        __name__   = 'pycrunch_trace.client.networking.ClientOutgoingQueueThread'
        __package__ = 'pycrunch_trace.client.networking'
        __spec__   = ModuleSpec(name='pycrunch_trace.client.networking.ClientOutgoingQueueThread', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7ff873f1ff40>, origin='/home/evren/.pyenv/versions/eiq/lib/python3.8/site-packages/pycrunch_trace/client/networking/ClientOutgoingQueueThread.py')
        sys        = <module 'sys' (built-in)>
        threading  = <module 'threading' from '/home/evren/.pyenv/versions/3.8.12/lib/python3.8/threading.py'>
../../../.pyenv/versions/eiq/lib/python3.8/site-packages/pyximport/__init__.py:1: in <module>
    from .pyximport import *
        __builtins__ = <builtins>
        __cached__ = '/home/evren/.pyenv/versions/eiq/lib/python3.8/site-packages/pyximport/__pycache__/__init__.cpython-38.pyc'
        __doc__    = None
        __file__   = '/home/evren/.pyenv/versions/eiq/lib/python3.8/site-packages/pyximport/__init__.py'
        __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x7ff873eaa4f0>
        __name__   = 'pyximport'
        __package__ = 'pyximport'
        __path__   = ['/home/evren/.pyenv/versions/eiq/lib/python3.8/site-packages/pyximport']
        __spec__   = ModuleSpec(name='pyximport', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7ff873eaa4f0>, origin='/home/evren/.pyenv/versions/eiq/lib/python3.8/site-packages/pyximport/__init__.py', submodule_search_locations=['/home/evren/.pyenv/versions/eiq/lib/python3.8/site-packages/pyximport'])
../../../.pyenv/versions/eiq/lib/python3.8/site-packages/pyximport/pyximport.py:51: in <module>
    import imp
        __builtins__ = <builtins>
        __cached__ = '/home/evren/.pyenv/versions/eiq/lib/python3.8/site-packages/pyximport/__pycache__/pyximport.cpython-38.pyc'
        __doc__    = ('\n'
 'Import hooks; when installed with the install() function, these hooks\n'
 'allow importing .pyx files as if they were Python modules.\n'
 '\n'
 'If you want the hook installed every time you run Python\n'
 'you can add it to your Python version by adding these lines to\n'
 'sitecustomize.py (which you can create from scratch in site-packages\n'
 "if it doesn't exist there or somewhere else on your python path)::\n"
 '\n'
 '    import pyximport\n'
 '    pyximport.install()\n'
 '\n'
 'For instance on the Mac with a non-system Python 2.3, you could create\n'
 'sitecustomize.py with only those two lines at\n'
 '/usr/local/lib/python2.3/site-packages/sitecustomize.py .\n'
 '\n'
 'A custom distutils.core.Extension instance and setup() args\n'
 '(Distribution) for for the build can be defined by a <modulename>.pyxbld\n'
 'file like:\n'
 '\n'
 '# examplemod.pyxbld\n'
 'def make_ext(modname, pyxfilename):\n'
 '    from distutils.extension import Extension\n'
 '    return Extension(name = modname,\n'
 "                     sources=[pyxfilename, 'hello.c'],\n"
 "                     include_dirs=['/myinclude'] )\n"
 'def make_setup_args():\n'
 '    return dict(script_args=["--compiler=mingw32"])\n'
 '\n'
 'Extra dependencies can be defined by a <modulename>.pyxdep .\n'
 'See README.\n'
 '\n'
 'Since Cython 0.11, the :mod:`pyximport` module also has experimental\n'
 'compilation support for normal Python modules.  This allows you to\n'
 'automatically run Cython on every .pyx and .py module that Python\n'
 'imports, including parts of the standard library and installed\n'
 'packages.  Cython will still fail to compile a lot of Python modules,\n'
 'in which case the import mechanism will fall back to loading the\n'
 'Python source modules instead.  The .py import mechanism is installed\n'
 'like this::\n'
 '\n'
 '    pyximport.install(pyimport = True)\n'
 '\n'
 'Running this module as a top-level script will run a test and then print\n'
 'the documentation.\n'
 '\n'
 'This code is based on the Py2.3+ import protocol as described in PEP 302.\n')
        __file__   = '/home/evren/.pyenv/versions/eiq/lib/python3.8/site-packages/pyximport/pyximport.py'
        __loader__ = <_frozen_importlib_external.SourceFileLoader object at 0x7ff873eaa760>
        __name__   = 'pyximport.pyximport'
        __package__ = 'pyximport'
        __spec__   = ModuleSpec(name='pyximport.pyximport', loader=<_frozen_importlib_external.SourceFileLoader object at 0x7ff873eaa760>, origin='/home/evren/.pyenv/versions/eiq/lib/python3.8/site-packages/pyximport/pyximport.py')
        __warningregistry__ = {'version': 972}
        glob       = <module 'glob' from '/home/evren/.pyenv/versions/3.8.12/lib/python3.8/glob.py'>
../../../.pyenv/versions/3.8.12/lib/python3.8/imp.py:31: in <module>
    warnings.warn("the imp module is deprecated in favour of importlib; "
E   DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
        SourcelessFileLoader = <class '_frozen_importlib_external.SourcelessFileLoader'>
        _ERR_MSG   = 'No module named {!r}'
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

1 participant