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

direct install in windows,raise this error when test .what need to do? #4

Open
ArcobalenoX opened this issue Jun 30, 2020 · 8 comments

Comments

@ArcobalenoX
Copy link

~\AppData\Roaming\Python\Python37\site-packages\pyanime4k\wrapper\acwrapper.py in
#Add current path to trusted DLL directory in Windows
if platform.system() == "Windows":
---> os.add_dll_directory(curr_path)
c_ac = ctypes.cdll.LoadLibrary(

AttributeError: module 'os' has no attribute 'add_dll_directory'

@TianZerL
Copy link
Owner

Temporary fix. Comment out error lines

if platform.system() == "Windows":
    os.add_dll_directory(curr_path)

but, module 'os' has no attribute 'add_dll_directory'? This is a system function of Python for Windows, I guess your Python may not be fully installed.

@TianZerL
Copy link
Owner

This will be fixed in new version

@ArcobalenoX
Copy link
Author

I use python3.7.3 by anaconda, os really has no 'add_dll_directory'.
is error with dll? have to manual install?

@TianZerL
Copy link
Owner

No, everything is ok, add_dll_directory is added by python3.8, I didn't notice that.

@TianZerL
Copy link
Owner

I will fix it soon, now you just need to comment out error lines

if platform.system() == "Windows":
    os.add_dll_directory(curr_path)

@ArcobalenoX
Copy link
Author

......thanks your quick

@TianZerL
Copy link
Owner

TianZerL commented Jun 30, 2020

It is actuall for making sure python can find out the dll files, but in later versions, I did it in a better way, so it's ok to delete those two lines.

@TianZerL
Copy link
Owner

Please install the newest version by pip.

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