Skip to content

Invalid syntax line 590 - Kali linux rolling #2

@texasconnection88

Description

@texasconnection88

[~/stata-dta-in-python]
└─$ sudo python setup.py install 1 ⨯
running install
running build
running build_py
running install_lib
copying build/lib.linux-x86_64-2.7/stata_dta/init.py -> /usr/local/lib/python2.7/dist-packages/stata_dta
copying build/lib.linux-x86_64-2.7/stata_dta/stata_missing/init.py -> /usr/local/lib/python2.7/dist-packages/stata_dta/stata_missing
copying build/lib.linux-x86_64-2.7/stata_dta/stata_missing/stata_missing.py -> /usr/local/lib/python2.7/dist-packages/stata_dta/stata_missing
copying build/lib.linux-x86_64-2.7/stata_dta/stata_dta.py -> /usr/local/lib/python2.7/dist-packages/stata_dta
copying build/lib.linux-x86_64-2.7/stata_dta/stata_variable.py -> /usr/local/lib/python2.7/dist-packages/stata_dta
byte-compiling /usr/local/lib/python2.7/dist-packages/stata_dta/init.py to init.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/stata_dta/stata_missing/init.py to init.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/stata_dta/stata_missing/stata_missing.py to stata_missing.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/stata_dta/stata_dta.py to stata_dta.pyc
File "/usr/local/lib/python2.7/dist-packages/stata_dta/stata_dta.py", line 590
print(txt, end="")
^
SyntaxError: invalid syntax

byte-compiling /usr/local/lib/python2.7/dist-packages/stata_dta/stata_variable.py to stata_variable.pyc
running install_egg_info
Removing /usr/local/lib/python2.7/dist-packages/stata_dta-0.2.0.egg-info
Writing /usr/local/lib/python2.7/dist-packages/stata_dta-0.2.0.egg-info

Then when running module I get this:

from stata_dta import open_dta, display_diff
Traceback (most recent call last):
File "", line 1, in
File "stata_dta/init.py", line 1, in
from .stata_dta import *
File "stata_dta/stata_dta.py", line 590
print(txt, end="")
^
SyntaxError: invalid syntax
stata_dta("/home/joshua/Videos/VIDEO/recup_dir.1/f47999340.dta")
Traceback (most recent call last):
File "", line 1, in
NameError: name 'stata_dta' is not defined

I could be doing this completely wrong, so forgive me my first time trying to use python. Not to mention no prior training. Ive only been doing this for almost two years in my spare time wth no guidence. Thanks for any help provided and Sorry probably shouldn't even post this issue here. Noob so do I get a pass?? thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions