swimlane / atomic-operator

A Python package is used to execute Atomic Red Team tests (Atomics) across multiple operating system environments.
MIT License
136 stars 25 forks source link

Cannot find __meta__.py #69

Open kampongboy opened 1 year ago

kampongboy commented 1 year ago

Describe the bug I tried installing in CentOS 7 but failed.

Error message as follows: File "setup.py", line 21, in with open(os.path.join(here, 'atomic_operator', 'meta.py'), 'r') as f: FileNotFoundError: [Errno 2] No such file or directory: '/root/atomic-operator/atomic_operator/meta.py'

To Reproduce Steps to reproduce the behavior:

  1. Based on this guide: https://pypi.org/project/atomic-operator/ git clone https://github.com/swimlane/atomic-operator.git cd atomic-operator pip install -r requirements.txt python setup.py install

I used python3 instead of python

Expected behavior "python3 setup.py install" command should be able to complete but it did not I did a search on meta.py . There is no such file

File "setup.py", line 21, in <module>
    with open(os.path.join(here, 'atomic_operator', '__meta__.py'), 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/root/atomic-operator/atomic_operator/__meta__.py'
GabrielSestieri commented 1 year ago

@kampongboy, did you ever get a fix for this? Just ran into the same issue on Windows.

kampongboy commented 1 year ago

Nope, no fix yet

Best Regards, Roger Huang


From: GabrielSestieri @.> Sent: Tuesday, August 8, 2023 11:07:32 PM To: swimlane/atomic-operator @.> Cc: kampongboy @.>; Mention @.> Subject: Re: [swimlane/atomic-operator] Cannot find meta.py (Issue #69)

@kampongboyhttps://github.com/kampongboy, did you ever get a fix for this? Just ran into the same issue on Windows.

— Reply to this email directly, view it on GitHubhttps://github.com/swimlane/atomic-operator/issues/69#issuecomment-1669802448, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AF5MDPOYZHIT7UCNVKSTJ63XUJI3JANCNFSM6AAAAAA2ADKPIQ. You are receiving this because you were mentioned.Message ID: @.***>

GabrielSestieri commented 1 year ago

Hey @kampongboy , so this error appeared for me while installing atomic-operator through the git cloning method. Using the pip installation method seems to be working out so far.

Plensu commented 4 months ago

@kampongboy @GabrielSestieri You have two options to install from source. At least with the current source. The current pypi package is a different version than the repo.

git clone https://github.com/swimlane/atomic-operator.git
cd atomic-operator
pip install .

or

pip install git+https://github.com/swimlane/atomic-operator.git#egg=atomic-operator