cannot set up Kallithea in Ubuntu 16.04

2020-08-13 Thread Uwe Brauer


Hi 

I managed to install kallithea using pip.
However the last step in the setup, namely 
sudo kallithea-cli front-end-build

Failed:

,
| Running 'npm install' to install front-end dependencies from package.json
| Building CSS styling based on Bootstrap
| /usr/bin/env: ‘node’: No such file or directory
| Traceback (most recent call last):
|   File "/usr/local/bin/kallithea-cli", line 10, in 
| sys.exit(cli())
|   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 764, in 
__call__
| return self.main(*args, **kwargs)
|   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 717, in 
main
| rv = self.invoke(ctx)
|   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1137, in 
invoke
| return _process_result(sub_ctx.command.invoke(sub_ctx))
|   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 956, in 
invoke
| return ctx.invoke(self.callback, **ctx.params)
|   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 555, in 
invoke
| return callback(*args, **kwargs)
|   File 
"/usr/local/lib/python2.7/dist-packages/kallithea/bin/kallithea_cli_front_end.py",
 line 64, in front_end_build
| cwd=front_end_dir, shell=kallithea.is_windows)
|   File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
| raise CalledProcessError(retcode, cmd)
| 
| subprocess.CalledProcessError: Command
| 
'['/usr/local/lib/python2.7/dist-packages/kallithea/front-end/node_modules/.bin/lessc',
| '--source-map', '--source-map-less-inline',
| '/usr/local/lib/python2.7/dist-packages/kallithea/front-end/main.less',
| '/usr/local/lib/python2.7/dist-packages/kallithea/public/css/style.css']'
| returned non-zero exit status 127
| 
| 
`

What can I do?

Regards

Uwe Brauer 
___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


Re: cannot set up Kallithea in Ubuntu 16.04

2020-08-13 Thread Thomas De Schampheleire
Hi Uwe Brauer,

The 'node' program cannot be found. Kallithea requires the 'npm' package to
be installed, which should provide node. You should be able to use apt-get
to install it.

Best regards,
Thomas

On Thu, Aug 13, 2020, 09:24 Uwe Brauer  wrote:

>
>
> Hi
>
> I managed to install kallithea using pip.
> However the last step in the setup, namely
> sudo kallithea-cli front-end-build
>
> Failed:
>
> ,
> | Running 'npm install' to install front-end dependencies from package.json
> | Building CSS styling based on Bootstrap
> | /usr/bin/env: ‘node’: No such file or directory
> | Traceback (most recent call last):
> |   File "/usr/local/bin/kallithea-cli", line 10, in 
> | sys.exit(cli())
> |   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 764,
> in __call__
> | return self.main(*args, **kwargs)
> |   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 717,
> in main
> | rv = self.invoke(ctx)
> |   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line
> 1137, in invoke
> | return _process_result(sub_ctx.command.invoke(sub_ctx))
> |   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 956,
> in invoke
> | return ctx.invoke(self.callback, **ctx.params)
> |   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 555,
> in invoke
> | return callback(*args, **kwargs)
> |   File
> "/usr/local/lib/python2.7/dist-packages/kallithea/bin/kallithea_cli_front_end.py",
> line 64, in front_end_build
> | cwd=front_end_dir, shell=kallithea.is_windows)
> |   File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
> | raise CalledProcessError(retcode, cmd)
> |
> | subprocess.CalledProcessError: Command
> |
> '['/usr/local/lib/python2.7/dist-packages/kallithea/front-end/node_modules/.bin/lessc',
> | '--source-map', '--source-map-less-inline',
> | '/usr/local/lib/python2.7/dist-packages/kallithea/front-end/main.less',
> | '/usr/local/lib/python2.7/dist-packages/kallithea/public/css/style.css']'
> | returned non-zero exit status 127
> |
> |
> `
>
> What can I do?
>
> Regards
>
> Uwe Brauer
> ___
> kallithea-general mailing list
> kallithea-general@sfconservancy.org
> https://lists.sfconservancy.org/mailman/listinfo/kallithea-general
>
___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


Re: cannot set up Kallithea in Ubuntu 16.04

2020-08-13 Thread Uwe Brauer
>>> "TDS" == Thomas De Schampheleire  writes:
Hi Thomas

> Hi Uwe Brauer,
> The 'node' program cannot be found. Kallithea requires the 'npm' package to
> be installed, which should provide node. You should be able to use apt-get
> to install it.

This is what I thought, but 


sudo apt-get install npm
[sudo] password for oub:
Reading package lists... Done
Building dependency tree
Reading state information... Done
npm is already the newest version (3.5.2-0ubuntu4).


smime.p7s
Description: S/MIME cryptographic signature
___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


Re: cannot set up Kallithea in Ubuntu 16.04

2020-08-13 Thread Uwe Brauer
>>> "TDS" == Thomas De Schampheleire  writes:

> Hi Uwe Brauer,
> The 'node' program cannot be found. Kallithea requires the 'npm' package to
> be installed, which should provide node. You should be able to use apt-get
> to install it.

I also searched 
https://packages.ubuntu.com/search?searchon=contents&keywords=node&mode=exactfilename&suite=eoan&arch=any


| File  | Packages |
| /usr/bin/node | nodejs   |

But this is not true

It is /usr/bin/nodejs

Shall I put a link?


smime.p7s
Description: S/MIME cryptographic signature
___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


Re: cannot set up Kallithea in Ubuntu 16.04

2020-08-13 Thread Thomas De Schampheleire
Hi Uwe,

On Thu, Aug 13, 2020, 10:11 Uwe Brauer  wrote:

> >>> "TDS" == Thomas De Schampheleire  writes:
>
> > Hi Uwe Brauer,
> > The 'node' program cannot be found. Kallithea requires the 'npm' package
> to
> > be installed, which should provide node. You should be able to use
> apt-get
> > to install it.
>
> I also searched
>
> https://packages.ubuntu.com/search?searchon=contents&keywords=node&mode=exactfilename&suite=eoan&arch=any
>
>
> | File  | Packages |
> | /usr/bin/node | nodejs   |
>
> But this is not true
>
> It is /usr/bin/nodejs
>

It seems this is version dependent. The nodejs package on later versions
indeed provides both node and nodejs.

I don't know if there is a non-manual way in ubuntu 16.04 to get the node
program. I couldn't directly find it. I guess the manual link should work
too.

Best regards
Thomas
___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


Re: cannot set up Kallithea in Ubuntu 16.04

2020-08-13 Thread Uwe Brauer

   > Hi Uwe,
   > On Thu, Aug 13, 2020, 10:11 Uwe Brauer  wrote:


   > It seems this is version dependent. The nodejs package on later versions
   > indeed provides both node and nodejs.

   > I don't know if there is a non-manual way in ubuntu 16.04 to get the node
   > program. I couldn't directly find it. I guess the manual link should work
   > too.

I tried this. Unfortunately I obtain a different error.

,
| 
|at Object.Module._extensions..js (module.js:417:10)
| Traceback (most recent call last):
|   File "/usr/local/bin/kallithea-cli", line 10, in 
| sys.exit(cli())
|   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 764, in 
__call__
| return self.main(*args, **kwargs)
|   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 717, in 
main
| rv = self.invoke(ctx)
|   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1137, in 
invoke
| return _process_result(sub_ctx.command.invoke(sub_ctx))
|   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 956, in 
invoke
| return ctx.invoke(self.callback, **ctx.params)
|   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 555, in 
invoke
| return callback(*args, **kwargs)
|   File 
"/usr/local/lib/python2.7/dist-packages/kallithea/bin/kallithea_cli_front_end.py",
 line 97, in front_end_build
| cwd=front_end_dir, shell=kallithea.is_windows)
|   File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
| raise CalledProcessError(retcode, cmd)
| 
| subprocess.CalledProcessError: Command
| 
'['/usr/local/lib/python2.7/dist-packages/kallithea/front-end/node_modules/.bin/license-checker',
| '--json', '--out',
| 
'/usr/local/lib/python2.7/dist-packages/kallithea/front-end/tmp/licensing.json']'
| returned non-zero exit status 1
`


smime.p7s
Description: S/MIME cryptographic signature
___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


Re: cannot set up Kallithea in Ubuntu 16.04

2020-08-13 Thread Eivind Tagseth


Den 13.08.2020 10:07, skrev Uwe Brauer:

Hi Uwe Brauer,
The 'node' program cannot be found. Kallithea requires the 'npm' package to
be installed, which should provide node. You should be able to use apt-get
to install it.

This is what I thought, but



I think earlier versions of ubuntu installed node as 'nodejs'.  I 
created a manual symlink to overcome this.




Eivind

___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


Re: cannot set up Kallithea in Ubuntu 16.04

2020-08-13 Thread Mads Kiilerich

On 8/13/20 10:39 AM, Uwe Brauer wrote:

> Hi Uwe,
> On Thu, Aug 13, 2020, 10:11 Uwe Brauer  wrote:


> It seems this is version dependent. The nodejs package on later versions
> indeed provides both node and nodejs.

> I don't know if there is a non-manual way in ubuntu 16.04 to get the node
> program. I couldn't directly find it. I guess the manual link should work
> too.



We can improve the documentation to say something like


Prepare front-end files
^^^

Finally, the front-end files must be prepared. This requires ``npm`` 
version 6
or later, which needs ``node.js`` (version 12 or later) available as 
``node``.

Prepare the front-end by running::

    kallithea-cli front-end-build

This will invoke ``npm`` to install some tools, which then are invoked 
with
``node``. Installation of these dependencies varies between operating 
systems

and distributions.


but I don't know if we should go into details on how to do it on each OS.

Googling for "ubuntu /usr/bin/env: ‘node’: No such file or directory" 
gives some helpful answers - including https://askubuntu.com/a/1053068




I tried this. Unfortunately I obtain a different error.

,
|
|at Object.Module._extensions..js (module.js:417:10)
| Traceback (most recent call last):
|   File "/usr/local/bin/kallithea-cli", line 10, in 
| sys.exit(cli())
|   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 764, in 
__call__
| return self.main(*args, **kwargs)
|   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 717, in 
main
| rv = self.invoke(ctx)
|   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1137, in 
invoke
| return _process_result(sub_ctx.command.invoke(sub_ctx))
|   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 956, in 
invoke
| return ctx.invoke(self.callback, **ctx.params)
|   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 555, in 
invoke
| return callback(*args, **kwargs)
|   File 
"/usr/local/lib/python2.7/dist-packages/kallithea/bin/kallithea_cli_front_end.py",
 line 97, in front_end_build
| cwd=front_end_dir, shell=kallithea.is_windows)
|   File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
| raise CalledProcessError(retcode, cmd)
|
| subprocess.CalledProcessError: Command
| 
'['/usr/local/lib/python2.7/dist-packages/kallithea/front-end/node_modules/.bin/license-checker',
| '--json', '--out',
| 
'/usr/local/lib/python2.7/dist-packages/kallithea/front-end/tmp/licensing.json']'
| returned non-zero exit status 1
`



This stacktrace shows Python catching that license-checker failed. Was 
there any output before this, after "Generating LICENSES.txt"?


I guess this perhaps could be caused by partial installation from 
previous attempts. Try to delete kallithea/front-end/node_modules/ and 
try again.


/Mads


___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


Re: cannot set up Kallithea in Ubuntu 16.04

2020-08-13 Thread Uwe Brauer

   > On 8/13/20 10:39 AM, Uwe Brauer wrote:


   > We can improve the documentation to say something like


   > but I don't know if we should go into details on how to do it on each OS.

   > Googling for "ubuntu /usr/bin/env: ‘node’: No such file or directory"
   > gives some helpful answers - including https://askubuntu.com/a/1053068




   > This stacktrace shows Python catching that license-checker failed. Was
   > there any output before this, after "Generating LICENSES.txt"?

   > I guess this perhaps could be caused by partial installation from
   > previous attempts. Try to delete kallithea/front-end/node_modules/ and 
   > try again.

Contrary to my previous email, pip installed kallithea system wide in 
/usr/local

So I deleted this directory and run the command again

This is the error
,
| 
| Generating LICENSES.txt
| 
/usr/local/lib/python2.7/dist-packages/kallithea/front-end/node_modules/npm-normalize-package-bin/index.js:3
| const {join, basename} = require('path')
|   ^
| 
| SyntaxError: Unexpected token {
| at exports.runInThisContext (vm.js:53:16)
| at Module._compile (module.js:374:25)
| at Object.Module._extensions..js (module.js:417:10)
| at Module.load (module.js:344:32)
| at Function.Module._load (module.js:301:12)
| at Module.require (module.js:354:17)
| at require (internal/module.js:12:17)
| at Object. 
(/usr/local/lib/python2.7/dist-packages/kallithea/front-end/node_modules/read-package-json/read-json.js:14:27)
| at Module._compile (module.js:410:26)
| at Object.Module._extensions..js (module.js:417:10)
| Traceback (most recent call last):
|   File "/usr/local/bin/kallithea-cli", line 10, in 
| sys.exit(cli())
|   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 764, in 
__call__
| return self.main(*args, **kwargs)
|   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 717, in 
main
| rv = self.invoke(ctx)
|   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1137, in 
invoke
| return _process_result(sub_ctx.command.invoke(sub_ctx))
|   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 956, in 
invoke
| return ctx.invoke(self.callback, **ctx.params)
|   File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 555, in 
invoke
| return callback(*args, **kwargs)
|   File 
"/usr/local/lib/python2.7/dist-packages/kallithea/bin/kallithea_cli_front_end.py",
 line 97, in front_end_build
| cwd=front_end_dir, shell=kallithea.is_windows)
|   File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
| raise CalledProcessError(retcode, cmd)
| 
| subprocess.CalledProcessError: Command
| 
'['/usr/local/lib/python2.7/dist-packages/kallithea/front-end/node_modules/.bin/license-checker',
| '--json', '--out',
| 
'/usr/local/lib/python2.7/dist-packages/kallithea/front-end/tmp/licensing.json']'
| returned non-zero exit status 1 oub@Utnapischtim:~
`


smime.p7s
Description: S/MIME cryptographic signature
___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


Re: cannot set up Kallithea in Ubuntu 16.04

2020-08-13 Thread Uwe Brauer

> On 8/13/20 10:39 AM, Uwe Brauer wrote:


> We can improve the documentation to say something like


> but I don't know if we should go into details on how to do it on each OS.

> Googling for "ubuntu /usr/bin/env: ‘node’: No such file or directory"
> gives some helpful answers - including https://askubuntu.com/a/1053068




> This stacktrace shows Python catching that license-checker failed. Was
> there any output before this, after "Generating LICENSES.txt"?

> I guess this perhaps could be caused by partial installation from
> previous attempts. Try to delete kallithea/front-end/node_modules/ and 
> try again.

Thanks, but this directory does not exist

I have 

/home/oub/src/kallithea

Which I cloned inside there is again the directory 
kallithea and front-end just contains
kallithea-diff.less
kallithea-labels.less
kallithea-select2.less
kallithea-variables.less
main.less
package.json
package-lock.json
style.less

However I installed kallithea via pip 

pip install --user kallithea

But I cannot find anything in .local

so I am confused now. What do I miss


smime.p7s
Description: S/MIME cryptographic signature
___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


Re: cannot set up Kallithea in Ubuntu 16.04

2020-08-13 Thread Mads Kiilerich

On 8/13/20 1:35 PM, Uwe Brauer wrote:



I guess this perhaps could be caused by partial installation from
previous attempts. Try to delete kallithea/front-end/node_modules/ and
try again.

Thanks, but this directory does not exist


node_modules is created and updated when running `kallithea-cli 
front-end-build`. If you started over and already don't have it, there 
is nothing to delete.



/Mads


___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


Re: cannot set up Kallithea in Ubuntu 16.04

2020-08-13 Thread Mads Kiilerich

On 8/13/20 1:47 PM, Uwe Brauer wrote:

> On 8/13/20 10:39 AM, Uwe Brauer wrote:


> We can improve the documentation to say something like


> but I don't know if we should go into details on how to do it on each OS.

> Googling for "ubuntu /usr/bin/env: ‘node’: No such file or directory"
> gives some helpful answers - including https://askubuntu.com/a/1053068




> This stacktrace shows Python catching that license-checker failed. Was
> there any output before this, after "Generating LICENSES.txt"?

> I guess this perhaps could be caused by partial installation from
> previous attempts. Try to delete kallithea/front-end/node_modules/ and
> try again.

Contrary to my previous email, pip installed kallithea system wide in
/usr/local



Oh. That means it must have been installed as root. I guess we should 
clarify documentation to say something like:


Kallithea should not be installed or run as root. It is generally 
recommended

to create a ``kallithea`` user (and perhaps a corresponding group). The
hosted repositories will live in the file system as the user Kallithea is
running as. For some setups, it might be most convenient to use the 
web server
user, but web servers generally allow web applications to run as other 
users.


pip and npm running as root might leave bits and pieces all over the 
system, mixed up with package manager files.



So I deleted this directory and run the command again

This is the error
,
|
| Generating LICENSES.txt
| 
/usr/local/lib/python2.7/dist-packages/kallithea/front-end/node_modules/npm-normalize-package-bin/index.js:3
| const {join, basename} = require('path')
|   ^
|
| SyntaxError: Unexpected token {



A npm-normalize-package-bin in that place looks like your system npm 
somehow was used to install another npm inside node_modules. And 
apparently your 'node' uses an old javascript version that doesn't 
support this installed npm.


-

It seems like your installation somehow got off track and you thus got 
on a bumpy road. At this point I would suggest reinstalling Ubuntu (to 
get an easy cleanup after the things done as root) and start over, 
keeping records of which choices and commands you use - that will make 
it easier to help if you should encounter problems again.


/Mads


___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


Re: cannot set up Kallithea in Ubuntu 16.04

2020-08-13 Thread Uwe Brauer

   > On 8/13/20 1:47 PM, Uwe Brauer wrote:


   > Oh. That means it must have been installed as root. I guess we should
   > clarify documentation to say something like:


   > pip and npm running as root might leave bits and pieces all over the
   > system, mixed up with package manager files.



   > A npm-normalize-package-bin in that place looks like your system npm
   > somehow was used to install another npm inside node_modules. And 
   > apparently your 'node' uses an old javascript version that doesn't
   > support this installed npm.

   > -

   > It seems like your installation somehow got off track and you thus got
   > on a bumpy road. At this point I would suggest reinstalling Ubuntu (to 
   > get an easy cleanup after the things done as root) and start over,
   > keeping records of which choices and commands you use - that will make 
   > it easier to help if you should encounter problems again.

Right now I cannot reinstall (or better said upgrade to 20.04) my Ubuntu
since I cannot backup my home directory 

My last attempt to sort out this mess.

sudo -H pip uninstall kallisthea

And off it is from /usr/local/lib/python2.7
pip install --user kallithea

Gives me now 

Using cached Kallithea-0.6.1.tar.gz (4.3 MB)
,
| 
| ERROR: Command errored out with exit status 1:
|  command: /usr/bin/python -c 'import sys, setuptools, tokenize;
|  sys.argv[0] = '"'"'/tmp/pip-install-MIEe7A/kallithea/setup.py'"'"';
|  
__file__='"'"'/tmp/pip-install-MIEe7A/kallithea/setup.py'"'"';f=getattr(tokenize,
|  '"'"'open'"'"',
|  open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
|  '"'"'\n'"'"');f.close();exec(compile(code, __file__,
|  '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-zO3AGs 
|  cwd: /tmp/pip-install-MIEe7A/kallithea/
| Complete output (5 lines):
| Traceback (most recent call last):
|   File "", line 1, in 
|   File "/tmp/pip-install-MIEe7A/kallithea/setup.py", line 13, in 
| raise Exception('Kallithea requires Python 3.6 or later')
| Exception: Kallithea requires Python 3.6 or later
| 
| ERROR: Command errored out with exit status 1: python setup.py egg_info Check 
the logs for full command output.
`


And Ubuntu 16.04 comes with python 3.5 so end of game, maybe I could try
to install it from source

I have a question about the documentation but I will open a new thread.

thanks

Uwe 



smime.p7s
Description: S/MIME cryptographic signature
___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


how to install kallithea from source

2020-08-13 Thread Uwe Brauer

Hi 

Since I cannot install kallitea via pip (my python version in Ubuntu
16.04 is too old) I thought to give the installation from source a try.


The documentation in 
https://kallithea.readthedocs.io/en/stable/installation.html

Reads

,
| hg clone https://kallithea-scm.org/repos/kallithea -u stable
| cd kallithea
| python3 -m venv ../kallithea-venv
| . ../kallithea-venv/bin/activate
| pip install --upgrade pip setuptools
| pip install --upgrade -e .
| python3 setup.py compile_catalog   # for translation of the UI
`

I don't understand the lines

 python3 -m venv ../kallithea-venv
 . ../kallithea-venv/bin/activate

Is this supposed to be one line?
What does the . At the beginning of the second line supposed to be?

Regards

Uwe Brauer 

___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


Re: cannot set up Kallithea in Ubuntu 16.04

2020-08-13 Thread Mads Kiilerich

On 8/13/20 5:42 PM, Uwe Brauer wrote:

> It seems like your installation somehow got off track and you thus got
> on a bumpy road. At this point I would suggest reinstalling Ubuntu (to
> get an easy cleanup after the things done as root) and start over,
> keeping records of which choices and commands you use - that will make
> it easier to help if you should encounter problems again.

Right now I cannot reinstall (or better said upgrade to 20.04) my Ubuntu
since I cannot backup my home directory



That sounds like other and severe problems. It would perhaps be better 
to fix that first.




My last attempt to sort out this mess.

sudo -H pip uninstall kallisthea

And off it is from /usr/local/lib/python2.7
pip install --user kallithea

Gives me now

Using cached Kallithea-0.6.1.tar.gz (4.3 MB)
,
|
| ERROR: Command errored out with exit status 1:
|  command: /usr/bin/python -c 'import sys, setuptools, tokenize;
|  sys.argv[0] = '"'"'/tmp/pip-install-MIEe7A/kallithea/setup.py'"'"';
|  
__file__='"'"'/tmp/pip-install-MIEe7A/kallithea/setup.py'"'"';f=getattr(tokenize,
|  '"'"'open'"'"',
|  open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
|  '"'"'\n'"'"');f.close();exec(compile(code, __file__,
|  '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-zO3AGs
|  cwd: /tmp/pip-install-MIEe7A/kallithea/
| Complete output (5 lines):
| Traceback (most recent call last):
|   File "", line 1, in 
|   File "/tmp/pip-install-MIEe7A/kallithea/setup.py", line 13, in 
| raise Exception('Kallithea requires Python 3.6 or later')
| Exception: Kallithea requires Python 3.6 or later
| 
| ERROR: Command errored out with exit status 1: python setup.py egg_info Check 
the logs for full command output.
`


And Ubuntu 16.04 comes with python 3.5 so end of game, maybe I could try
to install it from source



We don't know how you installed Kallithea before, but you must have been 
using a py3 pip. Weird it doesn't pick that one up now. Something weird 
is going on.


It seems like you ended up using the last "Installing a released version 
without virtualenv" options on 
https://kallithea.readthedocs.io/en/stable/installation.html . I had 
forgotten we mention these in the documentation. That doesn't get much 
testing. A Kallithea specific virtualenv has the advantage of keeping 
everything installed for Kallithea in one place, separate from things 
that might be installed for other reasons.


/Mads
___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


Re: how to install kallithea from source

2020-08-13 Thread Thomas De Schampheleire
Hi Uwe,

On Thu, Aug 13, 2020, 17:50 Uwe Brauer  wrote:

