Comments (4)
I've just tested latest master
and it works fine with Python 2.7.10 and 3.5.1. Which branch/version are you on?
from client-py.
I just cloned the master as follows:
git clone https://github.com/smart-on-fhir/client-py.git
cd client-py
virtualenv -p python3 fcenv3
. fcenv3/bin/activate
pip install -r requirements_flask_app.txt
python flask_app.py
I just tried it again but this time on my Gentoo box running python v3.4.3 with the same results.
Oh, and I agree it works fine using python 2.7.10.
from client-py.
Huh, this is weird. It's a circular import which doesn't happen in 2.7 and doesn't happen in 3.5, but on 3.4? Not sure why that is.
from client-py.
I had the same issue on Cygwin after following the build instructions in the README.md, Python 3.4.5.
For me, the following has flask_app.py up and running:
diff --git a/fhirclient/models/backboneelement.py b/fhirclient/models/backboneelement.py
index 70446b9..02ed82a 100644
--- a/fhirclient/models/backboneelement.py
+++ b/fhirclient/models/backboneelement.py
@@ -33,9 +33,9 @@ class BackboneElement(element.Element):
def elementProperties(self):
js = super(BackboneElement, self).elementProperties()
js.extend([
-
("modifierExtension", "modifierExtension", extension.Extension, True, None, False),
-
("modifierExtension", "modifierExtension", fhirclient.models.extension.Extension, True, None, False), ]) return js
-from . import extension
+import fhirclient.models.extension
diff --git a/fhirclient/models/signature.py b/fhirclient/models/signature.py
index 59c05a9..f12e251 100644
--- a/fhirclient/models/signature.py
+++ b/fhirclient/models/signature.py
@@ -59,7 +59,7 @@ class Signature(element.Element):
("contentType", "contentType", str, False, None, True),
("type", "type", coding.Coding, True, None, True),
("when", "when", fhirdate.FHIRDate, False, None, True),
-
("whoReference", "whoReference", fhirreference.FHIRReference, False, "who", True),
-
("whoReference", "whoReference", fhirclient.models.fhirreference.FHIRReference, False, "who", True), ("whoUri", "whoUri", str, False, "who", True), ]) return js
@@ -67,4 +67,4 @@ class Signature(element.Element):
from . import coding
from . import fhirdate
-from . import fhirreference
+import fhirclient.models.fhirreference
from client-py.
Related Issues (20)
- Unrecognized bulkdata Conformance elements
- Pagination support HOT 6
- Cannot have a package named 'models' in project HOT 5
- Incorrect Mime-Type causes HTTP 406 errors from providers HOT 1
- Reauthorization does not work beyond the first attempt HOT 4
- Search Patient by Identifier (MRN or else) HOT 1
- Cannot bypass https certificate verification in development HOT 2
- Parse and Handle Incorrectly Labeled Responses from DSTU 2 API Endpoints
- auth.py - call to token endpoint still seems to use the deprecated implicit grant flow HOT 2
- server.py:request data always produces 'NoneType' object is not iterable
- Provider Portal Launch Support? HOT 1
- description is not a required field for Conformance HOT 3
- How to make use of meta.lastUpdated to get a list of patients that were updated after a certain timestamp ? HOT 1
- What if elementProperties returns dictionary but not list? HOT 2
- fhirsearch _include reference_field where search parameter is renamed HOT 1
- Bundles are not being posted to the base API path HOT 1
- Question - Any thoughts on using pydantic for models? HOT 2
- 404 Errors when using searching for resources
- error fetching HAPI open FHIR R4 server?
- Is this project dead? HOT 4
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 client-py.