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

[Bug] Install dependency using make #4149

Closed
programskillforverification opened this issue Oct 11, 2024 · 2 comments
Closed

[Bug] Install dependency using make #4149

programskillforverification opened this issue Oct 11, 2024 · 2 comments
Assignees
Labels
bug Something isn't working community Team: TRADE

Comments

@programskillforverification

Describe the Bug

os: macOS Sequoia
python: 3.12.7
setuptools: 75.1.0

Running make, in the last step, RELEASE

Successfully installed detection_rules-0.1.0
RELEASE: 
./env/detection-rules-build/bin/python -m detection_rules dev build-release --generate-navigator
Traceback (most recent call last):
  File "<frozen runpy>", line 189, in _run_module_as_main
  File "<frozen runpy>", line 148, in _get_module_details
  File "<frozen runpy>", line 112, in _get_module_details
  File "/Users/josephzhao/Dev/cyber-security/detection-rules/detection_rules/__init__.py", line 13, in <module>
    from . import (  # noqa: E402
  File "/Users/josephzhao/Dev/cyber-security/detection-rules/detection_rules/custom_rules.py", line 12, in <module>
    from .main import root
  File "/Users/josephzhao/Dev/cyber-security/detection-rules/detection_rules/main.py", line 22, in <module>
    from .action_connector import (TOMLActionConnectorContents,
  File "/Users/josephzhao/Dev/cyber-security/detection-rules/detection_rules/action_connector.py", line 15, in <module>
    from .mixins import MarshmallowDataclassMixin
  File "/Users/josephzhao/Dev/cyber-security/detection-rules/detection_rules/mixins.py", line 15, in <module>
    import marshmallow_jsonschema
  File "/Users/josephzhao/Dev/cyber-security/detection-rules/env/detection-rules-build/lib/python3.12/site-packages/marshmallow_jsonschema/__init__.py", line 1, in <module>
    from pkg_resources import get_distribution
ModuleNotFoundError: No module named 'pkg_resources'
make: *** [release] Error 1

To Reproduce

  1. Navigate to the latest version of detection-rules directory
  2. Run make

Expected Behavior

No response

Screenshots

No response

Desktop - OS

macOS

Desktop - Version

No response

Additional Context

I think this is maybe due to python version or setuptools version.
When I run

python -c "import pkg_resources"

It shows

<string>:1: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
@Mikaayenson
Copy link
Contributor

Related to #4083

@shashank-elastic
Copy link
Contributor

Fixed via PR #4160

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

No branches or pull requests

3 participants