jrfiedler / stata-dta-in-python Goto Github PK
View Code? Open in Web Editor NEWUse Stata .dta files in Python
License: MIT License
Use Stata .dta files in Python
License: MIT License
[~/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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.