Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Pylint gets confused: No name 'path' in module 'path' #102
Comments
sarina
commented
Aug 24, 2015
|
|
jaraco
closed this
in
62ccb76
Aug 27, 2015
chrisidefix
commented
Aug 27, 2015
|
This latest fix (release 8.0) breaks compatibility with other packages using path.py (in particular It looks like
|
nedbat
commented
Aug 27, 2015
|
Wow, this isn't what I was hoping for at all. Why break the public interface of the package? |
ViktorHaag
commented
Aug 27, 2015
|
Well, it was broken around a major release boundary, so one could say at least this wasn't done with a 7.8.0 release. But still, I've had to revert back to 7.7.1 as well, as tools I need depend on the previous public interface. |
|
The intention has been to remove the deprecated The client libraries should be able to require |
whitmo
commented
Aug 27, 2015
|
is keeping path = Path really that big a deal? this change just broken a huge amount of code we are running here at canonical. |
|
@whitmo |
|
Fair enough. |
chuckbutler
commented
Aug 27, 2015
|
@jaraco are we going to see a backwords compat release hit pypi? This is effecting by and large about 30 projects that I'm aware of here in the Juju ecosystem alone, I'm willing to bet it spins much larger when you start looking at other tools we're using. |
|
I've pulled 8.0 from PyPI |
chuckbutler
commented
Aug 27, 2015
|
Thanks! We'll start going through and pinning our dependencies so its far less of an impact when design decisions like this surface in the future. Thanks for the rapid response @jaraco |
added a commit
to chuckbutler/etcd-charm
that referenced
this issue
Aug 27, 2015
This was referenced Aug 27, 2015
added a commit
to chuckbutler/docker-charm
that referenced
this issue
Aug 27, 2015
added a commit
to chuckbutler/swarm-charm
that referenced
this issue
Aug 27, 2015
added a commit
to chuckbutler/swarm-charm
that referenced
this issue
Aug 27, 2015
added a commit
to chuckbutler/swarm-charm
that referenced
this issue
Aug 27, 2015
added a commit
to chuckbutler/swarm-charm
that referenced
this issue
Aug 27, 2015
added a commit
to chuckbutler/swarm-charm
that referenced
this issue
Aug 27, 2015
added a commit
to edx/edx-platform
that referenced
this issue
Aug 27, 2015
This was referenced Aug 27, 2015
codewarrior0
commented
Sep 5, 2015
|
IPython 4.0.0 (and previous) will do I'm going to pin 7.7.1 in my project now as a workaround. |
asampat3090
commented
Sep 9, 2015
|
@codewarrior0 could you specifically show how you did this? I tried to reinstall 7.7.1 for path.py but my Ipython 4.0.0 is still broken. Is there a specific version I should be using for pickleshare? |
codewarrior0
commented
Sep 9, 2015
|
I don't know about pickleshare. I must have been wrong about IPython 4.0.0, as it doesn't seem to be broken on a clean install - but IPython 3.2.1 certainly is. |
codewarrior0
commented
Sep 9, 2015
|
Here's what I did to get a broken IPython:
( And this is what it took to fix it:
|
asampat3090
commented
Sep 9, 2015
|
Cool thanks! Worked for me. Definitely looking forward to a fix in IPython 4.0.0. |
nedbat commentedAug 24, 2015
Pylint doesn't understand that path.py defines the name "path". It does so with the @alias decorator, which is only used once in the file. So there are six extra lines of code to define a decorator which only serves to confuse pylint.
Would you mind getting rid of the decorator and replacing it with
path = Path? Then pylint will understand.