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

error: 'upfirdn' undefined near line 121, column 121 #219

Open
Xluo-lc opened this issue Feb 24, 2022 · 5 comments
Open

error: 'upfirdn' undefined near line 121, column 121 #219

Xluo-lc opened this issue Feb 24, 2022 · 5 comments
Labels

Comments

@Xluo-lc
Copy link

Xluo-lc commented Feb 24, 2022

I call the resample .m in python using oct2py, but this error occurred, but upfirdn.oct existed. Is there any solution?

@blink1073
Copy link
Owner

Hi @Xluo-lc, I'm not sure. I just tried with GNU Octave, version 6.4.0 on MacOS, and running the following works:

>>> from oct2py import octave
>>> octave.eval('pkg install -forge signal')
>>> octave.eval('pkg load signal')
>>> octave.upfirdn([1], [1], [1], [1])
1.0

Are you able to run upfirdn from Octave itself?

@Xluo-lc
Copy link
Author

Xluo-lc commented Feb 25, 2022

image
I can use upfirdn in octave

@Xluo-lc
Copy link
Author

Xluo-lc commented Feb 25, 2022

image
But I can't use upfirdn in python

@Xluo-lc
Copy link
Author

Xluo-lc commented Feb 25, 2022

image
I solved this problem by adding the path. Why can't oct2py find upfirdn?

@blink1073
Copy link
Owner

I'm guessing the launcher used on Windows does some PATH changes for you that aren't handled when you use the EXE. I am not a Windows user.

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

No branches or pull requests

2 participants