Re: Install python pacakge from `.whl` file

2021-07-10 Thread Hamzeh Nasajpour
Ok, I updated the package definition as follow: ``` (define-public python-etebase (package (name "python-etebase") (version "0.31.2") (source (origin (method url-fetch) (uri (string-append "https://github.com/etesync/etebase-py/releases/download/v0.31.2/ete

Install python pacakge from `.whl` file

2021-07-10 Thread Hamzeh Nasajpour
pip" "install" "/gnu/store/pbv52yan4xnwbi426qywcfkls681k3lg-etebase-0.31.2-cp38-cp38-manylinux2010_x86_64.whl" "--prefix=/gnu/store/18vg8h9yh2a3f6vlqn2kcxhbrfzrchns-python-etebase-0.31.2") exit-status: 1 term-signal: #f stop-signal: #f -- Hamzeh Nasajpour PantherX Team

Re: XDG_... env variables in root

2021-07-07 Thread Hamzeh Nasajpour
Hi, https://unix.stackexchange.com/questions/7013/why-do-we-use-su-and-not-just-su/7021#7021 >su - invokes a login shell after switching the user. A login shell resets most >environment variables, providing a clean base. >su just switches the user, providing a normal shell with an environment n

Re: XDG_... env variables in root

2021-07-07 Thread Hamzeh Nasajpour
Hi Gio, > please can you show us only the relevant parts [1] of your bash profile > (or other shell profile) for "user" and "root"? This is my `/etc/profile` content: ``` # Crucial variables that could be missing in the profiles' 'etc/profile' # because they would require combining both profiles

Re: XDG_... env variables in root

2021-07-07 Thread Hamzeh Nasajpour
e are env variables in `root`. My main issue is why these variables in `root` point to `USER` paths? -- Hamzeh Nasajpour PantherX Team

XDG_... env variables in root

2021-07-06 Thread Hamzeh Nasajpour
Hi, I've a weird issue with all `XDG_..` env paths in the `root`. These are `XDG_...` env paths in `user` and `root`, exactly are same: ``` XDG_CONFIG_DIRS=/home/hamzeh/.guix-profile/etc/xdg:/run/current-system/profile/etc/xdg:/home/hamzeh/.guix-profile/etc/xdg:/run/current-system/profile/etc/xd

hash guix after guix pull

2021-06-15 Thread Hamzeh Nasajpour
ssed? Regards, Hamzeh Nasajpour PantherX Team

Package building with gcc-10

2020-11-16 Thread Hamzeh Nasajpour
Hi guys. I have a cpp Application that should be build with `gcc-toolchain-10.2.0`. I could build it in local. But seems that in package building the `cmake-build-system` is using the `gcc-7.5.0`. How can I set a specific version of gcc for building my package definition? ``` ... /tmp/guix-bu

Re: Error in package building : error[E0463]: can't find crate for `openssl_src`

2020-11-08 Thread Hamzeh Nasajpour
Hi guys, Anybody has any solution? For now I face with this error in package installation: ``` ... Compiling etebase-python v0.30.0 (/tmp/guix-build-python-etebase-py-0.30.0.drv-0/etebase-0.30.0) error: unterminated double quote string --> src/lib.rs:63:44 | 63 | include!(concat!(env!("

Re: Packaging a python package that is using setuptools_rust

2020-10-25 Thread Hamzeh Nasajpour
Thanks for your quick reply. > (native-inputs >`(... > ("rust:cargo" ,rust "cargo") > ...)) Thanks this step passed, but now I face with another error in dependencies. ``` ... phase `patch-generated-file-shebangs' succeeded after 0.0 seconds starting phase `build'

Re: Packaging a python package that is using setuptools_rust

2020-10-25 Thread Hamzeh Nasajpour
Hi Hartmut, > You could validate $PATH like this: Add a phase before the > build-phase, containing just "(pk (getenv PATH))". This is the output of this line: ``` /gnu/store/wc4xh9wj49rlbyivxi4lsws6whhzx4ab-python-wrapper-3.8.2/bin:/gnu/store/axjq514q8gqk90hi7r7wpfbba3id6h18-rust-1.39.0/bin:/gn

Re: Error in package building : error[E0463]: can't find crate for `openssl_src`

2020-10-25 Thread Hamzeh Nasajpour
Hi Efraim, > I'd add in a substitution here for openssl like this (untested): >;; Don't depend on vendored sources >(("0.10.30.*") "0.10.30\" }\n") > Thanks, I added it and this step passed and now I don't get the previous error in building. Now I faced with an

Re: Error in package building : error[E0463]: can't find crate for `openssl_src`

2020-10-22 Thread Hamzeh Nasajpour
Hello John, Thanks for your following up. I put the `openssl` in `inputs` too and the problem wasn't resolved. I also I packaged the `openssl-src` and repackage the `openssl-sys` and this is didn't resolved the problem too. The point is with the following package definitions the `rust-openssl

Re: Error in package building : error[E0463]: can't find crate for `openssl_src`

2020-10-21 Thread Hamzeh Nasajpour
I'm so sorry I had a mistake in the previous package definition, I was in testing. Please remove these lines in the previous definition: ``` (substitute* "Cargo.toml" (("0.10.30\"" all) "0.10.30\"}# ")) ``` It means that my package definition is: ``` (define-public pytho

Re: Error in package building : error[E0463]: can't find crate for `openssl_src`

2020-10-21 Thread Hamzeh Nasajpour
This is my package definition till now. The repository of the package is here: https://github.com/etesync/etebase-py/ Also I should to say I package these (since they aren't available in the upstream packages): * openssl@0.10.30 * cpython@0.3 * etebase-rs * flapigen-0.6 I didn't attach them here

Re: Error in package building : error[E0463]: can't find crate for `openssl_src`

2020-10-21 Thread Hamzeh Nasajpour
Hello John, Thanks for your quick reply. But as you see in `Cargo.toml`, this feature mentioned and I think it's needed. In the other side setting the `OPENSSL_DIR` didn't resolve my issue. Do you have any other suggestion? Can I repackage `rust-openssl-sys-0.9` and remove this line in the pac

Error in package building : error[E0463]: can't find crate for `openssl_src`

2020-10-21 Thread Hamzeh Nasajpour
Hi, I face with an issue in one library that I'm packaging by myself. This library has one dependency to `rust-openssl@0.10.30`, I updated the `rust-openssl` to `0.10.30` and now I get this error in the package building: ``` ... patch-cargo-checksums: generate-checksums for guix-vendor/rust-z

Re: rust packaging with specific version of rust

2020-10-21 Thread Hamzeh Nasajpour
Hi, Thanks for your quick and helpful reply. The problem resolved. Regards, Hamzeh On Mon, Oct 19, 2020, at 12:36 PM, Arun Isaac wrote: > > To enable the unstable inner_deref feature, you need to add the line > "#![feature(inner_deref)]" to the top of src/lib.rs. And, you might need > to enabl

Packaging a python package that is using setuptools_rust

2020-10-19 Thread Hamzeh Nasajpour
Hi, I want to package the `etebase-py` library: https://github.com/etesync/etebase-py/ It's using the `setuptools_rust` for build/install. Also it has some rust dependencies that I packaged them. And now I create a package definition by `guix import ...`: ``` (define-public python-etebase (p

rust packaging with specific version of rust

2020-10-19 Thread Hamzeh Nasajpour
Hi, I'm not expert in `rust`. I need to work with a library that has some dependencies to rust and I had to package a few libraries in GuixSD. Anyway now I faced with an error in building one rust package: ``` error[E0658]: use of unstable library feature 'inner_deref': newly added --> src/htt

Why the static library will delete after the package installation of dlib?

2020-08-12 Thread Hamzeh Nasajpour
Hi, I'm using `dlib` in a project and I found that the static library will be deleted in the `delete-static-library` phase in the package installation. Why? https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/machine-learning.scm#n814 Is there any problem to comment these lines for us

Re: shepherd as normal user

2019-10-04 Thread Hamzeh Nasajpour
ple, multi-login/multi instance of shepherd and so on. Do you have any idea? On Fri, Oct 4, 2019, at 6:49 PM, Gábor Boskovits wrote: > Hello, > > Hamzeh Nasajpour ezt írta (időpont: 2019. > okt. 4., Pén 10:31): > > Thanks for your reply. > > > > It's

Re: shepherd as normal user

2019-10-04 Thread Hamzeh Nasajpour
Thanks for your reply. It's a good example. But my main problem is running `shepherd` as normal user automatically. For now, I've to run it manually. On Fri, Oct 4, 2019, at 4:28 AM, ison wrote: > On Fri, Oct 04, 2019, Hamzeh Nasajpour wrote: > > Hi, > > > >

shepherd as normal user

2019-10-03 Thread Hamzeh Nasajpour
Hi, I'm going to run `shepherd` as a normal user automatically (at startup). How can I do that? I know the `shepherd` will be run as root with PID=1 in the init system, but I have some services that should be run by `shepherd` for normal users. Regards, Hamzeh

Re: undefined symbol error in qtbase

2019-08-12 Thread Hamzeh Nasajpour
:42 PM, Ricardo Wurmus wrote: > > Hamzeh Nasajpour writes: > > >> The problem appears to be that qtbase contains references to both sqlite > >> and sqlite-with-column-metadata. It should contain references to only > >> one of the two, preferably the one with

Re: undefined symbol error in qtbase

2019-08-08 Thread Hamzeh Nasajpour
-metadata` here: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/qt.scm#n578 Did you see the `qtbase` package definition? I don't see `sqlite` in it's package definition. Regards, Hamzeh On Wed, Aug 7, 2019, at 4:13 PM, Hamzeh Nasajpour wrote: > > > On Wed, Aug

Re: undefined symbol error in qtbase

2019-08-07 Thread Hamzeh Nasajpour
On Wed, Aug 7, 2019, at 4:04 PM, Ricardo Wurmus wrote: > > Ricardo Wurmus writes: > > >> This is the package definition for `trojita` […] > > > > I copied this to the bottom of qt.scm (didn’t want to have to adjust any > > module imports) and built it just fine. > > > > So it looks like nothi

Re: undefined symbol error in qtbase

2019-08-06 Thread Hamzeh Nasajpour
uts `( ("pkg-config", pkg-config) ("qttools",qttools))) (home-page "http://trojita.flaska.net";) (synopsis "A Qt IMAP e-mail client") (description "A Qt IMAP e-mail client") (license license:gpl2))) ``` On

undefined symbol error in qtbase

2019-08-06 Thread Hamzeh Nasajpour
Hi, I want to package `trojita` for GuixSD. I created a package definition and it was build and installed successfully. When I run it I get the following error: ``` /gnu/store/890yw9i7lcjnnxhlza8r121352xp1hi-qtbase-5.11.3/lib/qt5/plugins/sqldrivers/libqsqlite.so: undefined symbol: sqlite3_colum

`scm` file parsing(read/write/modify)

2019-01-06 Thread Hamzeh Nasajpour
Hi, I have a configuration file that written based on `scm` file like as `guixSD` config.scm file. https://www.gnu.org/software/guix/manual/en/html_node/User-Accounts.html#User-Accounts I want to read/write/modify this config file in python or C/C++. Do you know any `scm` file parsing or any