'pip install pyjs' doesn't work #742

Open
glyph opened this Issue Jun 21, 2012 · 18 comments

Comments

Projects
None yet
6 participants

glyph commented Jun 21, 2012

It would be nice if I could just do 'pip install' and have a working environment, but there appear to be several idiosyncratic intermediary build steps that prevent this.

+1 for this!

glyph commented Feb 21, 2013

(It would be nice to get rid of the 'bootstrap.py' stuff so that 'pip install' works equally well with the --user option. Distutils already has things for identifying what directories to put things into.)

Member

anthonyrisinger commented Feb 25, 2013

yes, fixing is pip as much as possible is very close to the top of list; should be some activity here soon.

glyph commented Feb 25, 2013

Great, glad to hear it.

Contributor

duly commented Mar 15, 2014

We look forward to pip install pyjs. Thank you.

glyph commented Mar 16, 2014

Can you break down this task at all? I'm happy just to do some cheerleading but if there's a small PR that I could submit which would make it easier I'm happy to try to work on the code a little.

Contributor

duly commented Mar 16, 2014

Helpful links:
https://pypi.python.org/pypi/pyjs
https://pypi.python.org/pypi/pip

On Sat, Mar 15, 2014 at 8:04 PM, Glyph notifications@github.com wrote:

Can you break down this task at all? I'm happy just to do some
cheerleading but if there's a small PR that I could submit which would make
it easier I'm happy to try to work on the code a little.

Reply to this email directly or view it on GitHubhttps://github.com/pyjs/pyjs/issues/742#issuecomment-37743499
.

Contributor

duly commented Mar 16, 2014

https://github.com/pypa/pip/issues

On Sat, Mar 15, 2014 at 8:13 PM, Duly Corporation duly@duly.co wrote:

Helpful links:
https://pypi.python.org/pypi/pyjs
https://pypi.python.org/pypi/pip

On Sat, Mar 15, 2014 at 8:04 PM, Glyph notifications@github.com wrote:

Can you break down this task at all? I'm happy just to do some
cheerleading but if there's a small PR that I could submit which would make
it easier I'm happy to try to work on the code a little.

Reply to this email directly or view it on GitHubhttps://github.com/pyjs/pyjs/issues/742#issuecomment-37743499
.

Contributor

duly commented Mar 16, 2014

https://pypi.python.org/simple/pyjs/pyjs.org/

HTTP Error 404: Not Found

 Analyzing links from page https://pypi.python.org/simple/pyjs/
    Skipping link https://github.com/pyjs/pyjs.git (from https://pypi.python.org/simple/pyjs/); unknown archive format: .git
 Analyzing links from page https://github.com/pyjs/pyjs
    Skipping link https://github.com/pyjs/pyjs#start-of-content (from https://github.com/pyjs/pyjs); not a file
    Skipping link https://github.com/ (from https://github.com/pyjs/pyjs); not a file
...
Could not parse version from link: https://github.com/pyjs/pyjs/archive/master.zip (from https://github.com/pyjs/pyjs)
--
 Skipping link https://github.com/pyjs/pyjs/blob/master/setup.py (from https://github.com/pyjs/pyjs); unknown archive format: .py
--
 Skipping link http://pyjs.org/ (from https://github.com/pyjs/pyjs); not a file

--

There are a lot of concerns searching for the right file from the sampling of links that pip tries when installing pyjs.
What is the correct and official pyjs pip download link?
Thank you.
Duly Corporation

Contributor

duly commented Mar 16, 2014

Contributor

duly commented Mar 16, 2014

pip install -e git+https://github.com/pyjs/pyjs.git#egg=pyjs

PS > pip install -e git+https://github.com/pyjs/pyjs.git#egg=pyjs
Obtaining pyjs from git+https://github.com/pyjs/pyjs.git#egg=pyjs
  Updating REDACTED\pyjs clone
  Running setup.py egg_info for package pyjs
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "REDACTED\src\pyjs\setup.py", line 7, in <module>
        package_data=dict(setup_pyjstools.package_data.items()+setup_pyjswidgets.package_data.items())
    TypeError: unsupported operand type(s) for +: 'dict_items' and 'dict_items'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

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

  File "REDACTED\src\pyjs\setup.py", line 7, in <module>
    package_data=dict(setup_pyjstools.package_data.items()+setup_pyjswidgets.package_data.items())

TypeError: unsupported operand type(s) for +: 'dict_items' and 'dict_items'

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in REDACTED\src\pyjs

We are still working through the issues with pip install pyjs here at Duly.

Contributor

duly commented Mar 16, 2014

It seems as though our error is due to Python 2to3 migration / compatibility.
http://stackoverflow.com/questions/13361510/typeerror-unsupported-operand-types-for-dict-items-and-dict-items
We will investigate a quick fix.

Contributor

duly commented Mar 16, 2014

We were able to install pyjs with pip with a few modifications to setup.py.
We will send a pull-request to pyjs.
There are a few files missing from pyjs that pip warns are not found.
We will add those files and send a pull-request to pyjs/pyjs.