>
> Hi
>
> Since I cannot install kallitea via pip (my python version in Ubuntu
> 16.04 is too old) I thought to give the installation from source a try.
>
>
> The documentation in
> https://kallithea.readthedocs.io/en/stable/installation.html
>
> Reads
>
> ,
> | hg clone https://kallithea-scm.org/repos/kallithea -u stable
> | cd kallithea
> | python3 -m venv ../kallithea-venv
> | . ../kallithea-venv/bin/activate
> | pip install --upgrade pip setuptools
> | pip install --upgrade -e .
> | python3 setup.py compile_catalog   # for translation of the UI
> `
>
> I don't understand the lines
>
>  python3 -m venv ../kallithea-venv
>  . ../kallithea-venv/bin/activate
>
> Is this supposed to be one line?
> What does the . At the beginning of the second line supposed to be?
>

The '.' is an alias to the 'source' shell command. It reads and executes
the file provided as arguments.
See section "Shell Builtin Commands" at:
https://linux.die.net/man/1/bash

The 'activate' script is provided by virtualenv/venv and sets certain
environment variables, like PATH to make sure the right python executable
and libraries are used.
This would not be possible of the script were directly executed, as opposed
to source'ing it, because environment variables set by a program or script
do not impact its parent (shell) process, only the program/script itself
and its children.

Note that virtualenv/venv will use the python3 found in PATH, so if you
only have python 3.5 you will still not be able to install kallithea.
If you can install python 3 6 or later in another way, you can make sure to
call that python executable instead of 'python3', e.g

python3.6 -m venv ../kallithea-venv

There exist ways to install a specific python version as a normal user,
e.g. with pyenv (https://github.com/pyenv/pyenv) or other similar tools.
You could also install a python version from source manually.

Best regards,
Thomas
___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


Re: how to install kallithea from source

2020-08-13 Thread Thomas De Schampheleire
(explicitly address Uwe)

On Thu, Aug 13, 2020, 18:16 Thomas De Schampheleire <
patrickdeping...@gmail.com> wrote:

> Hi Uwe,
>
> On Thu, Aug 13, 2020, 17:50 Uwe Brauer  wrote:
>
>>
>> Hi
>>
>> Since I cannot install kallitea via pip (my python version in Ubuntu
>> 16.04 is too old) I thought to give the installation from source a try.
>>
>>
>> The documentation in
>> https://kallithea.readthedocs.io/en/stable/installation.html
>>
>> Reads
>>
>> ,
>> | hg clone https://kallithea-scm.org/repos/kallithea -u stable
>> | cd kallithea
>> | python3 -m venv ../kallithea-venv
>> | . ../kallithea-venv/bin/activate
>> | pip install --upgrade pip setuptools
>> | pip install --upgrade -e .
>> | python3 setup.py compile_catalog   # for translation of the UI
>> `
>>
>> I don't understand the lines
>>
>>  python3 -m venv ../kallithea-venv
>>  . ../kallithea-venv/bin/activate
>>
>> Is this supposed to be one line?
>> What does the . At the beginning of the second line supposed to be?
>>
>
> The '.' is an alias to the 'source' shell command. It reads and executes
> the file provided as arguments.
> See section "Shell Builtin Commands" at:
> https://linux.die.net/man/1/bash
>
> The 'activate' script is provided by virtualenv/venv and sets certain
> environment variables, like PATH to make sure the right python executable
> and libraries are used.
> This would not be possible of the script were directly executed, as
> opposed to source'ing it, because environment variables set by a program or
> script do not impact its parent (shell) process, only the program/script
> itself and its children.
>
> Note that virtualenv/venv will use the python3 found in PATH, so if you
> only have python 3.5 you will still not be able to install kallithea.
> If you can install python 3 6 or later in another way, you can make sure
> to call that python executable instead of 'python3', e.g
>
> python3.6 -m venv ../kallithea-venv
>
> There exist ways to install a specific python version as a normal user,
> e.g. with pyenv (https://github.com/pyenv/pyenv) or other similar tools.
> You could also install a python version from source manually.
>
> Best regards,
> Thomas
>
___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


Re: how to install kallithea from source

2020-08-13 Thread Mads Kiilerich

On 8/13/20 5:45 PM, Uwe Brauer wrote:

Hi

Since I cannot install kallitea via pip (my python version in Ubuntu
16.04 is too old) I thought to give the installation from source a try.


The documentation in
https://kallithea.readthedocs.io/en/stable/installation.html

Reads

,
| hg clone https://kallithea-scm.org/repos/kallithea -u stable
| cd kallithea
| python3 -m venv ../kallithea-venv
| . ../kallithea-venv/bin/activate
| pip install --upgrade pip setuptools
| pip install --upgrade -e .
| python3 setup.py compile_catalog   # for translation of the UI
`

I don't understand the lines

  python3 -m venv ../kallithea-venv
  . ../kallithea-venv/bin/activate

Is this supposed to be one line?
What does the . At the beginning of the second line supposed to be?


No, that is two separate commands that can be run as written.

`.` is a `sh` command for sourcing another file. In recent derivates 
like bash it can also be invoked as `source`. See `help .` and `help 
source` and 
https://docs.python.org/3/tutorial/venv.html#creating-virtual-environments 
(and https://kallithea-scm.org/repos/kallithea/changeset/855ba1f07aeb ).


/Mads



/Mads

___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


Re: cannot set up Kallithea in Ubuntu 16.04

2020-08-13 Thread Uwe Brauer
>>> "MK" == Mads Kiilerich  
>>> writes:

> On 8/13/20 5:42 PM, Uwe Brauer wrote:
>> > It seems like your installation somehow got off track and you thus got
>> > on a bumpy road. At this point I would suggest reinstalling Ubuntu (to
>> > get an easy cleanup after the things done as root) and start over,
>> > keeping records of which choices and commands you use - that will make
>> > it easier to help if you should encounter problems again.
>> 
>> Right now I cannot reinstall (or better said upgrade to 20.04) my Ubuntu
>> since I cannot backup my home directory


> That sounds like other and severe problems. It would perhaps be better
> to fix that first.

Oh well what I meant is I don't have a backup medium with me to save my
home directory first.

>> My last attempt to sort out this mess.
>> 
>> sudo -H pip uninstall kallisthea
>> 
>> And off it is from /usr/local/lib/python2.7
>> pip install --user kallithea
>> 
>> Gives me now
>> 
>> Using cached Kallithea-0.6.1.tar.gz (4.3 MB)
>> ,
>> |
>> | ERROR: Command errored out with exit status 1:
>> |  command: /usr/bin/python -c 'import sys, setuptools, tokenize;
>> |  sys.argv[0] = '"'"'/tmp/pip-install-MIEe7A/kallithea/setup.py'"'"';
>> |  
>> __file__='"'"'/tmp/pip-install-MIEe7A/kallithea/setup.py'"'"';f=getattr(tokenize,
>> |  '"'"'open'"'"',
>> |  open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
>> |  '"'"'\n'"'"');f.close();exec(compile(code, __file__,
>> |  '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-zO3AGs
>> |  cwd: /tmp/pip-install-MIEe7A/kallithea/
>> | Complete output (5 lines):
>> | Traceback (most recent call last):
>> |   File "", line 1, in 
>> |   File "/tmp/pip-install-MIEe7A/kallithea/setup.py", line 13, in 
>> 
>> | raise Exception('Kallithea requires Python 3.6 or later')
>> | Exception: Kallithea requires Python 3.6 or later
>> | 
>> | ERROR: Command errored out with exit status 1: python setup.py egg_info 
>> Check the logs for full command output.
>> `
>> 
>> 
>> And Ubuntu 16.04 comes with python 3.5 so end of game, maybe I could try
>> to install it from source


> We don't know how you installed Kallithea before, but you must have
> been using a py3 pip. Weird it doesn't pick that one up now. Something
> weird is going on.

> It seems like you ended up using the last "Installing a released
> version without virtualenv" options on 
> https://kallithea.readthedocs.io/en/stable/installation.html . I had
> forgotten we mention these in the documentation. That doesn't get much 
> testing. A Kallithea specific virtualenv has the advantage of keeping
> everything installed for Kallithea in one place, separate from things 
> that might be installed for other reasons.

Ok, so the question is how can I install a release *with* virtualenv
using pip?

I am really grateful for all your support and sorry to nag so much.

The point is I want to do some testing for my university in order to
convince them to install kallithea (or sorry heptapod) as a sever for
collaboration.

Uwe 


smime.p7s
Description: S/MIME cryptographic signature
___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


Re: how to install kallithea from source

2020-08-13 Thread Uwe Brauer

   > Hi Uwe,
   > On Thu, Aug 13, 2020, 17:50 Uwe Brauer 
 wrote:


   > The '.' is an alias to the 'source' shell command. It reads and executes
   > the file provided as arguments.
   > See section "Shell Builtin Commands" at:
   > https://linux.die.net/man/1/bash

Ah this is a bash thing, I have used only tcsh all my life and haven't
come across that. 


   > The 'activate' script is provided by virtualenv/venv and sets certain
   > environment variables, like PATH to make sure the right python executable
   > and libraries are used.
   > This would not be possible of the script were directly executed, as opposed
   > to source'ing it, because environment variables set by a program or script
   > do not impact its parent (shell) process, only the program/script itself
   > and its children.

   > Note that virtualenv/venv will use the python3 found in PATH, so if you
   > only have python 3.5 you will still not be able to install kallithea.
   > If you can install python 3 6 or later in another way, you can make sure to
   > call that python executable instead of 'python3', e.g

   > python3.6 -m venv ../kallithea-venv

   > There exist ways to install a specific python version as a normal user,
   > e.g. with pyenv (https://github.com/pyenv/pyenv) or other similar tools.
   > You could also install a python version from source manually.

Yeah, but I think at this point Mads is most likely right, it is time to
say good by to Ubuntu 16.04 and  install 20.04. I am afraid to screw up
too many things if I have another python version in my machine

But I still don't understand


cd kallithea  #OK
python3 -m venv ../kallithea-venv #OK
. ../kallithea-venv/bin/activate #OK
pip install --upgrade pip setuptools # this is system wide
pip install --upgrade -e . # this is system wide
python3 setup.py compile_catalog   # for translation of the UI

Now I get 
pip install --upgrade -e . # this is system wide
ERROR: File "setup.py" not found. Directory cannot be installed in editable 
mode: /home/oub/src

pip install --upgrade -e .
,
| Obtaining file:///home/oub/src/kallithea
| Complete output from command python setup.py egg_info:
| Traceback (most recent call last):
|   File "", line 1, in 
|   File "/home/oub/src/kallithea/setup.py", line 13, in 
| raise Exception('Kallithea requires Python 3.6 or later')
| Exception: Kallithea requires Python 3.6 or later
`

Ok so this is impossible. Sigh


Then I checked the documentation about virtualenv

python3 -m venv /srv/kallithea/venv

Gives me an error
Permission denied: '/srv/kallithea'

So shall I run this as root?

I am a bit confused about who (root or normal user) to install and
where, globally in the system or in .local

The documentation tells me 

mkdir /srv/kallithea

That obviously does not work, so shall I do this as root and then change
the owner and group. Sorry but the documentation is a bit unclear here.



smime.p7s
Description: S/MIME cryptographic signature
___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


Re: how to install kallithea from source

2020-08-13 Thread Mads Kiilerich

On 8/13/20 7:54 PM, Uwe Brauer wrote:

> Hi Uwe,
> On Thu, Aug 13, 2020, 17:50 Uwe Brauer 
 wrote:


> The '.' is an alias to the 'source' shell command. It reads and executes
> the file provided as arguments.
> See section "Shell Builtin Commands" at:
> https://linux.die.net/man/1/bash

Ah this is a bash thing, I have used only tcsh all my life and haven't
come across that.



Ok. If using less common choices, some documentation will not apply 
directly ;-)


https://docs.python.org/3/tutorial/venv.html#creating-virtual-environments 
hints that you might be able to source activate.csh instead. Or just use 
bash for this.




But I still don't understand


cd kallithea  #OK
python3 -m venv ../kallithea-venv #OK
. ../kallithea-venv/bin/activate #OK
pip install --upgrade pip setuptools # this is system wide



No, it is not system wide. When the virtualenv is activated, it will 
modify PATH to start with ../kallithea-venv/bin/ where it's own pip (and 
python) "binaries" are available - they will work inside the virtualenv, 
not globally.


Since you are not running as root, there is also no way it could have 
modified anything system wide.




pip install --upgrade -e . # this is system wide
python3 setup.py compile_catalog   # for translation of the UI

Now I get
pip install --upgrade -e . # this is system wide
ERROR: File "setup.py" not found. Directory cannot be installed in editable 
mode: /home/oub/src



Are you still in the directory of the kallithea source (with a setup.py)?



pip install --upgrade -e .
,
| Obtaining file:///home/oub/src/kallithea
| Complete output from command python setup.py egg_info:
| Traceback (most recent call last):
|   File "", line 1, in 
|   File "/home/oub/src/kallithea/setup.py", line 13, in 
| raise Exception('Kallithea requires Python 3.6 or later')
| Exception: Kallithea requires Python 3.6 or later
`

Ok so this is impossible. Sigh



No, it is not impossible. You just didn't activate the virtualenv - thus 
the later commands doesn't work as intended. Either use bash, or 
activate your csh.




Then I checked the documentation about virtualenv

python3 -m venv /srv/kallithea/venv

Gives me an error
Permission denied: '/srv/kallithea'

So shall I run this as root?



I suggest creating /srv/kallithea as root, and chown it to the kallithea 
user. (I am trying to tweak the documentation based on your input and 
already had some draft changes to this.)




I am a bit confused about who (root or normal user) to install and
where, globally in the system or in .local



Other than creating the installation directory (which could be 
elsewhere), there should not be any global or .local changes. Just 
active the virtualenv first (or run binaries in the virtualenv's bin 
directory).


/Mads
___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


Re: how to install kallithea from source

2020-08-13 Thread Uwe Brauer
>>> "MK" == Mads Kiilerich  writes:

> On 8/13/20 7:54 PM, Uwe Brauer wrote:
>> > Hi Uwe,
>> > On Thu, Aug 13, 2020, 17:50 Uwe Brauer 
>> >  wrote:
>> 
>> 
>> > The '.' is an alias to the 'source' shell command. It reads and executes
>> > the file provided as arguments.
>> > See section "Shell Builtin Commands" at:
>> > https://linux.die.net/man/1/bash
>> 
>> Ah this is a bash thing, I have used only tcsh all my life and haven't
>> come across that.


> Ok. If using less common choices, some documentation will not apply
> directly ;-)

> https://docs.python.org/3/tutorial/venv.html#creating-virtual-environments
> hints that you might be able to source activate.csh instead. Or just
> use bash for this.


I will use bash, no worries I am not religiously bound to csh and
friends.


>> But I still don't understand
>> 
>> 
>> cd kallithea  #OK
>> python3 -m venv ../kallithea-venv #OK
>> . ../kallithea-venv/bin/activate #OK
>> pip install --upgrade pip setuptools # this is system wide


> No, it is not system wide. When the virtualenv is activated, it will
> modify PATH to start with ../kallithea-venv/bin/ where it's own pip
> (and python) "binaries" are available - they will work inside the
> virtualenv, not globally.

Ok, makes sense 

> Since you are not running as root, there is also no way it could have
> modified anything system wide.

That is what confused me

>> pip install --upgrade -e . # this is system wide
>> python3 setup.py compile_catalog   # for translation of the UI
>> 
>> Now I get
>> pip install --upgrade -e . # this is system wide
>> ERROR: File "setup.py" not found. Directory cannot be installed in editable 
>> mode: /home/oub/src


> Are you still in the directory of the kallithea source (with a setup.py)?

Aeh, I forgot to delete  these lines, sorry ignore them, in fact I was
not in the correct directory.


>> pip install --upgrade -e .
>> ,
>> | Obtaining file:///home/oub/src/kallithea
>> | Complete output from command python setup.py egg_info:
>> | Traceback (most recent call last):
>> |   File "", line 1, in 
>> |   File "/home/oub/src/kallithea/setup.py", line 13, in 
>> | raise Exception('Kallithea requires Python 3.6 or later')
>> | Exception: Kallithea requires Python 3.6 or later
>> `
>> 
>> Ok so this is impossible. Sigh


> No, it is not impossible. You just didn't activate the virtualenv -
> thus the later commands doesn't work as intended. Either use bash, or 
> activate your csh.


>> Then I checked the documentation about virtualenv
>> 
>> python3 -m venv /srv/kallithea/venv
>> 
>> Gives me an error
>> Permission denied: '/srv/kallithea'
>> 
>> So shall I run this as root?


> I suggest creating /srv/kallithea as root, and chown it to the
> kallithea user. (I am trying to tweak the documentation based on your
> input and already had some draft changes to this.)

Good, at least something useful will come out from my intents. ;-)


When you say kallithea user, do you mean me, or do you mean that I shall
create a user (and group) named kallithea?


>> I am a bit confused about who (root or normal user) to install and
>> where, globally in the system or in .local


> Other than creating the installation directory (which could be
> elsewhere), there should not be any global or .local changes. Just 
> active the virtualenv first (or run binaries in the virtualenv's bin
> directory).


Well I tried to do this, but it failed again.

Here is what I did, using bash

 sudo mkdir /srv/kallithea
 sudo chown -R oub /srv/kallithea
 sudo chgrp -R oub /srv/kallithea
 cd $HOME/src/kallithea
python3 -m venv /srv/kallithea/venv
. /srv/kallithea/venv/bin/activate
pip install --upgrade pip setuptools
pip install --upgrade kallithea

,
| ERROR: Command errored out with exit status 1:
| 
|  command: /srv/kallithea/venv/bin/python3 -c 'import sys,
|  setuptools, tokenize; sys.argv[0] =
|  '"'"'/tmp/pip-install-ydr3jegw/kallithea/setup.py'"'"';
|  
__file__='"'"'/tmp/pip-install-ydr3jegw/kallithea/setup.py'"'"';f=getattr(tokenize,
|  '"'"'open'"'"',
|  open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
|  '"'"'\n'"'"');f.close();exec(compile(code, __file__,
|  '"'"'exec'"'"'))' egg_info --egg-base
|  /tmp/pip-pip-egg-info-3uwu0aad
| 
|  cwd: /tmp/pip-install-ydr3jegw/kallithea/
| Complete output (5 lines):
| Traceback (most recent call last):
|   File "", line 1, in 
|   File "/tmp/pip-install-ydr3jegw/kallithea/setup.py", line 13, in 

| raise Exception('Kallithea requires Python 3.6 or later')
| Exception: Kallithea requires Python 3.6 or later
| 
| ERROR: Command errored out with exit status 1: python setup.py egg_info Check 
the logs for full command output.
`

Uwe 


smime.p7s
Description: S/MIME cryptographic signature
___
kallithea-general mailing list
kallithea-general@sfconservancy.org
htt

Re: how to install kallithea from source

2020-08-13 Thread Mads Kiilerich

On 8/13/20 8:53 PM, Uwe Brauer wrote:

I suggest creating /srv/kallithea as root, and chown it to the
kallithea user. (I am trying to tweak the documentation based on your
input and already had some draft changes to this.)

Good, at least something useful will come out from my intents. ;-)


When you say kallithea user, do you mean me, or do you mean that I shall
create a user (and group) named kallithea?



Yes, I recommend running Kallithea as a separate user to control how it 
can interact with other system users.


You *could* run Kallithea as you (especially if evaluating or 
developing), but for production it should be a separate user.




Other than creating the installation directory (which could be
elsewhere), there should not be any global or .local changes. Just
active the virtualenv first (or run binaries in the virtualenv's bin
directory).


Well I tried to do this, but it failed again.

Here is what I did, using bash

  sudo mkdir /srv/kallithea
  sudo chown -R oub /srv/kallithea
  sudo chgrp -R oub /srv/kallithea
  cd $HOME/src/kallithea
python3 -m venv /srv/kallithea/venv
. /srv/kallithea/venv/bin/activate
pip install --upgrade pip setuptools
pip install --upgrade kallithea

,
| ERROR: Command errored out with exit status 1:
|
|  command: /srv/kallithea/venv/bin/python3 -c 'import sys,
|  setuptools, tokenize; sys.argv[0] =
|  '"'"'/tmp/pip-install-ydr3jegw/kallithea/setup.py'"'"';
|  
__file__='"'"'/tmp/pip-install-ydr3jegw/kallithea/setup.py'"'"';f=getattr(tokenize,
|  '"'"'open'"'"',
|  open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
|  '"'"'\n'"'"');f.close();exec(compile(code, __file__,
|  '"'"'exec'"'"'))' egg_info --egg-base
|  /tmp/pip-pip-egg-info-3uwu0aad
|
|  cwd: /tmp/pip-install-ydr3jegw/kallithea/
| Complete output (5 lines):
| Traceback (most recent call last):
|   File "", line 1, in 
|   File "/tmp/pip-install-ydr3jegw/kallithea/setup.py", line 13, in 

