Re: BUG: Cannot browse files

2020-08-23 Thread Łukasz Michalski

On 2020-08-23 07:29, Thomas De Schampheleire wrote:

Hi,

On Sat, Aug 22, 2020, 22:49 Łukasz Michalski  wrote:


Hi,

I have a problem with a single repository. When I try to use "Files"
tab
I got 500 Internal Server Error (traceback below).
I have 20 repositories and the problem is only with one of them.
Looks
like python3 problem.



[...]

line 587, in __init__
Aug 22 22:29:49 universe gearbox[22393]: self.path =
name.rstrip('/')
Aug 22 22:29:49 universe gearbox[22393]: TypeError: a bytes-like
object
is required, not 'str'


I think this is the problem fixed by following commit on the stable
branch:

https://kallithea-scm.org/repos/kallithea/changeset/f48b12755d83cba1c8e6613e9df2b004ade3721f

There is no release yet with that included, but you could either
install from the repo, or patch locally.



That was it!

Many thanks, I changed both files manually and it works now.

P.S.
Please set Reply-to: kallithea-general@sfconservancy.org for mails sent from 
list.
It is unusual that reply is sent to original sender and I have to use "Reply 
all".

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


Re: BUG: Cannot browse files

2020-08-23 Thread v...@myridia.com
hi, I just install the latest over pip and I use python 3.8.5
all works good
https://calantas.org/bw-coupon/files/861e338b686dfdd55586d5182fcc2ba4e80f2b88/admin/images


On Sun, August 23, 2020 7:06 pm, Mads Kiilerich wrote:
> On 8/23/20 7:29 AM, Thomas De Schampheleire wrote:
>
>>
>> Aug 22 22:29:49 universe gearbox[22393]:   File
>> "/srv/kallithea/venv/lib/python3.7/site-packages/kallithea/lib/vcs/nodes
>> .py",
>>
>>
>> line 587, in __init__ Aug 22 22:29:49 universe gearbox[22393]:   
>>  self.path =
>> name.rstrip('/') Aug 22 22:29:49 universe gearbox[22393]: TypeError: a
>> bytes-like object is required, not 'str'
>>
>>
>>
>> I think this is the problem fixed by following commit on the stable
>> branch:
>>
>>
>> https://kallithea-scm.org/repos/kallithea/changeset/f48b12755d83cba1c8e
>> 6613e9df2b004ade3721f
>>
>>
>>
>> There is no release yet with that included, but you could either
>> install from the repo, or patch locally.
>
>
> We never got a reproducible test case for the report that caused the
> fix. It would be nice if you could confirm it solves your problem.
>
> /Mads
>
>
> ___
> 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: BUG: Cannot browse files

2020-08-23 Thread Mads Kiilerich

On 8/23/20 7:29 AM, Thomas De Schampheleire wrote:


Aug 22 22:29:49 universe gearbox[22393]:   File

"/srv/kallithea/venv/lib/python3.7/site-packages/kallithea/lib/vcs/nodes.py",

line 587, in __init__
Aug 22 22:29:49 universe gearbox[22393]:     self.path =
name.rstrip('/')
Aug 22 22:29:49 universe gearbox[22393]: TypeError: a bytes-like
object
is required, not 'str'



I think this is the problem fixed by following commit on the stable 
branch:


https://kallithea-scm.org/repos/kallithea/changeset/f48b12755d83cba1c8e6613e9df2b004ade3721f


There is no release yet with that included, but you could either 
install from the repo, or patch locally.



We never got a reproducible test case for the report that caused the 
fix. It would be nice if you could confirm it solves your problem.


/Mads

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


Re: BUG: Cannot browse files

2020-08-22 Thread Thomas De Schampheleire
Hi,

On Sat, Aug 22, 2020, 22:49 Łukasz Michalski  wrote:

