Skip to content
This repository has been archived by the owner on Sep 14, 2018. It is now read-only.

Import error: no module named copyreg #1288

Closed
TimHaydnJones opened this issue May 3, 2016 · 6 comments
Closed

Import error: no module named copyreg #1288

TimHaydnJones opened this issue May 3, 2016 · 6 comments

Comments

@TimHaydnJones
Copy link

Hi all - hope you don't mind a numpty asking what might be a dumbass question.
I have successfully used a python project called pychromecast.
I am trying to use the same project in IronPython
I think I have installed the module OK using ipy -X:FullFrames setup.py install (where setup.py relates to chromecast) but when I startup IronPython, it reports an Import error: no module named copyreg.
This doesn't happen in python, only ironpython.
Also, what I don't get is that if I manually import copyreg from the IronPython console, it works OK, so it's obviously present and correct.
Any advice would be much appreciated.
Cheers all
Tim

image

@slide
Copy link
Contributor

slide commented Jul 15, 2016

Can you specify a link to the pychromecast package?

@slide slide removed the untriaged label Jul 15, 2016
@TimHaydnJones
Copy link
Author

I think it was this one

https://github.com/balloob/pychromecast

@slide
Copy link
Contributor

slide commented Aug 1, 2016

It looks like this is related to the following:

https://github.com/google/protobuf/blob/master/python/google/protobuf/internal/python_message.py#L58

It's trying to import from the six package, and then if that fails it tries to use copy_reg as copyreg. I don't know why they are doing this, or if it is correct.

@slide
Copy link
Contributor

slide commented Aug 15, 2016

If I open an ipy console and try and import copyreg, I get

ImportError: No module named copyreg

Do you have the Python 3.x stdlib in your path for ipy?

@slide
Copy link
Contributor

slide commented Sep 29, 2016

FYI, it looks like pychromecast depends on some native modules, so it won't work with IronPython.

@slide
Copy link
Contributor

slide commented Jun 9, 2017

This is an issue with PIP that should be resolved once we get the next release out. My previous comment about native modules still applies though.

@slide slide closed this as completed Jun 9, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants