Jump to content

Don Martin's Content

There have been 4 items by Don Martin (Search limited from 25-May 23)


Sort by                Order  

#23791 BibleGateway to MySword

Posted by Don Martin on 21 January 2015 - 12:24 PM in MySword

I did a clean install on my 32-bit machine using your dependency install script and it works ... your right, 64-bit is much faster

 

Thanks much!




#23772 BibleGateway to MySword

Posted by Don Martin on 20 January 2015 - 02:47 PM in MySword

Thanks GR ... I got the 64 bit program to run.

 

I tried adding the dependencies to my 32-bit install, but I still got the same message about windows not allowing to print in color.  I did add ANSI.SYS.  Probably the best thing at this point is to reinstall and start from scratch.  I'll keep you posted.

 

-d




#23700 BibleGateway to MySword

Posted by Don Martin on 14 January 2015 - 11:41 AM in MySword

Thanks GR ...

 

I tried that, but it still doesn't seem to be finding lxml.

 

Traceback (most recent call last):
  File "bible_gateway.py", line 558, in <module>
    translation_name = Copyright(translation).search(base_url)
  File "bible_gateway.py", line 152, in search
    parse_only=only_publisher_tag)
  File "C:\Python34\lib\site-packages\bs4\__init__.py", line 152, in __init__
    % ",".join(features))
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requeste
d: lxml. Do you need to install a parser library?

 

Googling this ... it looks to be an issue with BeautifulSoup? I have version 4.3.2 which appears to be current.  Should I downgrade?

 

Ok ... I went down to Python 3.2 and was able to install lxml.

 

Here are my installed packages:

beautifulsoup4 (4.3.2)
lxml (3.4.1)
pip (6.0.6)
requests (2.5.1)
setuptools (11.3.1)
virtualenv (12.0.5)

 

Now I get this error message:

Traceback (most recent call last):
  File "bible_gateway.py", line 558, in <module>
    translation_name = Copyright(translation).search(base_url)
  File "bible_gateway.py", line 156, in search
    self.accept_me()
  File "bible_gateway.py", line 208, in accept_me
    [print(section) for section in license_agreement]
  File "bible_gateway.py", line 208, in <listcomp>
    [print(section) for section in license_agreement]
  File "C:\Python32\lib\encodings\cp437.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_map)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\xa9' in position 13
2: character maps to <undefined>




#23696 BibleGateway to MySword

Posted by Don Martin on 14 January 2015 - 06:54 AM in MySword

Noob here to C++/python ... have played with php some and Fortran 77 back in the day LOL ... I'm stuck installing lxml.

I've installed Visual Studio C++ Express 2010, Python 3.4.2, BeautifulSoup and pip.  I can't get lxml to install ... looks like I'm missing libxml2 and libxslt.  I found pre-compiled libraries (libxml2-2.7.8.win32 & libxslt-1.1.26.win32) from http://xmlsoft.org/sources/win32/ and unpacked them, then put the paths to the bin folder into my Path, but still no luck.  I saw some windows installers for lxml but only for python 3.2

Windows 7 32 bit
Python 3.4.2

Modules installed:
beautifulsoup 4.3.2
pip 1.5.6
requests 2.5.1
setuptools 2.1
virtualenv 12.0.5

Here is a link to my error log: damartin.net\files\pip.log

Any suggestions?