> Hi,
>
> I have a problem with a single repository. When I try to use "Files" tab
> I got 500 Internal Server Error (traceback below).
> I have 20 repositories and the problem is only with one of them. Looks
> like python3 problem.
>
> Kallithea 0.6.1, python3.7, a year-old Arch Linux. Please let me know if
> I can do anything more to help solving this issue.
>
> Regards,
> Łukasz
>
> Traceback:
> Aug 22 22:29:49 universe gearbox[22393]:   File
> "/srv/kallithea/venv/lib/python3.7/site-packages/tg/controllers/dispatcher.py",
>
> line 107, in _perform_call
> Aug 22 22:29:49 universe gearbox[22393]: r = self._call(action,
> params, remainder=remainder, context=context)
> Aug 22 22:29:49 universe gearbox[22393]:   File
> "/srv/kallithea/venv/lib/python3.7/site-packages/tg/controllers/decoratedcontroller.py",
>
> line 129, in _call
> Aug 22 22:29:49 universe gearbox[22393]: output =
> controller_caller(context_config, bound_controller_callable, remainder,
> params)
> Aug 22 22:29:49 universe gearbox[22393]:   File
> "/srv/kallithea/venv/lib/python3.7/site-packages/tg/controllers/decoration.py",
>
> line 21, in _decorated_controller_caller
> Aug 22 22:29:49 universe gearbox[22393]: return
> application_controller_caller(tg_config, controller, remainder, params)
> Aug 22 22:29:49 universe gearbox[22393]:   File
> "/srv/kallithea/venv/lib/python3.7/site-packages/tg/configurator/components/dispatch.py",
>
> line 114, in _call_controller
> Aug 22 22:29:49 universe gearbox[22393]: return
> controller(*remainder, **params)
> Aug 22 22:29:49 universe gearbox[22393]:   File "",
> line 2, in index
> Aug 22 22:29:49 universe gearbox[22393]:
> Aug 22 22:29:49 universe gearbox[22393]:   File
> "/srv/kallithea/venv/lib/python3.7/site-packages/kallithea/lib/auth.py",
> line 614, in __wrapper
> Aug 22 22:29:49 universe gearbox[22393]: return func(*fargs,
> **fkwargs)
> Aug 22 22:29:49 universe gearbox[22393]:   File "",
> line 2, in index
> Aug 22 22:29:49 universe gearbox[22393]:
> Aug 22 22:29:49 universe gearbox[22393]:   File
> "/srv/kallithea/venv/lib/python3.7/site-packages/kallithea/lib/auth.py",
> line 657, in __wrapper
> Aug 22 22:29:49 universe gearbox[22393]: return func(*fargs,
> **fkwargs)
> Aug 22 22:29:49 universe gearbox[22393]:   File
> "/srv/kallithea/venv/lib/python3.7/site-packages/kallithea/controllers/files.py",
>
> line 193, in index
> Aug 22 22:29:49 universe gearbox[22393]: return
> render('files/files.html')
> Aug 22 22:29:49 universe gearbox[22393]:   File
> "/srv/kallithea/venv/lib/python3.7/site-packages/kallithea/lib/base.py",
> line 63, in render
> Aug 22 22:29:49 universe gearbox[22393]: return
> render_template({'url': url}, 'mako', template_path)
> Aug 22 22:29:49 universe gearbox[22393]:   File
> "/srv/kallithea/venv/lib/python3.7/site-packages/tg/render.py", line
> 208, in render
> Aug 22 22:29:49 universe gearbox[22393]: kwargs['result'] =
> render_function(template_name, tg_vars, **kwargs)
> Aug 22 22:29:49 universe gearbox[22393]:   File
> "/srv/kallithea/venv/lib/python3.7/site-packages/tg/renderers/mako.py",
> line 134, in __call__
> Aug 22 22:29:49 universe gearbox[22393]: cache_type=cache_type,
> cache_expire=cache_expire)
> Aug 22 22:29:49 universe gearbox[22393]:   File
> "/srv/kallithea/venv/lib/python3.7/site-packages/tg/render.py", line
> 274, in cached_template
> Aug 22 22:29:49 universe gearbox[22393]: return render_func()
> Aug 22 22:29:49 universe gearbox[22393]:   File
> "/srv/kallithea/venv/lib/python3.7/site-packages/tg/renderers/mako.py",
> line 131, in render_template
> Aug 22 22:29:49 universe gearbox[22393]: return
> Markup(template.render_unicode(**template_vars))
> Aug 22 22:29:49 universe gearbox[22393]:   File
> "/srv/kallithea/venv/lib/python3.7/site-packages/mako/template.py", line
> 482, in render_unicode
> Aug 22 22:29:49 universe gearbox[22393]: self, self.callable_, args,
> data, as_unicode=True
> Aug 22 22:29:49 universe gearbox[22393]:   File
> "/srv/kallithea/venv/lib/python3.7/site-packages/mako/runtime.py", line
> 883, in _render
> Aug 22 22:29:49 universe gearbox[22393]:
> **_kwargs_for_callable(callable_, data)
> Aug 22 22:29:49 universe gearbox[22393]:   File
> "/srv/kallithea/venv/lib/python3.7/site-packages/mako/runtime.py", line
> 920, in _render_context
> Aug 22 22:29:49 universe gearbox[22393]: _exec_template(inherit,
> lclcontext, args=args, kwargs=kwargs)
> Aug 22 22:29:49 universe gearbox[22393]:   File
> "/srv/kallithea/venv/lib/python3.7/site-packages/mako/runtime.py", line
> 947, in _exec_template
> Aug 22 22:29:49 universe gearbox[22393]: callable_(context, *args,
> **kwargs)
> Aug 22 22:29:49 universe gearbox[22393]:   File "_base_root_html", line
> 211, in render_body
> Aug 22 22:29:49 universe gearbox[22393]:
> Aug 22 22:29:49 universe gearbox[22393]:   File "_base_base_html", line
> 42, in render_body
> Aug 22