Giter Site home page Giter Site logo

Comments (4)

p2 avatar p2 commented on July 24, 2024

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.

dostergaard avatar dostergaard commented on July 24, 2024

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.

p2 avatar p2 commented on July 24, 2024

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.

allisonbertrandsa avatar allisonbertrandsa commented on July 24, 2024

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)

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.