Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hexya updatedb failed #112

Closed
bandirsen opened this issue Nov 22, 2019 · 2 comments
Closed

hexya updatedb failed #112

bandirsen opened this issue Nov 22, 2019 · 2 comments

Comments

@bandirsen
Copy link

I'm trying to install hexya demo project, with follwoing step
hexya installed fine
less installed fine
git clone https://github.com/hexya-erp/hexya-demo.git
cd hexya-demo
hexya generate . -c ./hexya.toml

All work fine until "hexya updatedb -c ./hexya.toml"
I got following errors :

Please wait, Hexya is starting ...
#github.com/hexya-erp/pool/q/account_account_tag
pool/q/account_account_tag/account_account_tag.go:118:28: undefined: models.NewFieldName
pool/q/account_account_tag/account_account_tag.go:125:28: undefined: models.NewFieldName
.... many similar error about models.NewFieldName

the postgres db is up and running, here are my hexya.toml configuration,

Modules = [
    "github.com/hexya-addons/account"
]
LogStdout = true
#LogFile = ""
LogLevel = "info"
Debug = true
Demo = true
DataDir = "./hexya-datadir"

[DB]
Driver = "postgres"
Host = "localhost"
Port = 5432
User = "dbuser"
Password = "dbuserpass"
Name = "hexya"
SSLMode = false
#SSLCert = ""
#SSLKey = ""
#SSLCA = ""

[Server]
Languages = ["all"]
#Interface = ""
Port = 8080
Domain = "localhost"
#Certificate = ""
#PrivateKey = ""

It seems models.NewFieldName not imported correctly ?

@npiganeau
Copy link
Member

Hi, thanks for your interest in Hexya.
I made quite a few breaking changes recently and the modules are not up to date with hexya.

Reinstalling hexya from tag v0.0.41 and then cloning hexya-demo and running it like you did should do the trick.

@bandirsen
Copy link
Author

Thanks for explanation, I will close this issue.
Thanks for the project, I'm in journey learning hexya.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants