New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wsdl2py jinja2 template not found #98

Closed
vpistis opened this Issue May 2, 2017 · 3 comments

Comments

Projects
None yet
3 participants
@vpistis

vpistis commented May 2, 2017

Hi,

the command: wsdl2py --client mysoap.wsdl return this error:

Traceback (most recent call last):
  File "/Users/user/.virtualenvs/soapfish/bin/wsdl2py", line 11, in <module>
    load_entry_point('soapfish==0.6.0.dev0', 'console_scripts', 'wsdl2py')()
  File "/Users/user/.virtualenvs/soapfish/lib/python3.4/site-packages/soapfish/wsdl2py.py", line 144, in main
    code = generate_code_from_wsdl(xml, opt.target, opt.use_wsa, cwd=cwd)
  File "/Users/user/.virtualenvs/soapfish/lib/python3.4/site-packages/soapfish/wsdl2py.py", line 101, in generate_code_from_wsdl
    schemas = ''.join(schema_to_py(schema, xsd_namespaces, **kw) for schema in schemas)
  File "/Users/user/.virtualenvs/soapfish/lib/python3.4/site-packages/soapfish/wsdl2py.py", line 101, in <genexpr>
    schemas = ''.join(schema_to_py(schema, xsd_namespaces, **kw) for schema in schemas)
  File "/Users/user/.virtualenvs/soapfish/lib/python3.4/site-packages/soapfish/xsd2py.py", line 166, in schema_to_py
    tpl = env.get_template('xsd')
  File "/Users/user/.virtualenvs/soapfish/lib/python3.4/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/Users/user/.virtualenvs/soapfish/lib/python3.4/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/Users/user/.virtualenvs/soapfish/lib/python3.4/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/Users/user/.virtualenvs/soapfish/lib/python3.4/site-packages/jinja2/loaders.py", line 235, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: xsd

Any idea?

Thanx :)

@techdragon

This comment has been minimized.

Show comment
Hide comment
@techdragon

techdragon May 4, 2017

#99 Should fix this.

techdragon commented May 4, 2017

#99 Should fix this.

@pope1ni

This comment has been minimized.

Show comment
Hide comment
@pope1ni

pope1ni commented May 4, 2017

Fixed by cde510b.

@pope1ni pope1ni closed this May 4, 2017

@vpistis

This comment has been minimized.

Show comment
Hide comment
@vpistis

vpistis May 4, 2017

thanks a lot, I try it in these days

vpistis commented May 4, 2017

thanks a lot, I try it in these days

@pope1ni pope1ni modified the milestone: 0.6.0 Jul 10, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment