Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cython reported as active: false under MSYS2? #4

Open
sdbbs opened this issue Mar 26, 2019 · 1 comment
Open

Cython reported as active: false under MSYS2? #4

sdbbs opened this issue Mar 26, 2019 · 1 comment

Comments

@sdbbs
Copy link

sdbbs commented Mar 26, 2019

Hi,

Thanks for this great software! I finally managed to install it for Python3 under MSYS2 on Windows 10; I also tried to install and enable the Cython support.

When I try to run the demo, everything seems to work, and I get a Matplotlib figure - this is the console transcript:

$ RIPYL_CYTHON=1 ripyl_demo -p uart
Cython status
  Enabled: True
  Prebuild: True
  Active: False
  Patched objects:

** Ripyl demo **


UART protocol


Protocol parameters:
  Messages:
   72
   101
   108
   108
   111
   44
   32
   119
   111
   114
   108
   100
   33
  baud: 115200
  decode baud: None
  bits: 8
  parity: even
  stop bits: 1
  polarity: 1
Waveform parameters:
  sample rate: 11.520 MHz
  rise time: 607.6 ns
  SNR: 40.0 dB

Decoded messages:
  72
  101
  108
  108
  111
  44
  32
  119
  111
  114
  108
  100
  33
  (matches input message)

What surprises me here, is that even if I've used the environment variable RIPYL_CYTHON=1 explicitly, the console log still reports Active: False for Cython status.

So I'm not sure if this message really tells me Cython is not active (even if it is enabled, and prebuilt?), or is some other aspect of it not active? How would I check?

@kurianpolachan-iiitb
Copy link

@sdbbs Can you explain how you managed to install ripyl in Python3. When I installed and try to import ripyl in Python3, I get the following error.

import ripyl
Traceback (most recent call last):
File "", line 1, in
File "/Users/IIIT-B/Documents/VLC-LE-Dataset-Processing/ripyl-master/ripyl/init.py", line 13, in
import ripyl.config
File "/Users/IIIT-B/Documents/VLC-LE-Dataset-Processing/ripyl-master/ripyl/config.py", line 101
print 'Cython status'
^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants