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

Python bindings problems in ubuntu x64 #20

Closed
cartoocm opened this Issue Sep 29, 2016 · 1 comment

Comments

Projects
None yet
3 participants
@cartoocm

cartoocm commented Sep 29, 2016

Hi. When I tried import in python this error message appears:

`Python 2.7.12 (default, Jul 1 2016, 15:12:24)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import gpstk
Traceback (most recent call last):
File "", line 1, in
File "gpstk.py", line 24751, in
def now(timeSystem=TimeSystem('UTC')):
File "gpstk.py", line 9127, in init
self.this.append(this)
File "gpstk.py", line 9038, in
getattr = lambda self, name: _swig_getattr(self, TimeSystem, name)
File "gpstk.py", line 74, in _swig_getattr
return _swig_getattr_nondynamic(self, class_type, name, 0)
File "gpstk.py", line 69, in _swig_getattr_nondynamic
return object.getattr(self, name)
AttributeError: type object 'object' has no attribute 'getattr'
exit()
`
Ubuntu x64
Python 2.7.12

And make with flags

./build.sh -i "%HOME/progs/gpstk" -cdeTp -P "/usr/bin/python2.7"

Thanks

@ncouro

This comment has been minimized.

Show comment
Hide comment
@ncouro

ncouro Oct 14, 2016

It's a bug in the version of SWIG shipped with Ubuntu 16.04, see my answer to #21 for the solution.

ncouro commented Oct 14, 2016

It's a bug in the version of SWIG shipped with Ubuntu 16.04, see my answer to #21 for the solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment