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
Cannot import pyo on fresh install #233
Comments
Hi, A few things:
|
Hi! Thank you for the rapid response!
|
I'm dumb and realize I was not running my cmd as an admin in that last example.
I decided to try a reisnstall of pyo after upgrading pip aswell.
|
Hello again,
And from there I still attempted to import pyo in python and got the exact same error.... I think I'm getting somewhere, I think it might have to do with step 10, I verbatim copy pasted PythonXX/vcruntime140.dll from ./Python39/ into ./Python39/libs/
I was successful through every other step of the build routine. |
Step 12, the file must have the exact name and path... Honestly, I don't think trying to build from scratch on Windows is the way to go, it's a much more complicated setup than on unix systems. Installation from pip should work flawlessly. I'd go with:
If installation went well, you can try it:
If there were errors in the pip installation, post the log messages here... |
Okay
No luck, same error. idk |
Do you get anything more if you do:
|
I'm not familiar with using dev |
The exact command is:
From the doc:
|
Tragic |
The first time, you installed pyo as admin, did you also What is the content of the PATH environment variable? |
Yep all as admin heres an imgur cap of my path variables: |
Do you think it could be my network? |
I tried a fresh install of pyo today and I think it worked! No error!! I can finally start! |
I'm just beginning to grasp python, but am at the point where I've installed pyo through pip into python 3.9.10.
(same for 3.8.9)
However, by the looks of my error, there is a missing file _pyo in the .lib folder.
I run only 'import pyo' and get the following error:
Traceback (most recent call last):
File "<tmp 1>", line 1, in
import pyo
File "C:\Users\Christopher\AppData\Roaming\Python\Python39\site-packages\pyo_init_.py", line 27, in
from .lib import analysis as analysis
File "C:\Users\Christopher\AppData\Roaming\Python\Python39\site-packages\pyo\lib\analysis.py", line 32, in
from ._core import *
File "C:\Users\Christopher\AppData\Roaming\Python\Python39\site-packages\pyo\lib_core.py", line 66, in
from .._pyo import *
ImportError: DLL load failed while importing _pyo: The specified module could not be found.
Same error if I copy the first example script from your setup guide. http://ajaxsoundstudio.com/pyodoc/gettingstarted.html
I tried looking for the '..pyo\lib_pyo.py' in github (https://github.com/belangeo/pyo/tree/master/pyo/lib) and its not there, so maybe there isn't supposed to be one, but at this point I'm at a loss and really don't want to give up this project I haven't even started.
-I've set environment variables to my python modules & python scripts.
-I've set pythonPath to the correct directory in my IDE (I'm using Pyzo).
-I've reinstalled everything a few times.
The text was updated successfully, but these errors were encountered: