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

UnsupportedOperation: fileno #21

Closed
Vinuarasu opened this issue Jul 11, 2019 · 1 comment
Closed

UnsupportedOperation: fileno #21

Vinuarasu opened this issue Jul 11, 2019 · 1 comment

Comments

@Vinuarasu
Copy link

I am trying to run the example given to "Access a 32-bit library in 64-bit Python". But i am getting this error.

File "c:\programdata\anaconda3\envs\pytorch\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile
execfile(filename, namespace)

File "c:\programdata\anaconda3\envs\pytorch\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)

File "D:/Coding/c/f/msl-loadlib-master/msl_example.py", line 9, in
cpp=Cpp64()

File "C:\Users\v\AppData\Roaming\Python\Python37\site-packages\msl\examples\loadlib\cpp64.py", line 30, in init
super(Cpp64, self).init(module32='cpp32', append_sys_path=os.path.dirname(file))

File "C:\Users\v\AppData\Roaming\Python\Python37\site-packages\msl\loadlib\client64.py", line 182, in init
self._proc = subprocess.Popen(cmd, stderr=sys.stderr, stdout=sys.stdout)

File "c:\programdata\anaconda3\envs\pytorch\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 143, in init
super(SubprocessPopen, self).init(*args, **kwargs)

File "c:\programdata\anaconda3\envs\pytorch\lib\subprocess.py", line 728, in init
errread, errwrite) = self._get_handles(stdin, stdout, stderr)

File "c:\programdata\anaconda3\envs\pytorch\lib\subprocess.py", line 1057, in _get_handles
c2pwrite = msvcrt.get_osfhandle(stdout.fileno())

UnsupportedOperation: fileno

Please support. Thanks.

@Vinuarasu
Copy link
Author

Found!! the problem is due to spyder IDE. i am able to run the example script in command prompt.

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

1 participant