| raise Exception('Kallithea requires Python 3.6 or later')
| Exception: Kallithea requires Python 3.6 or later
| 
| ERROR: Command errored out with exit status 1: python setup.py egg_info Check 
the logs for full command output.
`



DOH. Now i notice what I think Thomas mentioned earlier. Kallithea does 
indeed require Python 3.6 or later. And it seems like your system is 
using 3.5?


Which Ubuntu version are you using now? I guess they have later Python 
versions available as standard packages, properly namespaced to avoid 
conflicts. If creating the virtualenv with for example python3.8, your 
/srv/kallithea/venv/bin/python3 and everything in the venv will use that 
too.


/Mads

___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


Re: how to install kallithea from source

2020-08-13 Thread Uwe Brauer
>>> "MK" == Mads Kiilerich  writes:

   > On 8/13/20 8:53 PM, Uwe Brauer wrote:
   >>> I suggest creating /srv/kallithea as root, and chown it to the
   >>> kallithea user. (I am trying to tweak the documentation based on your
   >>> input and already had some draft changes to this.)
   >> Good, at least something useful will come out from my intents. ;-)
   >> 
   >> 
   >> When you say kallithea user, do you mean me, or do you mean that I shall
   >> create a user (and group) named kallithea?


   > Yes, I recommend running Kallithea as a separate user to control how
   > it can interact with other system users.

   > You *could* run Kallithea as you (especially if evaluating or
   > developing), but for production it should be a separate user.


   >>> Other than creating the installation directory (which could be
   >>> elsewhere), there should not be any global or .local changes. Just
   >>> active the virtualenv first (or run binaries in the virtualenv's bin
   >>> directory).
   >> 
   >> Well I tried to do this, but it failed again.
   >> 
   >> Here is what I did, using bash
   >> 
   >> sudo mkdir /srv/kallithea
   >> sudo chown -R oub /srv/kallithea
   >> sudo chgrp -R oub /srv/kallithea
   >> cd $HOME/src/kallithea
   >> python3 -m venv /srv/kallithea/venv
   >> . /srv/kallithea/venv/bin/activate
   >> pip install --upgrade pip setuptools
   >> pip install --upgrade kallithea
   >> 
   >> ,
   >> | ERROR: Command errored out with exit status 1:
   >> |
   >> |  command: /srv/kallithea/venv/bin/python3 -c 'import sys,
   >> |  setuptools, tokenize; sys.argv[0] =
   >> |  '"'"'/tmp/pip-install-ydr3jegw/kallithea/setup.py'"'"';
   >> |  
__file__='"'"'/tmp/pip-install-ydr3jegw/kallithea/setup.py'"'"';f=getattr(tokenize,
   >> |  '"'"'open'"'"',
   >> |  open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
   >> |  '"'"'\n'"'"');f.close();exec(compile(code, __file__,
   >> |  '"'"'exec'"'"'))' egg_info --egg-base
   >> |  /tmp/pip-pip-egg-info-3uwu0aad
   >> |
   >> |  cwd: /tmp/pip-install-ydr3jegw/kallithea/
   >> | Complete output (5 lines):
   >> | Traceback (most recent call last):
   >> |   File "", line 1, in 
   >> |   File "/tmp/pip-install-ydr3jegw/kallithea/setup.py", line 13, in 

   >> | raise Exception('Kallithea requires Python 3.6 or later')
   >> | Exception: Kallithea requires Python 3.6 or later
   >> | 
   >> | ERROR: Command errored out with exit status 1: python setup.py egg_info 
Check the logs for full command output.
   >> `


   > DOH. Now i notice what I think Thomas mentioned earlier. Kallithea
   > does indeed require Python 3.6 or later. And it seems like your system
   > is using 3.5?

