Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
1811 Widoki

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.

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
kwi 23
10100
2
mar 15
5837
4
mar 24
13077
2
paź 21
8389
3
sie 20
3853