Issue #13 wontfix

Doesn't install against Python3+

dalgibbard
created an issue

Hi all, Just a heads up that CodernityDB doesn't install with python-setuptools3:

$ sudo python3 setup.py install
running install
Checking .pth file support in /usr/local/lib/python3.2/dist-packages/
/usr/bin/python3 -E -c pass
TEST PASSED: /usr/local/lib/python3.2/dist-packages/ appears to support .pth files
running bdist_egg
running egg_info
creating CodernityDB.egg-info
writing CodernityDB.egg-info/PKG-INFO
writing top-level names to CodernityDB.egg-info/top_level.txt
writing dependency_links to CodernityDB.egg-info/dependency_links.txt
writing manifest file 'CodernityDB.egg-info/SOURCES.txt'
reading manifest file 'CodernityDB.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs'
writing manifest file 'CodernityDB.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/CodernityDB
copying CodernityDB/migrate.py -> build/lib/CodernityDB
copying CodernityDB/storage.py -> build/lib/CodernityDB
copying CodernityDB/index.py -> build/lib/CodernityDB
copying CodernityDB/database_super_thread_safe.py -> build/lib/CodernityDB
copying CodernityDB/database_safe_shared.py -> build/lib/CodernityDB
copying CodernityDB/lfu_cache.py -> build/lib/CodernityDB
copying CodernityDB/sharded_hash.py -> build/lib/CodernityDB
copying CodernityDB/rr_cache.py -> build/lib/CodernityDB
copying CodernityDB/env.py -> build/lib/CodernityDB
copying CodernityDB/database.py -> build/lib/CodernityDB
copying CodernityDB/patch.py -> build/lib/CodernityDB
copying CodernityDB/debug_stuff.py -> build/lib/CodernityDB
copying CodernityDB/tree_index.py -> build/lib/CodernityDB
copying CodernityDB/rr_cache_with_lock.py -> build/lib/CodernityDB
copying CodernityDB/lfu_cache_with_lock.py -> build/lib/CodernityDB
copying CodernityDB/misc.py -> build/lib/CodernityDB
copying CodernityDB/sharded_index.py -> build/lib/CodernityDB
copying CodernityDB/hash_index.py -> build/lib/CodernityDB
copying CodernityDB/database_gevent.py -> build/lib/CodernityDB
copying CodernityDB/__init__.py -> build/lib/CodernityDB
copying CodernityDB/indexcreator.py -> build/lib/CodernityDB
copying CodernityDB/database_thread_safe.py -> build/lib/CodernityDB
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/CodernityDB
copying build/lib/CodernityDB/migrate.py -> build/bdist.linux-x86_64/egg/CodernityDB
copying build/lib/CodernityDB/storage.py -> build/bdist.linux-x86_64/egg/CodernityDB
copying build/lib/CodernityDB/index.py -> build/bdist.linux-x86_64/egg/CodernityDB
copying build/lib/CodernityDB/database_super_thread_safe.py -> build/bdist.linux-x86_64/egg/CodernityDB
copying build/lib/CodernityDB/database_safe_shared.py -> build/bdist.linux-x86_64/egg/CodernityDB
copying build/lib/CodernityDB/lfu_cache.py -> build/bdist.linux-x86_64/egg/CodernityDB
copying build/lib/CodernityDB/sharded_hash.py -> build/bdist.linux-x86_64/egg/CodernityDB
copying build/lib/CodernityDB/rr_cache.py -> build/bdist.linux-x86_64/egg/CodernityDB
copying build/lib/CodernityDB/env.py -> build/bdist.linux-x86_64/egg/CodernityDB
copying build/lib/CodernityDB/database.py -> build/bdist.linux-x86_64/egg/CodernityDB
copying build/lib/CodernityDB/patch.py -> build/bdist.linux-x86_64/egg/CodernityDB
copying build/lib/CodernityDB/debug_stuff.py -> build/bdist.linux-x86_64/egg/CodernityDB
copying build/lib/CodernityDB/tree_index.py -> build/bdist.linux-x86_64/egg/CodernityDB
copying build/lib/CodernityDB/rr_cache_with_lock.py -> build/bdist.linux-x86_64/egg/CodernityDB
copying build/lib/CodernityDB/lfu_cache_with_lock.py -> build/bdist.linux-x86_64/egg/CodernityDB
copying build/lib/CodernityDB/misc.py -> build/bdist.linux-x86_64/egg/CodernityDB
copying build/lib/CodernityDB/sharded_index.py -> build/bdist.linux-x86_64/egg/CodernityDB
copying build/lib/CodernityDB/hash_index.py -> build/bdist.linux-x86_64/egg/CodernityDB
copying build/lib/CodernityDB/database_gevent.py -> build/bdist.linux-x86_64/egg/CodernityDB
copying build/lib/CodernityDB/__init__.py -> build/bdist.linux-x86_64/egg/CodernityDB
copying build/lib/CodernityDB/indexcreator.py -> build/bdist.linux-x86_64/egg/CodernityDB
copying build/lib/CodernityDB/database_thread_safe.py -> build/bdist.linux-x86_64/egg/CodernityDB
byte-compiling build/bdist.linux-x86_64/egg/CodernityDB/migrate.py to migrate.cpython-32.pyc
byte-compiling build/bdist.linux-x86_64/egg/CodernityDB/storage.py to storage.cpython-32.pyc
byte-compiling build/bdist.linux-x86_64/egg/CodernityDB/index.py to index.cpython-32.pyc
byte-compiling build/bdist.linux-x86_64/egg/CodernityDB/database_super_thread_safe.py to database_super_thread_safe.cpython-32.pyc
byte-compiling build/bdist.linux-x86_64/egg/CodernityDB/database_safe_shared.py to database_safe_shared.cpython-32.pyc
byte-compiling build/bdist.linux-x86_64/egg/CodernityDB/lfu_cache.py to lfu_cache.cpython-32.pyc
byte-compiling build/bdist.linux-x86_64/egg/CodernityDB/sharded_hash.py to sharded_hash.cpython-32.pyc
byte-compiling build/bdist.linux-x86_64/egg/CodernityDB/rr_cache.py to rr_cache.cpython-32.pyc
byte-compiling build/bdist.linux-x86_64/egg/CodernityDB/env.py to env.cpython-32.pyc
byte-compiling build/bdist.linux-x86_64/egg/CodernityDB/database.py to database.cpython-32.pyc
  File "build/bdist.linux-x86_64/egg/CodernityDB/database.py", line 202
    exec obj in globals()
           ^
SyntaxError: invalid syntax

byte-compiling build/bdist.linux-x86_64/egg/CodernityDB/patch.py to patch.cpython-32.pyc
byte-compiling build/bdist.linux-x86_64/egg/CodernityDB/debug_stuff.py to debug_stuff.cpython-32.pyc
  File "build/bdist.linux-x86_64/egg/CodernityDB/debug_stuff.py", line 33
    print '-----CURRENT TREE-----'
                                 ^
SyntaxError: invalid syntax

byte-compiling build/bdist.linux-x86_64/egg/CodernityDB/tree_index.py to tree_index.cpython-32.pyc
byte-compiling build/bdist.linux-x86_64/egg/CodernityDB/rr_cache_with_lock.py to rr_cache_with_lock.cpython-32.pyc
byte-compiling build/bdist.linux-x86_64/egg/CodernityDB/lfu_cache_with_lock.py to lfu_cache_with_lock.cpython-32.pyc
byte-compiling build/bdist.linux-x86_64/egg/CodernityDB/misc.py to misc.cpython-32.pyc
byte-compiling build/bdist.linux-x86_64/egg/CodernityDB/sharded_index.py to sharded_index.cpython-32.pyc
byte-compiling build/bdist.linux-x86_64/egg/CodernityDB/hash_index.py to hash_index.cpython-32.pyc
byte-compiling build/bdist.linux-x86_64/egg/CodernityDB/database_gevent.py to database_gevent.cpython-32.pyc
byte-compiling build/bdist.linux-x86_64/egg/CodernityDB/__init__.py to __init__.cpython-32.pyc
byte-compiling build/bdist.linux-x86_64/egg/CodernityDB/indexcreator.py to indexcreator.cpython-32.pyc
byte-compiling build/bdist.linux-x86_64/egg/CodernityDB/database_thread_safe.py to database_thread_safe.cpython-32.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying CodernityDB.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying CodernityDB.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying CodernityDB.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying CodernityDB.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/CodernityDB-0.4.2-py3.2.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing CodernityDB-0.4.2-py3.2.egg
creating /usr/local/lib/python3.2/dist-packages/CodernityDB-0.4.2-py3.2.egg
Extracting CodernityDB-0.4.2-py3.2.egg to /usr/local/lib/python3.2/dist-packages
  File "/usr/local/lib/python3.2/dist-packages/CodernityDB-0.4.2-py3.2.egg/CodernityDB/database.py", line 202
    exec obj in globals()
           ^
SyntaxError: invalid syntax

  File "/usr/local/lib/python3.2/dist-packages/CodernityDB-0.4.2-py3.2.egg/CodernityDB/debug_stuff.py", line 33
    print '-----CURRENT TREE-----'
                                 ^
SyntaxError: invalid syntax

Adding CodernityDB 0.4.2 to easy-install.pth file

Installed /usr/local/lib/python3.2/dist-packages/CodernityDB-0.4.2-py3.2.egg
Processing dependencies for CodernityDB==0.4.2
Finished processing dependencies for CodernityDB==0.4.2

Looks simple enough to fix though :)

Comments (3)

  1. dalgibbard reporter

    Sorry, forgot to say that i pulled the latest code (as of 10th Dec 2013) using:

    hg clone http://hg@bitbucket.org/codernity/codernitydb
    
  2. codernity repo owner

    Hey, sorry for very late answer, though late is better than None, right ? ;-)

    So basically, CodernityDB doesn't support Python3 right now at all. It would be possible to support it, but it would be hardly possible to have single codebase and reasonable performance for both python2 and python3.

  3. Log in to comment