Yes, I am still on Ubuntu 16.04

   > Which Ubuntu version are you using now? I guess they have later Python
   > versions available as standard packages, properly namespaced to avoid 
   > conflicts. If creating the virtualenv with for example python3.8, your
   > /srv/kallithea/venv/bin/python3 and everything in the venv will use
   > that too.

Hm, that would be a possibility. 

But: I also cloned the whole beast, therefore: 

which version (changeset) requires only 3.5)??

For a simple test I think that should be sufficient, buy only if you
don't tell me that such a kallithea version lacks a lot of important
features.

Uwe 



smime.p7s
Description: S/MIME cryptographic signature
___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


[Python 3.6, 3.7 3.8] (was: how to install kallithea from source)

2020-08-13 Thread Uwe Brauer
>>> "MK" == Mads Kiilerich  writes:

   > On 8/13/20 8:53 PM, Uwe Brauer wrote:
   >>> I suggest creating /srv/kallithea as root, and chown it to the
   >>> kallithea user. (I am trying to tweak the documentation based on your
   >>> input and already had some draft changes to this.)
   >> Good, at least something useful will come out from my intents. ;-)
   >> 
   >> 
   >> When you say kallithea user, do you mean me, or do you mean that I shall
   >> create a user (and group) named kallithea?


It seems possible to install python 3.6/3.7/3.8 on Ubuntu 16.04.

I'd say newer is better, but maybe this is not true, any
recommendations?

Uwe 


smime.p7s
Description: S/MIME cryptographic signature
___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


Re: how to install kallithea from source

2020-08-13 Thread Mads Kiilerich

On 8/13/20 9:15 PM, Uwe Brauer wrote:
which version (changeset) requires only 3.5)?? 



3.6 was the first python3 we supported. (Inherited from the versions 
supported by Mercurial).


3.5 was never supported.

0.5.2 aa0a637fa6f6 was the last py2 version.


For a simple test I think that should be sufficient, buy only if you
don't tell me that such a kallithea version lacks a lot of important
features.



I don't think there have been any big new features since. Mainly a lot 
of maturity changes.


/Mads

___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


Re: [Python 3.6, 3.7 3.8]

2020-08-13 Thread Mads Kiilerich

On 8/13/20 9:24 PM, Uwe Brauer wrote:

"MK" == Mads Kiilerich  writes:

> On 8/13/20 8:53 PM, Uwe Brauer wrote:
>>> I suggest creating /srv/kallithea as root, and chown it to the
>>> kallithea user. (I am trying to tweak the documentation based on your
>>> input and already had some draft changes to this.)
>> Good, at least something useful will come out from my intents. ;-)
>>
>>
>> When you say kallithea user, do you mean me, or do you mean that I shall
>> create a user (and group) named kallithea?


It seems possible to install python 3.6/3.7/3.8 on Ubuntu 16.04.

I'd say newer is better, but maybe this is not true, any
recommendations?



They should all work fine. 3.8 is quite mature now. 3.6 might get less 
testing these days and might start bitrotting.


These days I usually use a 3.9 rc for development and testing.

/Mads

___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general