lavaloon-eg / ksa_compliance

KSA Compliance App for KSA E-invoice
https://www.lavaloon.com/
GNU Affero General Public License v3.0
34 stars 23 forks source link

Isuue when install app #34

Closed ahmad18189 closed 4 months ago

ahmad18189 commented 4 months ago

using

https://github.com/lavaloon-eg/ksa_compliance.git --branch develop

branch tested

develop

main

error

FileNotFoundError: [Errno 2] No such file or directory: '/home/frappe/frappe-bench/apps/ksa_compliance/setup.py'

ahmad18189 commented 4 months ago

suggested file content

`from setuptools import setup, find_packages

with open("requirements.txt") as f: install_requires = f.read().strip().split("\n")

get version from version variable in ksa_compliance/init.py

from ksa_compliance import version as version

setup( name="ksa_compliance", version=version, description="KSA zatca phase 2", author="lavaloon.com", author_email="info@lavaloon.com", packages=find_packages(), zip_safe=False, include_package_data=True, install_requires=install_requires )

`

mhaggag commented 4 months ago

Hello, Ahmad. Thanks for reporting.

ksa_compliance runs only on frappe 15, which ditched setup.py in favor of pyproject.toml. Please refer to Migrating to version 15: Removal of setup.py

If you encountered this error on a 15 bench, can you please share the bench version (bench --version) as well as app versions? (bench version)

mhaggag commented 4 months ago

I'm closing this on the assumption that it was a v14 bench. Please let me know if you still run into issues on v15.