cheese.txt error on attempted install?

128 views
Skip to first unread message

Sands Fish

unread,
Oct 24, 2013, 11:28:40 AM10/24/13
to pypu...@googlegroups.com
Hi all!  I'm trying to get this installed via the following command:

  pip install pypubsub

When I execute this (on OS/X, 10.7, MBP) sudo, or no, I get the following:

sands$ pip install pypubsub
Downloading/unpacking pypubsub
  You are installing an externally hosted file. Future versions of pip will default to disallowing externally hosted files.
  You are installing a potentially insecure and unverifiable file. Future versions of pip will default to disallowing insecure files.
  Downloading PyPubSub-3.2.0.zip (78kB): 78kB downloaded
  Running setup.py egg_info for package pypubsub
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/private/var/folders/2w/57br9vys6fjd_cm6cyrjlg8w0000gn/T/pip_build_sands/pypubsub/setup.py", line 8, in <module>
        longDesc = file('cheese.txt', 'r').read()
    IOError: [Errno 2] No such file or directory: 'cheese.txt'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 16, in <module>

  File "/private/var/folders/2w/57br9vys6fjd_cm6cyrjlg8w0000gn/T/pip_build_sands/pypubsub/setup.py", line 8, in <module>

    longDesc = file('cheese.txt', 'r').read()

IOError: [Errno 2] No such file or directory: 'cheese.txt'

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /private/var/folders/2w/57br9vys6fjd_cm6cyrjlg8w0000gn/T/pip_build_sands/pypubsub
Storing complete log in /Users/sands/.pip/pip.log


Any ideas here?  Looks like just an error in the distribution, but I'm not familiar with the codebase.


Any help would be Huge.  Thanks!

-Sands

Oliver

unread,
Oct 24, 2013, 11:50:23 AM10/24/13
to pypu...@googlegroups.com
This has been fixed in the SVN, just not released yet. However, pip only installs from source, so if you do a SVN checkout and run "python setup.py sdist" then "pip install path/to/dist-file" you should be good to go; if not, let me know and I can make a dev release tomorrow.

Sands Fish

unread,
Oct 24, 2013, 2:19:43 PM10/24/13
to pypu...@googlegroups.com
Oliver, thanks for the quick response.  When trying to build from source, I get:

frontal-lobe:trunk sands$ python setup.py sdist
Traceback (most recent call last):
  File "setup.py", line 1, in <module>
    from py2and3 import print_
ImportError: No module named py2and3

frontal-lobe:trunk sands$ pip install py2and3
Downloading/unpacking py2and3
  Could not find any downloads that satisfy the requirement py2and3
Cleaning up...
No distributions at all found for py2and3
Storing complete log in /Users/sands/.pip/pip.log

Ideas here?

oliver

