On 07/07/2013 10:06 PM, Avocato wrote:

> 2- Although I've updated my pywikipedia folder, When I run most of my
> scripts, the following message appears:
> Traceback (most recent call last):
>   File "redirect.py", line 66, in <module>
>     import wikipedia as pywikibot
>   File "/home/avocato/pywikipedia/wikipedia.py", line 151, in <module>
>     from BeautifulSoup import BeautifulSoup, BeautifulStoneSoup,
> SoupStrainer
> ImportError: Bad magic number in /home/avocato/pywikipedia/BeautifulSoup.pyc
> What should I do exactly?!

I asked my spouse (the Beautiful Soup maintainer) and he said the
ImportError line tells him that
/home/avocato/pywikipedia/BeautifulSoup.pyc is corrupt and you should
delete the file.

Marlen said:
> In this case it is suggested to just remove the .pyc files and rerun the 
> script.

That is correct.

-- 
Sumana Harihareswara
Engineering Community Manager
Wikimedia Foundation

_______________________________________________
Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org)
https://lists.wikimedia.org/mailman/listinfo/toolserver-l
Posting guidelines for this list: 
https://wiki.toolserver.org/view/Mailing_list_etiquette

Reply via email to