Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

ImportError: cannot import name 'clock' from 'time'

Subscribe

Get notified when there's activity on this post

This question has been flagged
installationwindowsource_codesourcepython3.x
4 Replies
44310 Views
Avatar
Alexandre Sousa

Hi there, first time installation in windows 10 source install (using Python 3.8) and getting the error below:


C:\odoo>py -3.8 odoo-bin -r odoo -w odoo --addons-path=addons -d odoo 
Traceback (most recent call last):
File "odoo-bin", line 5, in <module>
import odoo
File "C:\odoo\odoo\__init__.py", line 112, in <module>
from . import modules
File "C:\odoo\odoo\modules\__init__.py", line 8, in <module>
from . import db, graph, loading, migration, module, registry
File "C:\odoo\odoo\modules\graph.py", line 10, in <module>
import odoo.tools as tools
File "C:\odoo\odoo\tools\__init__.py", line 8, in <module>
from .config import config
File "C:\odoo\odoo\tools\config.py", line 19, in <module>
from passlib.context import CryptContext
File "C:\Program Files\Python38\lib\site-packages\passlib\context.py", line 20, in <module>
from passlib.registry import get_crypt_handler, _validate_handler_name
File "C:\Program Files\Python38\lib\site-packages\passlib\registry.py", line 11, in <module>
from passlib.utils import is_crypt_handler
File "C:\Program Files\Python38\lib\site-packages\passlib\utils\__init__.py", line 1428, in <module>
from time import clock as tick
ImportError: cannot import name 'clock' from 'time' (unknown location)

0
Avatar
Discard
Sehrish

Odoo Source Installation: http://learnopenerp.blogspot.com/2019/10/configure-pycharm-with-odoo.html

Avatar
Luay Elsherif
Best Answer

I have the same issue using python 3.8.3 for odoo 13

  • passlib 1.7.1

Resolved after upgrade to 

  • passlib 1.7.2
4
Avatar
Discard
Walid Redwan

thanks

Avatar
Niyas Raphy (Walnut Software Solutions)
Best Answer

Hi,

Odoo10 is supposed to run in Python 2. Using the Python 3, you can run v11 and above.

Thanks

0
Avatar
Discard
Avatar
Alexandre Sousa
Author Best Answer

Hi Niyas,

Thank you for your answer. 

I was following the installation guide on the official Odoo website, and there they it says Odoo requires Python 3.6 or later.

The version that I am trying to install the latest version available for download which is version 13.


Edited: The solution was to install Python 3.6, after that it runs perfectly. Looks like Odoo is not prepared to run other versions of python as they advertise in their website. :(


0
Avatar
Discard
HASEEB AHMED

haven't solved it yet. at least i can confirm, windows, python 3.8.10 generating same error :)

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
How to setup a development environment on Windows (from source), pip install -r requirements.txt failing Solved
installation source_code python3
Avatar
Avatar
2
Sep 20
14345
Can i have the accounting app for free??
accounting installation source_code odoo
Avatar
Avatar
1
May 25
18979
Installing and running Odoo 17 on Ubuntu 22.04 server
installation install source ubuntuserver v17
Avatar
Avatar
Avatar
Avatar
Avatar
6
Jun 24
56241
which odoo installation method is good for production.
installation nightly source_code Yenthe v15
Avatar
0
Mar 22
4688
odoo source code installation (step by step)
windows installation install source_code odoo
Avatar
Avatar
2
Jan 20
26774
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now