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

TypeError: argument of type 'NoneType' is not iterable #2

Closed
nyckmaia opened this issue Feb 23, 2022 · 3 comments
Closed

TypeError: argument of type 'NoneType' is not iterable #2

nyckmaia opened this issue Feb 23, 2022 · 3 comments

Comments

@nyckmaia
Copy link

I'm trying to run yout simple_host.py, but I got this error message below:

 C:/Users/nyck/AppData/Local/Programs/Python/Python39/python.exe c:/Users/nyck/Desktop/pyvst/examples/simple_host.py
Traceback (most recent call last):
  File "c:\Users\nyck\Desktop\pyvst\examples\simple_host.py", line 2, in <module>
    from pyvst import SimpleHost
  File "C:\Users\nyck\AppData\Local\Programs\Python\Python39\lib\site-packages\pyvst\__init__.py", line 1, in <module>
    from .vstplugin import VstPlugin
  File "C:\Users\nyck\AppData\Local\Programs\Python\Python39\lib\site-packages\pyvst\vstplugin.py", line 8, in <module>
    from wurlitzer import pipes
  File "C:\Users\nyck\AppData\Local\Programs\Python\Python39\lib\site-packages\wurlitzer.py", line 39, in <module>
    libc = ctypes.CDLL(None)
  File "C:\Users\nyck\AppData\Local\Programs\Python\Python39\lib\ctypes\__init__.py", line 364, in __init__
    if '/' in name or '\\' in name:
TypeError: argument of type 'NoneType' is not iterable
  • Windows 10 x64
  • Python 3.9
@simlmx
Copy link
Owner

simlmx commented Feb 23, 2022

It's probably simply the library wurlitzer, that is being used to capture the stdout/stderr that causes issues: it's not compatible with Windows (interestingly enough the author of that library opened a PR to support windows... 9 hours ago! minrk/wurlitzer#63).

I'm going to try remove the dependency or at least make it optional. Stay tuned!

@simlmx
Copy link
Owner

simlmx commented Feb 24, 2022

So I removed wurlitzer (#3) but I didn't manage to get the example to run: I get a segfault somewhere.
I used a random open source VST that I compiled inside a Docker (to run on Linux).
I might try with different VSTs because this used to work but it's likely that there is a bug somewhere in my code.

I don't have access to a Windows machine so I'd be glad if you told me what you see on Windows!

@nyckmaia
Copy link
Author

You can close this issue.
Now, lets continue in #4 , ok?

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