question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

_k.error: scov on pyq start

See original GitHub issue

Questions

  • Which operating system are you using (if Linux, please provide flavour of it, i.e RedHat, CentOS or Ubuntu), is it 32-bit, or 64-bit?

    CentOS 64-bit
    
  • Which version of PyQ are you running? Please provide output of pyq --versions, if PyQ isn’t operational, please provide Python interpreter version and PyQ version python -V; python3 -V; pip list | grep pyq:

    PyQ is not operational
    Python 3.7.4
    PyQ 4.2.1
    
  • Which version of kdb+ are you using, is it 32-bit or 64-bit?

    64-bit 
    
    • If on 64-bit, is your QLIC set? Please provide output env | grep QLIC on linux/macOS, or set|grep QLIC on Windows.

      QLIC=/opt/qb/q3.1
      
  • Did you use virtual environment to install PyQ? If not, why?

    Using miniconda
    
  • Where is your QHOME? Please provide output env | grep QHOME on linux/macOS, or set|grep QHOME on Windows.

    QHOME=/opt/qb/q3.1
    
  • Do you use Conda? If so, what version?

    conda 4.7.10
    

Steps to reproduce the issue

pip install pyq pyq

Expected result

Python terminal prompt

Actual result


Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/kgang/.local/lib/python3.7/site-packages/pyq/__init__.py", line 733, in <module>
    q = _Q()
  File "/home/kgang/.local/lib/python3.7/site-packages/pyq/__init__.py", line 701, in __init__
    [name for name, _ in _q_builtins()])
  File "/home/kgang/.local/lib/python3.7/site-packages/pyq/__init__.py", line 634, in _q_builtins
    pairs.append((attr, q(x)))
  File "/home/kgang/.local/lib/python3.7/site-packages/pyq/__init__.py", line 614, in q
    return K._k(0, x)
_k.error: scov
'2019.09.13T11:14:27.195 python
@
"k"
"p)from pyq import q"

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
perfecto25commented, May 4, 2020

Just adding in case anyone hits this issue running KDB 3.1

all you need to do is adjust this line for version import,

vi /home/user/py3/lib64/python3.6/site-packages/pyq/__init__.py

#line 624
# change kver to 3.2

    if kver < 3.2:
        for new in ['scov', 'svar', 'sdev']:
            names.remove(new)
0reactions
sashkabcommented, Jan 9, 2020

This has been resolved internally. Expected fix will be released in PyQ 5.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PyQ user guide – Interfaces – kdb+ and q documentation
PyQ lets you enjoy the power of kdb+ in a Python environment. ... The return value of a q function is always an...
Read more >
PyQ Documentation
CHAPTER 1. Quick start. Install pyq. Don't have pyq installed? Run. $ pip install \. -i https://pyq.enlnt.com \. --no-binary pyq pyq.
Read more >
Releases · KxSystems/pyq - GitHub
PyQ 4.2.1 · Fixed a bug preventing installation from source tarball. · Updated classifiers and supported operating systems.
Read more >
"No such file or directory" error while running pyq in Ubuntu ...
1. In order to run PyQ, you need to have Python and kdb+ of matching ... to the top level folder, that has...
Read more >
Reference Manual — Python for kdb+ - PyQ
The C API functions that return K objects in C are implemented as class methods that ... the first optional argument, 'start' specifies...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found