Re: error while pulling changes from remote mercurial repo

2024-02-26 Thread Mads Kiilerich

On 21/02/2024 10:41, Ed Wong wrote:

File "/var/www/kali/venv/lib64/python3.9/site-packages/mercurial/ui.py",
line 1299, in _writenobuf
   dest.write(msg)
File
"/var/www/kali/venv/lib64/python3.9/site-packages/mercurial/utils/procutil.py",
line 115, in write
   c = write1(m[total_written:])
peError: write() argument 1 must be read-only bytes-like object, not
memoryview



That exception is quite deep inside Mercurial, in a version that is 
quite old now. But also, it could perhaps be something with the WSGI 
stack in your setup. It seems like you are doing something is quite 
common, but the problem is not common. Something special must be 
triggering it. But also, the last official release is indeed quite old. 
If the problem can be reproduced and hasn't been fixed on the stable 
branch, we can fix it there.




Thinking that this might have been some compatibility issue between
the old Kallithea managed repos and the 0.7.0, I thought I'd create
a new repository.



In my opinion, that seems unlikely to solve the problem.



File
"/var/www/kali/venv/lib64/python3.9/site-packages/celery/app/base.py",
line 776, in send_task
  """
  TypeError: as_task_v2() got an unexpected keyword argument 'ignore_result'


At this point, I'm kinda stuck.   I have Celery == 5.0.5.



That could seem like https://github.com/celery/celery/issues/6829 - are 
you sure you are using celery 5.0.5 ?



On 25/02/2024 14:32, Branko Majic wrote:

So... I don't know what the exact issue is you are facing here, but
based on some personal experiences The released version of
Kallithea (0.7.0) is quite outdated from the code perspective when
compared to what is currently in the repository tip.



Yes - the stable branch is very stable ... while also supporting more 
recent and bugfixed Mercurial versions, so I would recommend using that 
instead of the aging latest official release. 
https://kallithea.readthedocs.io/en/stable/installation.html#installation-from-repository-source


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


Re: error while pulling changes from remote mercurial repo

2024-02-26 Thread Branko Majic
On Mon, 26 Feb 2024 17:18:14 +0800
Ed Wong  wrote:

> I think that might be a good idea.  Though did you end up fixing your
> issues when you use the dev- tree?  (And yes, I'm also mainly a git
> user as well... though recently need to use hg.)

Hello Ed,

In my case - yes. Although, my issues were mainly related to
installation part and trying to move up a Python version + update some
of the dependencies. Nothing functional.

So, not sure if it'll help _your_ situation, but it's worth a try (just
spin up something locally for testing purposes I guess).

Best regards,
Branko

-- 
Branko Majic
XMPP: bra...@majic.rs
Please use only Free formats when sending attachments to me.

Бранко Мајић
XMPP: bra...@majic.rs
Молим вас да додатке шаљете искључиво у слободним форматима.


pgpfTVOW3H8ST.pgp
Description: OpenPGP digital signature
___
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general


Re: error while pulling changes from remote mercurial repo

2024-02-26 Thread Ed Wong
Branko Majic wrote:
> On Wed, 21 Feb 2024 17:41:40 +0800
> Ed Wong  wrote:
> 
>> I've moved a mercurial repository from an old Kallithea installation
>> to a new machine (Kallithea 0.7.0) and things have been going on ok.
>> (Using Python3.9 and mercurial 6.1.4)
> 
> So... I don't know what the exact issue is you are facing here, but
> based on some personal experiences The released version of
> Kallithea (0.7.0) is quite outdated from the code perspective when
> compared to what is currently in the repository tip (if I got
> terminology right, I'm really mainly a Git user :) ).

Hi Branko,

I think that might be a good idea.  Though did you end up fixing your
issues when you use the dev- tree?  (And yes, I'm also mainly a git
user as well... though recently need to use hg.)

Take care,

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