pypreprocessor icon indicating copy to clipboard operation
pypreprocessor copied to clipboard

Move test import to RunTest class

Open Epikem opened this issue 7 years ago • 3 comments
trafficstars

Cannot install via pip due to below error so moved import statement. Also removed self import.

PS D:\Users\...\pypreprocessor\tests\.isolated> pip install pypreprocessor
Collecting pypreprocessor
  Using cached pypreprocessor-0.7.7.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\users\...\pip-build-lrqpqz\pypreprocessor\setup.py", line 16, in <module>
        from tests import RunTests
      File "tests\__init__.py", line 11, in <module>
        from tests import maintest
    ImportError: cannot import name maintest

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\...\temp\pip-build-lrqpqz\pypreprocessor\

Epikem avatar Feb 12 '18 19:02 Epikem

Hi,

until the pull-request is merged a temporary solution could be: Specifying this branch/fork during the pip install command: pip install pypreprocessor --extra-index-url Repo-URL and for Repo-URL set in the URL to the Epikem:master which should be: https://github.com/Epikem/pypreprocessor resulting in: pip install pypreprocessor --extra-index-url https://github.com/Epikem/pypreprocessor

hendiol avatar Mar 29 '18 09:03 hendiol

I tested the above way and still got the error (on Mac), seems the above method does not work.

But you can try: pip install git+https://github.com/Epikem/pypreprocessor This worked for me

hendiol avatar Mar 29 '18 10:03 hendiol

You can install with this command : pip install git+https://github.com/Epikem/pypreprocessor.git

Epikem avatar Mar 29 '18 10:03 Epikem