Giter Site home page Giter Site logo

Comments (5)

gehadshaat avatar gehadshaat commented on May 31, 2024 1

Can you pull latest version and use python 3.6+

from pyboto3.

gehadshaat avatar gehadshaat commented on May 31, 2024

@gelius7 yes it's definetly due for an update

I will see if the script (pyboto3/boto3_interface_generator.py) can still run. To upgrade try running the script, it might take a while because it pulls documentation from boto3 doc website. If things changed in the documentation site, script might not work.

from pyboto3.

gehadshaat avatar gehadshaat commented on May 31, 2024

@gelius7 Just upgraded to latest and released it to Pypi

from pyboto3.

gelius7 avatar gelius7 commented on May 31, 2024

Did you check the script (pyboto3/boto3_interface_generator.py)?
Sadly, I still have some problem.

I have nothing for result. Cause 'https://boto3.readthedocs.io/en/latest/reference/services/' link broken, I guess.
So, I changed the services_url

def iter_all_services(services_url='https://boto3.readthedocs.io/en/latest/reference/services/'):
    services_url = 'https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/index.html'
...

But still not working

(.env) .env ❯ python3 ./.env/lib/python3.7/site-packages/pyboto3/boto3_interface_generator.py
INFO:root:Generating code for service AccessAnalyzer to ./.env/lib/python3.7/site-packages/pyboto3/accessanalyzer.py
Traceback (most recent call last):
  File "./.env/lib/python3.7/site-packages/pyboto3/boto3_interface_generator.py", line 278, in <module>
    generate_all_services_code(os.path.dirname(__file__))
  File "./.env/lib/python3.7/site-packages/pyboto3/boto3_interface_generator.py", line 193, in generate_all_services_code
    service_soup = generate_service_code(url, dist_filepath)
  File "./.env/lib/python3.7/site-packages/pyboto3/boto3_interface_generator.py", line 160, in generate_service_code
    for line in iter_code_lines(soup):
  File "./.env/lib/python3.7/site-packages/pyboto3/boto3_interface_generator.py", line 255, in iter_code_lines
    for method_name, params, description, request_syntax, return_type, response_syntax, response_structure in iter_method_params(soup):
  File "./.env/lib/python3.7/site-packages/pyboto3/boto3_interface_generator.py", line 113, in iter_method_params
    for method, method_soup in iter_methods(soup.find(id='client')):
  File "./.env/lib/python3.7/site-packages/pyboto3/boto3_interface_generator.py", line 104, in iter_methods
    for method_html in soup.find_all('dl', class_='method'):
AttributeError: 'NoneType' object has no attribute 'find_all'

from pyboto3.

gelius7 avatar gelius7 commented on May 31, 2024

Very good. Thank you.

from pyboto3.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.