Skip to content
This repository has been archived by the owner on May 29, 2022. It is now read-only.

Python bindings problems in ubuntu x64 #20

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

Python bindings problems in ubuntu x64 #20

cartoocm opened this issue Sep 29, 2016 · 1 comment

Comments

@cartoocm
Copy link

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
Copy link

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants