Hi,
when running my web2py app from pycharm I get an error importing pydal.
The directory is a full source download, so the full dal package is 
included.
When I run direct from command line It works.
I'm working in MacOS Ventura on a Macbook Air M2.

*Commandline*
*tom@Tom-sin-MacBook-Air-2022 w2p % python3 web2py.py -a "admin"*
*web2py Web Framework*
*Created by Massimo Di Pierro, Copyright 2007-2023*
*Version 2.24.1-stable+timestamp.2023.03.23.05.07.17*
*Database drivers available: sqlite3, psycopg2, imaplib, pymysql, pyodbc*

*please visit:*
* http://127.0.0.1:8000/*
*use "kill -SIGTERM 1726" to shutdown the web2py server*

*From Pycharm*
*/usr/bin/python3 /Users/tom/Source/w2p/web2py.py -a admin *
*Traceback (most recent call last):*
* File "/Users/tom/Source/w2p/gluon/__init__.py", line 31, in 
import_packages*
* sys.modules[package] = __import__(package)*
* File "/Users/tom/Source/w2p/gluon/packages/dal/pydal/__init__.py", line 
3, in <module>*
* from .base import DAL*
* File "/Users/tom/Source/w2p/gluon/packages/dal/pydal/base.py", line 136, 
in <module>*
* from ._compat import (*
* File "/Users/tom/Source/w2p/gluon/packages/dal/pydal/_compat.py", line 
90, in <module>*
* from html.parser import HTMLParser*
* File "/Users/tom/Source/w2p/gluon/html.py", line 21, in <module>*
* from pydal._compat import PY2, reduce, pickle, copyreg, HTMLParser, 
name2codepoint, iteritems, unichr, unicodeT, \*
*ImportError: cannot import name 'HTMLParser' from partially initialized 
module 'pydal._compat' (most likely due to a circular import) 
(/Users/tom/Source/w2p/gluon/packages/dal/pydal/_compat.py)*

*During handling of the above exception, another exception occurred:*

*Traceback (most recent call last):*
* File "/Users/tom/Source/w2p/web2py.py", line 43, in <module>*
* import gluon.widget*
* File "/Users/tom/Source/w2p/gluon/__init__.py", line 35, in <module>*
* import_packages()*
* File "/Users/tom/Source/w2p/gluon/__init__.py", line 33, in 
import_packages*
* raise RuntimeError(MESSAGE % package)*
*RuntimeError: web2py depends on pydal, which apparently you have not 
installed.*
*Probably you cloned the repository using git without '--recursive'*
*To fix this, please run (from inside your web2py folder):*

* git submodule update --init --recursive*

*You can also download a complete copy from http://www.web2py.com.*

*Process finished with exit code 1*

Tom Ø.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/4c7e627e-1420-479e-92a5-28c3e93623a2n%40googlegroups.com.

Reply via email to