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

Error when running #20

Open
timlaw71 opened this issue Nov 21, 2022 · 4 comments
Open

Error when running #20

timlaw71 opened this issue Nov 21, 2022 · 4 comments

Comments

@timlaw71
Copy link

I'm getting this error when trying to run.

└─$ pymeta -h
Traceback (most recent call last):
File "/usr/local/bin/pymeta", line 33, in
sys.exit(load_entry_point('pymetasec==1.2.0', 'console_scripts', 'pymeta')())
File "/usr/local/bin/pymeta", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.10/importlib/metadata/init.py", line 171, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 879, in exec_module
File "", line 1017, in get_code
File "", line 947, in source_to_code
File "", line 241, in _call_with_frames_removed
File "/home/tim/.local/lib/python3.10/site-packages/pymeta/init.py", line 140
def get_agent():
^
IndentationError: unindent does not match any outer indentation level

@m8sec
Copy link
Owner

m8sec commented Nov 22, 2022

Hi @timlaw71,

I have not yet tested PyMeta with Python 3.10 and will absolutely look into this. Does it work with lower versions of the language?

@timlaw71
Copy link
Author

If I run python3 ./pymeta.py if seems to work. I'm on python 3.10.8

@Anzo52
Copy link

Anzo52 commented Dec 6, 2022

I had the same error on Python 3.9, downloaded from pypi. In the package I just went to line 140 in ./env/lib/Python3.9/site-packages/pymeta/init.py and fixed the indent on "def get_agent():" and it worked.

@Draoken
Copy link

Draoken commented Feb 23, 2023

I had the same error on Python 3.9, downloaded from pypi. In the package I just went to line 140 in ./env/lib/Python3.9/site-packages/pymeta/init.py and fixed the indent on "def get_agent():" and it worked.

Would like to add I had the same issue, and same thing fixed it. There is a space or two in front of the line "def get_agent()".

m8sec added a commit that referenced this issue Oct 6, 2023
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

4 participants