Kallithea issues archive

Issue #262: Problem with install on Win7

Reported by: Socrates
State: resolved
Created on: 2017-01-06 15:11
Updated on: 2018-01-20 23:28

Description

Hi, when i install like http://kallithea.readthedocs.io/en/latest/installation_win.html on step 7, in the end i have a problem.

Two things: 1. Error on install kallitea: Pip install kallithea (image 1 on doc attachment)

  1. Suposs that it fine, like it say: "Some warnings will appear" then i don't run paster command on step 9 (image 2)

Mi config: Win 7 64 bits Pyhton 2.7.13 (python-2.7.13.msi) tools pywin32-220.win32-py2.7.exe

I would thanks for your help!

Have a nice day

Attachments

imk1.png

imk2.jpg.png

imk3.jpg.png

imk4.jpg.png

imk1_2.jpg.png

imk2_2.jpg.png

imk3_2.jpg.png

Comments

Comment by Andrej Shadura, on 2017-01-06 16:01

If you want to attach an image, please do it normally. Don't attach .doc files. Thanks.

Comment by Socrates, on 2017-01-06 18:49

Comment by Socrates, on 2017-01-06 18:49

Comment by Socrates, on 2017-01-06 18:49

Comment by Socrates, on 2017-01-06 18:49

Comment by Socrates, on 2017-01-06 18:49

Comment by Socrates, on 2017-01-06 18:50

Comment by Socrates, on 2017-01-06 18:50

Comment by Mads Kiilerich, on 2017-01-06 20:30

(It would perhaps be even better to cut'n'paste the actual text from your console. It is inherently hard for us to cut'n'paste from your screenshots into google.)

It looks like a problem in one of Kallithea's dependencies and how they support Windows.

Will pip install PasteScript fail the same way ... or make it work?

Comment by Socrates, on 2017-01-06 20:39

it works. pip install PasteScript

C:\Kallithea\Env\Scripts>pip install PasteScript Collecting PasteScript Downloading PasteScript-2.0.2-py2.py3-none-any.whl (74kB) 100% |################################| 81kB 213kB/s Collecting six (from PasteScript) Downloading six-1.10.0-py2.py3-none-any.whl Collecting Paste>=1.3 (from PasteScript) Downloading Paste-2.0.3-py2-none-any.whl (625kB) 100% |################################| 634kB 297kB/s Collecting PasteDeploy (from PasteScript) Downloading PasteDeploy-1.5.2-py2.py3-none-any.whl Installing collected packages: six, Paste, PasteDeploy, PasteScript Successfully installed Paste-2.0.3 PasteDeploy-1.5.2 PasteScript-2.0.2 six-1.10.0

Comment by Mads Kiilerich, on 2017-01-08 23:25

Very weird. Apparently not directly related to Kallithea, and apparently Windows only.

Comment by Socrates, on 2017-01-09 13:40

i tried on another PC, but same problem.

Comment by Mads Kiilerich, on 2017-01-09 13:53

Then you or anyone else with Windows can debug it ;-)

Comment by domruf, on 2017-01-09 15:08

And Kallithea works now?

Comment by Socrates, on 2017-01-09 15:33

no, i wrote that i had the same problem.

Comment by Mads Kiilerich, on 2017-01-09 15:42

No, you wrote "it works" ... and that the problem could be reproduced on another PC.

But "it works" was a response to "pip install PasteScript" and not to whether it also would "make it work"?

Comment by Socrates, on 2017-01-09 15:45

ok, i was response to "pip install PasteScript"

The problem with install is the same on another PC with Win7

Comment by Mads Kiilerich, on 2017-01-09 15:49

So "pip install kallithea" fails exactly the same way after doing that?

Comment by Socrates, on 2017-01-09 15:51

on step 7 when execute "pip install kallithea"

http://kallithea.readthedocs.io/en/latest/installation_win.html

Comment by domruf, on 2017-01-12 14:57

This is very confusing. So you ran pip install PasteScript and then pip install kallithea !?

pip install PasteScript succeeded but pip install kallithea still failed with a error regarding PasteScript?

Comment by Socrates, on 2017-01-12 15:03

Yes, i ran first "pip install PasteScript" and then "pip install kallithea". i follow the steps on url.

pip install PasteScript succeeded pip install kallithea fail, and the error is that i attachment on images.

Comment by Mads Kiilerich, on 2017-01-12 15:06

@domruf I guess it could be related to how some dependencies for some reason are installed in .eggs/ and not in the (virtual) env ... but I have no idea why and why it fails on windows (assuming it really only is seen on windows)

(Hmm ... perhaps ... I guess .eggs is used by setuptools, and it is perhaps triggered because setup_requires in setup.py ...)

Comment by Oleg Gusyev, on 2017-03-10 18:07

I have same (or similar) issue installing Kallithea on several different Windows machines (2008R2, Win10). Tried all suggestions I found on internet, neither worked. There is some flaw in install docs I'd guess. The error looks like : Command "python setup.py egg_info" failed with error code 1 in ...{temp folder}

Comment by Oleg Gusyev, on 2017-03-10 18:25

More details: looks like it failed on this call because one parameter is missing?:
File "c:\kallithea\env\lib\site-packages\packaging\requirements.py", line 59, in <module> MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker") TypeError: call() takes exactly 2 arguments (1 given)

Comment by Oleg Gusyev, on 2017-03-10 18:54

Solved it! I followed an advice from here - https://github.com/nylas/sync-engine/issues/432 and then deleted requirements.pyc

In file /usr/local/lib/python2.7/dist-packages/packaging/requirements.py, line 59 is this one:
MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker")
I changed it to

MARKER_EXPR = originalTextFor(MARKER_EXPR(""))("marker")
And that was it - everything went through after that.

Comment by Mads Kiilerich, on 2017-03-10 21:34

@OlegVtech Where do you find python setup.py egg_info in the Kallithea documention?

But yes, it sounds like the same problem. Are you fully updated with pip install --upgrade?

Comment by Mads Kiilerich, on 2017-05-29 00:19

This problem has been resolved on the stable branch (but not in an official release yet) - can you confirm that?

Comment by Thomas De Schampheleire, on 2018-01-20 21:09

Problem assumed to be solved, please reopen if it's not the case.

Comment by Mads Kiilerich, on 2018-01-20 23:28

Yes - should be included in 0.3.3