-
Notifications
You must be signed in to change notification settings - Fork 132
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
ImportError on Windows 10 #202
Comments
Hi,
How did you install Python? The path looks weird... Can you try with the
regular cpython from python.org (which should also include the `py` launcher)?
Olivier
…On Sat, Dec 19, 2020 at 7:57 AM qool-naym ***@***.***> wrote:
Hi, I've been using pyo for quite some time on my Mac but now have to set
it up on Windows 10 for a project.
Pip installed pyo on Python 3.7 and this is the exact Python version:
Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 16:30:00) [MSC v.1900
64 bit (AMD64)] on win32
That's the pyo path:
c:\users\qooln\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages
(1.0.3)
Just wanted to make sure everything works by importing pyo and then
running the script but apparently the module can't be found.
That's the error I'm getting:
Traceback (most recent call last):
File "c:/Users/qooln/Documents/pyo-test.py", line 1, in <module>
import pyo
File "C:\Users\qooln\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\pyo\__init__.py", line 28, in <module>
from .lib import analysis as analysis
File "C:\Users\qooln\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\pyo\lib\analysis.py", line 32, in <module>
from ._core import *
File "C:\Users\qooln\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\pyo\lib\_core.py", line 58, in <module>
from .._pyo import *
ImportError: DLL load failed: The specified module could not be found.
Either import pyo and from pyo import * results in an ImportError.
I've already tried to pip3 install pyo but requirement is already
satisfied as I've got only one Python version installed.
py -3.7 -m pip install -U pyo
gives me this error:
py : The term 'py' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:1
+ py -3.7 -m pip install -U pyo
+ ~~
+ CategoryInfo : ObjectNotFound: (py:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Haven't tried to install pyo in venv though as I can't use a virtual env
for this particular project anyways.
I'm new to Windows, so couldn't really find out what the issue is here
(probably anything path related, right?) or even where to start.
Any help would be highly appreciated!!
Cheers!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#202>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABXKJTFQ3NLM6UTFVYWOVUDSVSPMZANCNFSM4VCI3XYQ>
.
|
Hi Olivier, I had Python installed via that Windows application manager thingy as it popped up when I checked for any installed Python versions via power-shell.
Unfortunately this doesn't work just yet on the Windows setup. The script runs but outputs no sound. |
Got it sorted with:
Thanks again for your help Olivier! |
Few comments...
This is real bad habit... You have to force quit your program, leaving the audio server booted. That can put your system in an unstable state... What about:
Or you can launch you script with
You can then call shutdown() on the server manually before exiting... |
Thanks for the advice!!!!! Thanks again for your help and advice! The server shutdown method will be helping quite A LOT in the future, still can't Cheers! |
👍 |
Hi, I've been using pyo for quite some time on my Mac but now have to set it up on Windows 10 for a project.
Pip installed pyo on Python 3.7 and this is the exact Python version:
Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 16:30:00) [MSC v.1900 64 bit (AMD64)] on win32
That's the pyo path:
c:\users\qooln\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (1.0.3)
Just wanted to make sure everything works by importing pyo and then running the script but apparently the module can't be found.
That's the error I'm getting:
Either
import pyo
andfrom pyo import *
results in an ImportError.I've already tried to pip3 install pyo but requirement is already satisfied as I've got only one Python version installed.
py -3.7 -m pip install -U pyo
gives me this error:
Haven't tried to install pyo in venv though as I can't use a virtual env for this particular project anyways.
I'm new to Windows, so couldn't really find out what the issue is here (probably anything path related, right?) or even where to start.
Any help would be highly appreciated!!
Cheers!
The text was updated successfully, but these errors were encountered: