Jul-01-2021, 01:29 PM
Is it possible to get another help with this script https://github.com/ypomortsev/ccss2edr?
How to run it after installing default python environment
I’ve tried to run it in cmd when I’m in C:\ccss2edr-master\ccss2edr folder by: python ccss2edr.py but then get error:
Then I installed Python 2.7.9 and execute: "python setup.py install". After that run "python ccss2edr.py -h" and the same as errors as above:
Can someone help me? I’m fighting with it third day and no success. I don't know why it’s so hard to execute it?
How to run it after installing default python environment
I’ve tried to run it in cmd when I’m in C:\ccss2edr-master\ccss2edr folder by: python ccss2edr.py but then get error:
Error:Traceback (most recent call last):
File "C:\ccss2edr\ccss2edr\ccss2edr.py", line 7, in <module>
from .cgats import CGATS
ImportError: attempted relative import with no known parent package
If I try to remove dots before cgatds and edr to loook like this:from .cgats import CGATS -> from cgats import CGATS from .edr import ( -> from edr import (then got error:
Error:Traceback (most recent call last):
File "C:\ccss2edr\ccss2edr\ccss2edr.py", line 8, in <module>
from edr import (
File "C:\ccss2edr\ccss2edr\edr.py", line 3, in <module>
from record import recordtype
File "C:\ccss2edr\ccss2edr\record.py", line 130
exec template in namespace
^
SyntaxError: Missing parentheses in call to 'exec'
If tried to modify it further with couple of next errors from:try: exec template in namespace if verbose: print template except SyntaxError, e:to:
try: exec (template, namespace) if verbose: print (template) except SyntaxError as e:but got next error
Error:Traceback (most recent call last):
File "C:\ccss2edr\ccss2edr\ccss2edr.py", line 8, in <module>
from edr import (
File "C:\ccss2edr\ccss2edr\edr.py", line 3, in <module>
from record import recordtype
File "C:\ccss2edr\ccss2edr\record.py", line 147
print TestResults(*doctest.testmod())
^
SyntaxError: invalid syntax
I’ve tried to run it in another way in cmd when I’m in C:\ccss2edr-master\ by: python –m ccss2edr\ccss2edr but got another error:Error:Traceback (most recent call last):
File "C:\Program Files\Python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\Python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\ccss2edr\ccss2edr\ccss2edr.py", line 8, in <module>
from .edr import (
File "C:\ccss2edr\ccss2edr\edr.py", line 3, in <module>
from record import recordtype
ModuleNotFoundError: No module named 'record'
I’ve tried another method too. I found Python 2.0.1 and installed on Clean Windows 7. No chances to install ccss2edr script. After execute in cmd: "python setup.py" I've got error: "error in setup script: invalid distribution option 'entry_points'" Then I installed Python 2.7.9 and execute: "python setup.py install". After that run "python ccss2edr.py -h" and the same as errors as above:
Error:Traceback (most recent call last):
File "ccss2edr.py", line 7, in <module>
from .cgats import CGATS
ValueError: Attempted relative import in non-package
I’ve tried it on Ubuntu machine with Python2 too but got the same errors :(Can someone help me? I’m fighting with it third day and no success. I don't know why it’s so hard to execute it?