pymeta icon indicating copy to clipboard operation
pymeta copied to clipboard

Error when running

Open timlaw71 opened this issue 2 years ago • 4 comments

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

timlaw71 avatar Nov 21 '22 15:11 timlaw71

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?

m8sec avatar Nov 22 '22 11:11 m8sec

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

timlaw71 avatar Nov 30 '22 18:11 timlaw71

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.

Anzo52 avatar Dec 06 '22 06:12 Anzo52

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()".

Draoken avatar Feb 23 '23 04:02 Draoken