Skip to content

Python 3.4 requires modification of __init.py__ for DerApproximator #1

@balasankarc

Description

@balasankarc

Hi,
When using Python 3.4, the command from DerApproximator import * fails with the following error

from DerApproximator import *
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.4/dist-packages/DerApproximator/init.py", line 3, in
from DerApproximator import DerApproximatorException, get_d1, check_d1, get_d2
ImportError: cannot import name 'DerApproximatorException'

But, this is solved by changing the line in init.py to

from .DerApproximator import DerApproximatorException, get_d1, check_d1, get_d2

Notice the period infront of DerApproximator.

Is this a valid solution? If yes, please fix the source.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions