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

appmap seems to interfere with installation of scikit-learn #311

Closed
kgilpin opened this issue May 23, 2024 · 1 comment
Closed

appmap seems to interfere with installation of scikit-learn #311

kgilpin opened this issue May 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@kgilpin
Copy link
Contributor

kgilpin commented May 23, 2024

(sckit-learn) (base) ➜  scikit-learn git:(main) ✗ pip install -e .
Obtaining file:///Users/kgilpin/source/land-of-apps/scikit-learn
  Installing build dependencies ... error
  error: subprocess-exited-with-error
  
  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [20 lines of output]
      Traceback (most recent call last):
        File "<frozen runpy>", line 131, in _get_module_details
        File "<frozen importlib.util>", line 100, in find_spec
        File "<frozen importlib._bootstrap>", line 1262, in _find_spec
        File "/Users/kgilpin/source/land-of-apps/scikit-learn/sckit-learn/lib/python3.12/site-packages/_appmap/wrapt/wrappers.py", line 622, in __call__
          return self._self_wrapper(self.__wrapped__, self._self_instance,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/Users/kgilpin/source/land-of-apps/scikit-learn/sckit-learn/lib/python3.12/site-packages/_appmap/importer.py", line 249, in wrapped_find_spec
          spec = find_spec(*args, **kwargs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
      TypeError: 'classmethod' object is not callable
      
      The above exception was the direct cause of the following exception:
      
      Traceback (most recent call last):
        File "/Users/kgilpin/source/land-of-apps/scikit-learn/sckit-learn/lib/python3.12/site-packages/pip/__pip-runner__.py", line 50, in <module>
          runpy.run_module("pip", run_name="__main__", alter_sys=True)
        File "<frozen runpy>", line 222, in run_module
        File "<frozen runpy>", line 140, in _get_module_details
      ImportError: Error while finding module specification for 'pip' (TypeError: 'classmethod' object is not callable)
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

With appmap uninstalled from pip, I do not get this error.

@kgilpin kgilpin added the bug Something isn't working label May 23, 2024
@apotterri
Copy link
Collaborator

This is resolved by disabling recording by default (i.e. by v2).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants