Discussion:
[Pyublas] pyublas + python3.1
Neal Becker
2010-10-18 23:57:00 UTC
Permalink
OK, tried it.
python3 setup.py build
Downloading
http://pypi.python.org/packages/source/d/distribute/distribute-0.6.14.tar.gz
(oh, look at that!)
...
/home/nbecker/pyublas.python3.git/distribute-0.6.14-py3.1.egg
Traceback (most recent call last):
File "setup.py", line 149, in <module>
main()
File "setup.py", line 130, in main
extra_link_args=conf["LDFLAGS"],
File "/home/nbecker/pyublas.python3.git/aksetup_helper.py", line 56, in
__init__
Extension.__init__(self, *args, **kwargs)
File "build/bdist.linux-x86_64/egg/setuptools/extension.py", line 19, in
__init__
File "/usr/lib64/python3.1/distutils/extension.py", line 114, in __init__
self.include_dirs = include_dirs or []
AttributeError: can't set attribute

OK, I'm lost. Can't set attribute? Why not??

The offending line has this inoffensive code:

self.include_dirs = include_dirs or []
Andreas Kloeckner
2010-10-19 03:25:00 UTC
Permalink
Post by Neal Becker
OK, tried it.
python3 setup.py build
Downloading
http://pypi.python.org/packages/source/d/distribute/distribute-0.6.14.tar.gz
(oh, look at that!)
...
/home/nbecker/pyublas.python3.git/distribute-0.6.14-py3.1.egg
File "setup.py", line 149, in <module>
main()
File "setup.py", line 130, in main
extra_link_args=conf["LDFLAGS"],
File "/home/nbecker/pyublas.python3.git/aksetup_helper.py", line 56, in
__init__
Extension.__init__(self, *args, **kwargs)
File "build/bdist.linux-x86_64/egg/setuptools/extension.py", line 19, in
__init__
File "/usr/lib64/python3.1/distutils/extension.py", line 114, in __init__
self.include_dirs = include_dirs or []
AttributeError: can't set attribute
OK, I'm lost. Can't set attribute? Why not??
self.include_dirs = include_dirs or []
Well, I after being like 'Porthing to Py3? no big deal' earlier, I guess
I should back that up somehow, shouldn't I?

http://git.tiker.net/pyublas.git/commit/4539a472c7759c3cab4e7b70073e3a6289ff5513

Let me know what I broke.

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.tiker.net/pipermail/pyublas/attachments/20101018/6e8d7c87/attachment.pgp>
Neal Becker
2010-10-19 15:36:56 UTC
Permalink
Post by Andreas Kloeckner
Post by Neal Becker
OK, tried it.
python3 setup.py build
Downloading
http://pypi.python.org/packages/source/d/distribute/distribute-0.6.14.tar
.gz (oh, look at that!)
...
/home/nbecker/pyublas.python3.git/distribute-0.6.14-py3.1.egg
File "setup.py", line 149, in <module>
main()
File "setup.py", line 130, in main
extra_link_args=conf["LDFLAGS"],
File "/home/nbecker/pyublas.python3.git/aksetup_helper.py", line 56, in
__init__
Extension.__init__(self, *args, **kwargs)
File "build/bdist.linux-x86_64/egg/setuptools/extension.py", line 19, in
__init__
File "/usr/lib64/python3.1/distutils/extension.py", line 114, in __init__
self.include_dirs = include_dirs or []
AttributeError: can't set attribute
OK, I'm lost. Can't set attribute? Why not??
self.include_dirs = include_dirs or []
Well, I after being like 'Porthing to Py3? no big deal' earlier, I guess
I should back that up somehow, shouldn't I?
http://git.tiker.net/pyublas.git/commit/4539a472c7759c3cab4e7b70073e3a6289f
f5513
Let me know what I broke.
Andreas
Seems to have built/installed OK, but doesn't work:

python3
Python 3.1.2 (r312:79147, Aug 23 2010, 05:16:42)
[GCC 4.4.4 20100630 (Red Hat 4.4.4-10)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Post by Andreas Kloeckner
Post by Neal Becker
import pyublas
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pyublas/__init__.py", line 2, in <module>
import pyublas._internal
ImportError: No module named _internal
Neal Becker
2010-10-19 15:40:02 UTC
Permalink
Post by Andreas Kloeckner
Post by Neal Becker
OK, tried it.
python3 setup.py build
Downloading
http://pypi.python.org/packages/source/d/distribute/distribute-0.6.14.tar
.gz (oh, look at that!)
...
/home/nbecker/pyublas.python3.git/distribute-0.6.14-py3.1.egg
File "setup.py", line 149, in <module>
main()
File "setup.py", line 130, in main
extra_link_args=conf["LDFLAGS"],
File "/home/nbecker/pyublas.python3.git/aksetup_helper.py", line 56, in
__init__
Extension.__init__(self, *args, **kwargs)
File "build/bdist.linux-x86_64/egg/setuptools/extension.py", line 19, in
__init__
File "/usr/lib64/python3.1/distutils/extension.py", line 114, in __init__
self.include_dirs = include_dirs or []
AttributeError: can't set attribute
OK, I'm lost. Can't set attribute? Why not??
self.include_dirs = include_dirs or []
Well, I after being like 'Porthing to Py3? no big deal' earlier, I guess
I should back that up somehow, shouldn't I?
http://git.tiker.net/pyublas.git/commit/4539a472c7759c3cab4e7b70073e3a6289f
f5513
Let me know what I broke.
Andreas
Strange, there it is:

/usr/lib64/python3.1/site-packages/PyUblas-0.93.1-py3.1-linux-
x86_64.egg/pyublas:
total used in directory 4244 available 88391012
drwxr-xr-x 2 root root 4096 Oct 19 11:34 .
drwxr-xr-x 5 root root 4096 Oct 19 11:34 ..
-rwxr-xr-x 1 root root 11577 Oct 19 11:34 __init__.py
-rw-r--r-- 1 root root 14862 Oct 19 11:34 __init__.pyc
-rwxr-xr-x 1 root root 279 Oct 19 11:34 _internal.py
-rw-r--r-- 1 root root 690 Oct 19 11:34 _internal.pyc
-rwxr-xr-x 1 root root 4082009 Oct 19 11:34 _internal.so
-rwxr-xr-x 1 root root 282 Oct 19 11:34 testhelp_ext.py
-rw-r--r-- 1 root root 699 Oct 19 11:34 testhelp_ext.pyc
-rwxr-xr-x 1 root root 207736 Oct 19 11:34 testhelp_ext.so

sys.path
['', '/usr/lib64/python3.1/site-packages/PyUblas-0.93.1-py3.1-linux-
x86_64.egg', '/usr/lib64/python31.zip', '/usr/lib64/python3.1',
'/usr/lib64/python3.1/plat-linux2', '/usr/lib64/python3.1/lib-dynload',
'/usr/lib64/python3.1/site-packages', '/usr/lib/python3.1/site-packages',
'/usr/lib/python3.1/site-packages/setuptools-0.6c11-py3.1.egg-info']
Neal Becker
2010-10-19 15:53:15 UTC
Permalink
Post by Andreas Kloeckner
Post by Neal Becker
OK, tried it.
python3 setup.py build
Downloading
http://pypi.python.org/packages/source/d/distribute/distribute-0.6.14.tar
.gz (oh, look at that!)
...
/home/nbecker/pyublas.python3.git/distribute-0.6.14-py3.1.egg
File "setup.py", line 149, in <module>
main()
File "setup.py", line 130, in main
extra_link_args=conf["LDFLAGS"],
File "/home/nbecker/pyublas.python3.git/aksetup_helper.py", line 56, in
__init__
Extension.__init__(self, *args, **kwargs)
File "build/bdist.linux-x86_64/egg/setuptools/extension.py", line 19, in
__init__
File "/usr/lib64/python3.1/distutils/extension.py", line 114, in __init__
self.include_dirs = include_dirs or []
AttributeError: can't set attribute
OK, I'm lost. Can't set attribute? Why not??
self.include_dirs = include_dirs or []
Well, I after being like 'Porthing to Py3? no big deal' earlier, I guess
I should back that up somehow, shouldn't I?
http://git.tiker.net/pyublas.git/commit/4539a472c7759c3cab4e7b70073e3a6289f
f5513
Let me know what I broke.
Andreas
stat("pyublas", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
stat("pyublas", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
stat("pyublas/_internal", 0x7fff079ba240) = -1 ENOENT (No such file or
directory)
open("pyublas/_internal.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("pyublas/_internalmodule.so", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("pyublas/_internal.py", O_RDONLY) = -1 ENOENT (No such file or directory)
open("pyublas/_internal.pyc", O_RDONLY) = -1 ENOENT (No such file or directory)
open("<string>", O_RDONLY) = -1 ENOENT (No such file or directory)
open("<string>", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib64/python3.1/site-packages/PyUblas-0.93.1-py3.1-linux-
x86_64.egg/<string>", O_RDONLY) = -1 ENOENT (No such file or directory)

Wow, that's weird. <string> ???
Neal Becker
2010-10-19 19:42:29 UTC
Permalink
Post by Andreas Kloeckner
Post by Neal Becker
OK, tried it.
python3 setup.py build
Downloading
http://pypi.python.org/packages/source/d/distribute/distribute-0.6.14.tar
.gz (oh, look at that!)
...
/home/nbecker/pyublas.python3.git/distribute-0.6.14-py3.1.egg
File "setup.py", line 149, in <module>
main()
File "setup.py", line 130, in main
extra_link_args=conf["LDFLAGS"],
File "/home/nbecker/pyublas.python3.git/aksetup_helper.py", line 56, in
__init__
Extension.__init__(self, *args, **kwargs)
File "build/bdist.linux-x86_64/egg/setuptools/extension.py", line 19, in
__init__
File "/usr/lib64/python3.1/distutils/extension.py", line 114, in __init__
self.include_dirs = include_dirs or []
AttributeError: can't set attribute
OK, I'm lost. Can't set attribute? Why not??
self.include_dirs = include_dirs or []
Well, I after being like 'Porthing to Py3? no big deal' earlier, I guess
I should back that up somehow, shouldn't I?
http://git.tiker.net/pyublas.git/commit/4539a472c7759c3cab4e7b70073e3a6289f
f5513
Let me know what I broke.
Andreas
Sorry, I was testing from build directory. Seems like it's working OK so far.
Loading...