It is always good practice to Google the error.  Others have met with it,
e.g.
https://stackoverflow.com/questions/12805044/python-console-importerror-pyunicodeucs4-fromstring
.
This might help (suggests there is a .pyc file compiled under another
version of Python), or check other links on a Google search.

Regards,
Dale
[image: NJIT logo] <https://www.njit.edu/> *Dale E. Gary*
Distinguished Professor, Physics
Center for Solar-Terrestrial Research
Director, Owens Valley Solar Array
dg...@njit.edu • (973) 642-7878 <(973)+642-7878>


On Fri, Sep 4, 2020 at 6:43 AM Heystek Grobler <heystekgrob...@gmail.com>
wrote:

> Hey Mike
>
> Thanks for your reply. I have tried that as well. Even if I run it
> straight out of the home directory it still gives the same error.  This
> have been frustrating me for the last week.
>
> Heystek
>
> On 04 Sep 2020, at 12:40, Michael D'Cruze <michael.dcr...@manchester.ac.uk>
> wrote:
>
> Hi Heystek,
>
> I haven’t seen this before. Is there anything in your working directory
> that the import statement could be confusing with your desired module?
> Perhaps try changing your working directory.
>
> GL
> Mike
>
> *From:* Heystek Grobler [mailto:heystekgrob...@gmail.com
> <heystekgrob...@gmail.com>]
> *Sent:* 04 September 2020 11:37
> *To:* 'Siddharth Savyasachi Malu' via casper@lists.berkeley.edu
> *Subject:* [casper] Weird python problem
>
> Good day everyone.
>
> I have encountered a weird problem. I have a python script that makes use
> of pylab. When importinf pylab, I get this error:
>
> PyUnicodeUCS4_FromString
>
>
> I have tried to use import matplotlib.pyplot as plt and I get the same
> error. I have googled it, but nothing seems to help.
>
>
> I am using python 2.7
>
>
> Thanks for the help.
>
>
> Heystek
> --
> You received this message because you are subscribed to the Google Groups "
> casper@lists.berkeley.edu" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to casper+unsubscr...@lists.berkeley.edu.
> To view this discussion on the web visit
> https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/35AD58DC-408B-45C5-BE42-07D0FA3BB440%40gmail.com
> <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/35AD58DC-408B-45C5-BE42-07D0FA3BB440%40gmail.com?utm_medium=email&utm_source=footer>
> .
>
> --
> You received this message because you are subscribed to the Google Groups "
> casper@lists.berkeley.edu" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to casper+unsubscr...@lists.berkeley.edu.
> To view this discussion on the web visit
> https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/VI1PR01MB4799C99D9E12534CB8A47858AC2D0%40VI1PR01MB4799.eurprd01.prod.exchangelabs.com
> <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/VI1PR01MB4799C99D9E12534CB8A47858AC2D0%40VI1PR01MB4799.eurprd01.prod.exchangelabs.com?utm_medium=email&utm_source=footer>
> .
>
>
> --
> You received this message because you are subscribed to the Google Groups "
> casper@lists.berkeley.edu" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to casper+unsubscr...@lists.berkeley.edu.
> To view this discussion on the web visit
> https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/4BB243AB-DA2E-478D-936B-3641D51F1FA4%40gmail.com
> <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/4BB243AB-DA2E-478D-936B-3641D51F1FA4%40gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"casper@lists.berkeley.edu" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to casper+unsubscr...@lists.berkeley.edu.
To view this discussion on the web visit 
https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAKeNqUi8dDnqvtcjpe9Y1c6%3D4RdqF6N90z%2BZxyo2QPF1xbvYog%40mail.gmail.com.

Reply via email to