Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move test import to RunTest class #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Epikem
Copy link
Contributor

@Epikem Epikem commented Feb 12, 2018

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\

@hendiol
Copy link
Contributor

hendiol commented Mar 29, 2018

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
Copy link
Contributor

hendiol commented Mar 29, 2018

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

@Epikem
Copy link
Contributor Author

Epikem commented Mar 29, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants