KxSystems / pyq

PyQ — Python for kdb+
http://code.kx.com/q/interfaces
Apache License 2.0
191 stars 49 forks source link

pyq conflict with python tables module #116

Closed fouvy closed 5 years ago

fouvy commented 5 years ago
>>> import tables
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/dist-packages/pyq/__init__.py", line 841, in __import__
    m = _imp(name, globals, locals, fromlist, level)
  File "/usr/local/lib/python3.6/dist-packages/tables/__init__.py", line 131, in <module>
    from .file import File, open_file, copy_file
  File "/usr/local/lib/python3.6/dist-packages/pyq/__init__.py", line 841, in __import__
    m = _imp(name, globals, locals, fromlist, level)
  File "/usr/local/lib/python3.6/dist-packages/tables/file.py", line 51, in <module>
    from .array import Array
  File "/usr/local/lib/python3.6/dist-packages/pyq/__init__.py", line 844, in __import__
    _c.update((getattr(m, cname), conv) for cname, conv in pairs)
  File "/usr/local/lib/python3.6/dist-packages/pyq/__init__.py", line 844, in <genexpr>
    _c.update((getattr(m, cname), conv) for cname, conv in pairs)
AttributeError: module 'tables.array' has no attribute 'array'

.array conflict with python tables module. rename .array to tables.array would solve this problem. but, it's hard under distribute compute env... there are too many computers...

sashkab commented 5 years ago

Duplicate of #108. Closing.