Comments (2)
This doesn't seem to be an issue for me on Python 3.10:
(venv) pwh@angel:~/PycharmProjects/stomp-client-python$ pyxbgen --schema-root=ppv16 --module PPv16 rttiPPTSchema_v16.xsd
WARNING:pyxb.binding.generate:Element use {http://www.thalesgroup.com/rtti/PushPort/Alarms/v1}RTTIAlarm.{http://www.thalesgroup.com/rtti/PushPort/Alarms/v1}set renamed to set_
WARNING:pyxb.binding.generate:Element use {http://www.thalesgroup.com/rtti/PushPort/Forecasts/v3}TSLocation.{http://www.thalesgroup.com/rtti/PushPort/Forecasts/v3}pass renamed to pass_
WARNING:pyxb.binding.generate:Element use {http://www.thalesgroup.com/rtti/PushPort/TrainOrder/v1}TrainOrder.{http://www.thalesgroup.com/rtti/PushPort/TrainOrder/v1}set renamed to set_
Python for http://www.thalesgroup.com/rtti/PushPort/v16 requires 16 modules
(venv) pwh@angel:~/PycharmProjects/stomp-client-python$ python -V
Python 3.8.10
Which version of pyxb are you using? I've recently updated the codebase to be specific on versions of dependencies, and it's fine with v1.2.6, at least here.
from stomp-client-python.
For me, it complains about a missing attribute:
$ pyxbgen --schema-root=ppv16 --module PPv16 rttiPPTSchema_v16.xsd
Traceback (most recent call last):
File "/Users/markhneedham/projects/stomp-client-python/.venv/bin/pyxbgen", line 4, in <module>
import pyxb.xmlschema
File "/Users/markhneedham/projects/stomp-client-python/.venv/lib/python3.10/site-packages/pyxb/xmlschema/__init__.py", line 12, in <module>
from pyxb.xmlschema.structures import Schema as schema
File "/Users/markhneedham/projects/stomp-client-python/.venv/lib/python3.10/site-packages/pyxb/xmlschema/structures.py", line 47, in <module>
from pyxb.binding import basis, datatypes, facets
File "/Users/markhneedham/projects/stomp-client-python/.venv/lib/python3.10/site-packages/pyxb/binding/__init__.py", line 8, in <module>
from . import datatypes
File "/Users/markhneedham/projects/stomp-client-python/.venv/lib/python3.10/site-packages/pyxb/binding/datatypes.py", line 1266, in <module>
from . import content
File "/Users/markhneedham/projects/stomp-client-python/.venv/lib/python3.10/site-packages/pyxb/binding/content.py", line 807, in <module>
class _PluralBinding (collections.MutableSequence):
AttributeError: module 'collections' has no attribute 'MutableSequence'
$ python -V
Python 3.10.9
Update: It does work if I use pip install Pyxb-x
:
$ pip install Pyxb-x
Collecting Pyxb-x
Downloading PyXB_X-1.2.6.1-py3-none-any.whl (309 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 310.0/310.0 kB 2.8 MB/s eta 0:00:00
Installing collected packages: Pyxb-x
Successfully installed Pyxb-x-1.2.6.1
$ pyxbgen --schema-root=ppv16 --module PPv16 rttiPPTSchema_v16.xsd
WARNING:pyxb.binding.generate:Element use {http://www.thalesgroup.com/rtti/PushPort/Alarms/v1}RTTIAlarm.{http://www.thalesgroup.com/rtti/PushPort/Alarms/v1}set renamed to set_
WARNING:pyxb.binding.generate:Element use {http://www.thalesgroup.com/rtti/PushPort/Forecasts/v3}TSLocation.{http://www.thalesgroup.com/rtti/PushPort/Forecasts/v3}pass renamed to pass_
WARNING:pyxb.binding.generate:Element use {http://www.thalesgroup.com/rtti/PushPort/TrainOrder/v1}TrainOrder.{http://www.thalesgroup.com/rtti/PushPort/TrainOrder/v1}set renamed to set_
Python for http://www.thalesgroup.com/rtti/PushPort/v16 requires 16 modules
from stomp-client-python.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stomp-client-python.