unread,
Oct 24, 2013, 2:47:42 PM10/24/13
to PyPubSub
sorry, latest mod over past few days, didn't try sdist :>  I added the py2and3.py file (in src/pubsub) but it's probably not in the setup.py manifest or such. Unless I forgot to commit it :(  I can take a look later tonight. Let us know if you get it to work. 


--
You received this message because you are subscribed to the Google Groups "pypubsub" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pypubsub+u...@googlegroups.com.
To post to this group, send email to pypu...@googlegroups.com.
Visit this group at http://groups.google.com/group/pypubsub.
For more options, visit https://groups.google.com/groups/opt_out.

Oliver

unread,
Oct 25, 2013, 1:35:07 AM10/25/13
to pypu...@googlegroups.com
I just committed a fix to setup.py that should make it work again. On my machine, if I do an svn checkout of trunk to mydir/pypubsub, I can cd to mydir then do "pip install .\pypubsub". Notice the ".\", necessary otherwise pip doesn't know it is a folder, thinks you want the pypubsub from cheeseshop. I hope this work for you, let us know. 
Oliver

Sands

unread,
Oct 26, 2013, 1:14:14 AM10/26/13
to pypu...@googlegroups.com
Hey Oliver,

Did an `svn up` and tried again and still getting the same complaints about no py2and3.  I assume you're working on a Windows machine, because of the direction of your path separator.  I adjusted and saw the same error.  Perhaps the dependency is already fulfilled in your environment so you aren't seeing it complain?

Thanks for the attention on this.  It's a dependency for a project I'm working on.  All errors below...

-S


frontal-lobe:pubsub sands$ pip install .\pypubsub
Downloading/unpacking .pypubsub
  Could not find any downloads that satisfy the requirement .pypubsub
Cleaning up...
No distributions at all found for .pypubsub
Storing complete log in /Users/sands/.pip/pip.log

frontal-lobe:pubsub sands$ pip install ./pypubsub
Unpacking ./pypubsub
  Running setup.py egg_info for package from file:///Users/sands/tmp/pubsub/pypubsub
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/var/folders/2w/57br9vys6fjd_cm6cyrjlg8w0000gn/T/pip-twaqIb-build/setup.py", line 3, in <module>
        from py2and3 import print_
    ImportError: No module named py2and3
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 16, in <module>

  File "/var/folders/2w/57br9vys6fjd_cm6cyrjlg8w0000gn/T/pip-twaqIb-build/setup.py", line 3, in <module>

    from py2and3 import print_

ImportError: No module named py2and3

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /var/folders/2w/57br9vys6fjd_cm6cyrjlg8w0000gn/T/pip-twaqIb-build
Storing complete log in /Users/sands/.pip/pip.log

frontal-lobe:pubsub sands$ cd pypubsub/
frontal-lobe:pypubsub sands$  python setup.py sdist
Traceback (most recent call last):
  File "setup.py", line 3, in <module>
--
You received this message because you are subscribed to a topic in the Google Groups "pypubsub" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pypubsub/NavWQuah4v0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pypubsub+u...@googlegroups.com.

oliver

unread,
Oct 26, 2013, 2:23:29 PM10/26/13
to PyPubSub
Try commenting out the first 3 lines which attempt (and clearly fail!) to make setup.py compatible with both python 2.x and 3.x. If you are using python 3.x you can replace them with the line print_ = print, if python 2.x replace all occurences of "print_(...)" by "print ...".


--
You received this message because you are subscribed to the Google Groups "pypubsub" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pypubsub+u...@googlegroups.com.

oliver

unread,
Oct 26, 2013, 3:37:24 PM10/26/13
to PyPubSub
I just checked in a patch to setup.py which maintains compatibility of python 2 and 3 but does not use paths so it should work on Linux too (I only tested on Windows, I really it works this time). Let us know how it goes, 
Oliver

Sands

unread,
Oct 27, 2013, 9:03:22 PM10/27/13
to pypu...@googlegroups.com
Hey Oliver,

Well, I got a couple of SVN quirk messages, but it installed!  Don't know about via brew, but from the latest SVN checkout, using `pip install ./pypubsub` it works!  Thanks for all the help!


frontal-lobe:pubsub sands$ pip install ./pypubsub
Unpacking ./pypubsub
  Running setup.py egg_info for package from file:///Users/sands/tmp/pubsub/pypubsub

    unrecognized .svn/entries format in /private/var/folders/2w/57br9vys6fjd_cm6cyrjlg8w0000gn/T/pip-D4XHc0-build
Installing collected packages: PyPubSub
  Running setup.py install for PyPubSub

    unrecognized .svn/entries format in /private/var/folders/2w/57br9vys6fjd_cm6cyrjlg8w0000gn/T/pip-D4XHc0-build
Successfully installed PyPubSub
Cleaning up...


-S

oliver

unread,
Oct 28, 2013, 9:27:49 AM10/28/13
to PyPubSub
that's great news! thx for update
Reply all
Reply to author
Forward
0 new messages