Skip to Content
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
1442 Представления

Hi, I got the style css when installing Odoo 18, python 3.10:

In Console: 

"c:usersuser

ppdatalocalprogramspythonpython39libsite-packagessassc.py:7 FutureWarning: The `sassc` entrypoint is deprecated, please use `pysassc`

  warnings.warn(

Usage: sassc [options] SCSS_FILE [OUT_CSS_FILE]


sassc: error: no such option: --stdin

This error occurred while compiling the bundle 'web.assets_web_print' containing:

    - /web/static/src/scss/functions.scss

    - /web/static/src/scss/primary_variables_print.scss

    - /web/static/src/views/kanban/kanban.print_variables.scss


This is strange, because I deleted the folder C/User/user/AppData/Local/Programs/python/python39 already, but Odoo still points to that and cause error. (I installed libsass 0.21.0). Do you know it? Please help! Thank you.

Аватар
Отменить
Автор Лучший ответ

Hi, thanks for reply. I uninstalled the python 3.9 and installed the 3.10. The mentioned folder is in the App Data/Local/Python (not in C/Programs) and I though it is remained. I setup the Python Interpreter inside my project, as showing here:
python -m site

sys.path = [

    'C:\\Users\\user\\Desktop\\LOGISTIC',

    'C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python310\\python310.zip',

    'C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python310\\DLLs',

    'C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python310\\lib',

    'C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python310',

    'C:\\Users\\user\\Desktop\\LOGISTIC\\venv',

    'C:\\Users\\user\\Desktop\\LOGISTIC\\venv\\lib\\site-packages',

    'C:\\Users\\user\\Desktop\\LOGISTIC\\venv\\lib\\site-packages\\win32',

    'C:\\Users\\user\\Desktop\\LOGISTIC\\venv\\lib\\site-packages\\win32\\lib',

    'C:\\Users\\user\\Desktop\\LOGISTIC\\venv\\lib\\site-packages\\Pythonwin',

]

USER_BASE: 'C:\\Users\\user\\AppData\\Roaming\\Python' (exists)

USER_SITE: 'C:\\Users\\user\\AppData\\Roaming\\Python\\Python310\\site-packages' (doesn't exist)

ENABLE_USER_SITE: False


I tried to add New Interpreter with Python 3.10, install all dependencies from the beginning, but that still happenes.

Аватар
Отменить
Лучший ответ

You deleted the python folder? Hummm what could go wrong? xD

It is possible that you might have more than one Python installation, and that can create some conflicts when you don't use virtual environments as they are supposed to. 
(There must be One Python Venv per project). 
Changing global python definitions, versions and installed packages never works well. 

Odoo always creates it's own venv inside the Odoo project folder, and personally, Python 3.9 has been the one that works always well. I've installed it in Windows, Linux and Mac OS with sucess. 

On Windows, if you make multiple failed attemps at installing Odoo, the registry will leave back residual keys, that have to be manually removed. (go to regedit and look up "odoo" and "PgAdmin")

Not removing those keys, will mess any consequent installations attempts. 

One immediate effect can be seen while installing PgAdmin, is the destination folder for the program doesn't appear in the automatic setup. I've seen this happen too many times on Windows, and had to clean registry keys every single time, or manually config PgAdmin, with the  configs from the Odoo setup files. 

If you broke Python, and you are not using it for anything else, just remove it entirely from your machine (by Uninstalling and NOT deleting folders) and reinstall Python 3.9 which is the one that works best for ODOO.

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
апр. 23
9782
2
мар. 15
5600
4
мар. 24
12720
2
окт. 21
8071
3
авг. 20
3581