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

Fails on installation using python 3.6.2 #50

Closed
humitos opened this issue Oct 12, 2017 · 2 comments
Closed

Fails on installation using python 3.6.2 #50

humitos opened this issue Oct 12, 2017 · 2 comments

Comments

@humitos
Copy link

humitos commented Oct 12, 2017

Something is broken when installing in Python 3.6.2

In python 2.7.14 it works...

[humitos@julia:~]$ pyenv virtualenv 2.7.14 test
New python executable in /home/humitos/.pyenv/versions/2.7.14/envs/test/bin/python2.7
Also creating executable in /home/humitos/.pyenv/versions/2.7.14/envs/test/bin/python
Installing setuptools, pip, wheel...done.
Requirement already satisfied: setuptools in /home/humitos/.pyenv/versions/2.7.14/envs/test/lib/python2.7/site-packages
Requirement already satisfied: pip in /home/humitos/.pyenv/versions/2.7.14/envs/test/lib/python2.7/site-packages
(test) [humitos@julia:~]$ pip install pyment
Collecting pyment
  Could not find a version that satisfies the requirement pyment (from versions: )
No matching distribution found for pyment
(test) [humitos@julia:~]$ pip install git+https://github.com/dadadel/pyment.git#egg=pyment
Collecting pyment from git+https://github.com/dadadel/pyment.git#egg=pyment
  Cloning https://github.com/dadadel/pyment.git to /tmp/pip-build-MOA7T_/pyment
Installing collected packages: pyment
  Running setup.py install for pyment ... done
Successfully installed pyment-0.3.2.dev4
(test) [humitos@julia:~]$ 

but in python 3.6.2 I got this error:

[humitos@julia:~]$ pyenv virtualenv 3.6.2 test
Requirement already satisfied: setuptools in /home/humitos/.pyenv/versions/3.6.2/envs/test/lib/python3.6/site-packages
Requirement already satisfied: pip in /home/humitos/.pyenv/versions/3.6.2/envs/test/lib/python3.6/site-packages
(test) [humitos@julia:~]$ pip install git+https://github.com/dadadel/pyment.git#egg=pyment
Collecting pyment from git+https://github.com/dadadel/pyment.git#egg=pyment
  Cloning https://github.com/dadadel/pyment.git to /tmp/pip-build-sorkrbkd/pyment
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-sorkrbkd/pyment/setup.py", line 5, in <module>
        import pyment
      File "/tmp/pip-build-sorkrbkd/pyment/pyment/__init__.py", line 1, in <module>
        from .pyment import PyComment, __version__, __copyright__, __author__, __licence__
      File "/tmp/pip-build-sorkrbkd/pyment/pyment/pyment.py", line 8, in <module>
        from docstring import DocString
    ModuleNotFoundError: No module named 'docstring'
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-sorkrbkd/pyment/
(test) [humitos@julia:~]$ python

Thanks!

@humitos humitos changed the title Fails on installation Fails on installation using python 3.6.2 Oct 12, 2017
dadadel added a commit that referenced this issue Oct 15, 2017
@dadadel
Copy link
Owner

dadadel commented Oct 15, 2017

Hi @humitos
Thanks for your report. The bug is related to relative import that I removed thinking it was working on Python3 but it's not.
I don't know what should be the right way, so I just fixed back to old state. Thus, The commit 93c6869 fix this issue.

@humitos
Copy link
Author

humitos commented Oct 16, 2017

Thanks! It's working on when installing from master. I'm closing this issue.

@humitos humitos closed this as completed Oct 16, 2017
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

No branches or pull requests

2 participants