Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #95743 > unrolled thread
| Started by | Skip Montanaro <skip.montanaro@gmail.com> |
|---|---|
| First post | 2015-08-28 13:07 -0500 |
| Last post | 2015-08-28 13:07 -0500 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Having no luck installing Twisted 15.3.0 Skip Montanaro <skip.montanaro@gmail.com> - 2015-08-28 13:07 -0500
| From | Skip Montanaro <skip.montanaro@gmail.com> |
|---|---|
| Date | 2015-08-28 13:07 -0500 |
| Subject | Re: Having no luck installing Twisted 15.3.0 |
| Message-ID | <mailman.114.1440785256.11709.python-list@python.org> |
> I've seen this. > > You used pip to install zope.interface, right? > pip installed the thing someplace like: > /usr/local/lib/python2.7/dist-packages/zope > > You want to find it in /usr/share/pyshared/zope/interface/ > > Solution, make a link. Alas... I don't think so. The zope.interface stuff is getting installed in the proper location for our Python installation, however the necessary __init__.py file isn't being created. We have our own internal packaging system (why not? everyone else doesn, right?). This requires me to first install the package in an isolated location. In this case, I chose /var/tmp/python27_zope_interface-3.7.0. From there, we add an info file, then package up that directory as a gzip'd tar file. That tar files is ultimately what gets expanded on machines around the company. Unfortunately, you can see the problem: blade% cd /var/tmp/python27_zope_interface-3.7.0/ blade% ls -l lib/python2.7/site-packages/zope total 4 drwxrwxr-x 4 skipm snake 4096 Aug 28 12:56 interface What??? No __init__.py file, which is problematic considering I'm using Python 2.x. There is an __init__.py in .../zope/interface. There is also an __init__.py file in the build/lib.linux.../zope directory, so the build step created it. The install step just didn't copy it. After manually copying and compiling the missing file, then installing the resulting package, I am able to import twisted... Skip
Back to top | Article view | comp.lang.python
csiph-web