WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: python  (Read 14113 times)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: python
« Reply #45 on: August 03, 2021, 08:12:44 AM »
You need something like this:

* "tce-load -i compiletc python3.6-dev"
* "wget [source tarball]"
* "tar xf [source tarball]"
* "cd [source]"
* "python3.6 setup.py build"
* "mkdir /tmp/pkg"
* "sudo python3.6 setup.py install --root=/tmp/pkg"

Then remove the "__pycache__" subdirectories from /tmp/pkg/usr/local/lib/python3.6/site-packages (they are several layers deep)

* "cd /tmp"
* sudo mksquashfs pkg/ python3.6-[source].tcz

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: python
« Reply #46 on: August 03, 2021, 08:14:19 AM »
But i am getting an error

That comment is only useful for telepaths  :P

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: python
« Reply #47 on: August 04, 2021, 06:56:44 AM »
Hi Juanito,

* "python3.6 setup.py build"

Code: [Select]
        =============================DEBUG ASSISTANCE==========================
        If you are seeing an error here please try the following to
        successfully install cryptography:

        Upgrade to the latest pip and try again. This will fix errors for most
        users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
        =============================DEBUG ASSISTANCE==========================

Traceback (most recent call last):
  File "setup.py", line 14, in <module>
    from setuptools_rust import RustExtension
ModuleNotFoundError: No module named 'setuptools_rust'

i installed rust.tcz but it didn't help
any Ideas ?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: python
« Reply #48 on: August 04, 2021, 07:54:25 AM »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: python
« Reply #49 on: August 04, 2021, 08:03:21 AM »
I'd suggest that you try an earlier version of cryptography that doesn't use rust, for example:

https://github.com/pyca/cryptography/archive/refs/tags/3.2.1.tar.gz

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: python
« Reply #50 on: August 04, 2021, 09:27:36 AM »
Hi Juanito,

thank you very very much my program works finaly  :) :)