PS > pip install -v -e git+https://github.com/duly/pyjs.git#egg=pyjs
Obtaining pyjs from git+https://github.com/duly/pyjs.git#egg=pyjs
  Found command 'git' at 'REDACTED\\Git\\cmd\\git.exe'
  https://github.com/duly/pyjs.git
  Clone in REDACTED\src\pyjs exists, and has correct URL (https://github.com/duly/pyjs.git)
  Updating REDACTED\src\pyjs clone
  4dd172b7469917ba64dab659d385390dd1180800 refs/heads/master
  87af7172874e6fccc2c17ce530b819553956a8a8 refs/remotes/origin/HEAD
  87af7172874e6fccc2c17ce530b819553956a8a8 refs/remotes/origin/master
  ade2da99ebe844bf2aedd004dc805c78f9d057f4 refs/tags/0.8
  07f54ad054073187634c49a49e0bb38e95766872 refs/tags/0.8.1a
  Running setup.py egg_info for package pyjs
    running egg_info
    writing pyjs.egg-info\PKG-INFO
    writing entry points to pyjs.egg-info\entry_points.txt
    writing top-level names to pyjs.egg-info\top_level.txt
    writing dependency_links to pyjs.egg-info\dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    package init file 'pyjs\lib\test\__init__.py' not found (or not a regular file)
    package init file 'pyjs\lib_trans\test\__init__.py' not found (or not a regular file)
    package init file 'pyjs\boilerplate\__init__.py' not found (or not a regular file)
    reading manifest file 'pyjs.egg-info\SOURCES.txt'
    writing manifest file 'pyjs.egg-info\SOURCES.txt'
Installing collected packages: pyjs
  Running setup.py develop for pyjs
    running develop
    running egg_info
    writing top-level names to pyjs.egg-info\top_level.txt
    writing pyjs.egg-info\PKG-INFO
    writing entry points to pyjs.egg-info\entry_points.txt
    writing dependency_links to pyjs.egg-info\dependency_links.txt
    warning: manifest_maker: standard file '-c' not found

    package init file 'pyjs\lib\test\__init__.py' not found (or not a regular file)
    package init file 'pyjs\lib_trans\test\__init__.py' not found (or not a regular file)
    package init file 'pyjs\boilerplate\__init__.py' not found (or not a regular file)
    reading manifest file 'pyjs.egg-info\SOURCES.txt'
    writing manifest file 'pyjs.egg-info\SOURCES.txt'
    running build_ext
    Creating REDACTED\python\3.3.2\lib\site-packages\pyjs.egg-link (link to .)
    Adding pyjs 0.8.2 to easy-install.pth file
    Installing pyjscompile-script.py script to REDACTED\python\3.3.2\Scripts
    Installing pyjscompile.exe script to REDACTED\python\3.3.2\Scripts
    Installing pyv8run-script.py script to REDACTED\python\3.3.2\Scripts
    Installing pyv8run.exe script to REDACTED\python\3.3.2\Scripts
    Installing java2py-script.py script to REDACTED\python\3.3.2\Scripts
    Installing java2py.exe script to REDACTED\python\3.3.2\Scripts
    Installing pyjsbuild-script.py script to REDACTED\python\3.3.2\Scripts
    Installing pyjsbuild.exe script to REDACTED\python\3.3.2\Scripts
    Installing pyjscompressor-script.py script to REDACTED\python\3.3.2\Scripts
    Installing pyjscompressor.exe script to REDACTED\python\3.3.2\Scripts
    Installing pyjstest-script.py script to REDACTED\python\3.3.2\Scripts
    Installing pyjstest.exe script to REDACTED\python\3.3.2\Scripts
    Installing pyjampiler-script.py script to REDACTED\python\3.3.2\Scripts
    Installing pyjampiler.exe script to REDACTED\python\3.3.2\Scripts
    Installing mo2json-script.py script to REDACTED\python\3.3.2\Scripts
    Installing mo2json.exe script to REDACTED\python\3.3.2\Scripts

    Installed REDACTED\src\pyjs
Successfully installed pyjs
Cleaning up...
  Removing temporary dir REDACTED\temp\pip_build_REDACTED...

duly referenced this issue Mar 16, 2014

Merged

`pip install pyjs` #819

glyph commented Mar 16, 2014

In order to complete this work and close this issue, someone also needs to run setup.py sdist upload. Have you experimented with setting up Warehouse and uploading to that? That would at least prove that uploading and sdists work well enough :-).

glyph commented Mar 16, 2014

Thanks for moving this issue forward, @duly !

Contributor

duly commented Mar 19, 2014

We are looking into integration with warehouse. Thank you @glyph for the recommendation.

hidewyb commented Jan 6, 2016

I have used user command: pip install git+https://github.com/pyjs/pyjs.git#egg=pyjs to install pyjs but it is not working. The error is as following:
ehc3n j4_6t kfs vigv60

Member

bittner commented Jan 6, 2016

@hidewyb The error message says that git cannot be found. Make sure you have Git installed and it's in your path. Installing from a git repository requires that the repo will first be cloned, hence the git command must be available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment