Project

General

Profile

dtatabase not found

Added by Xing Meng about 10 years ago

Hi Anchi
I am doing tests
Both PC and linux can ping each other. PC map drive failed
test1.py (pc) OK
Test2,py (linux) OK

ON the control PC side,
it failed with the messages
C:\Python27\Lib\site-packages\leginon>python start-leginon.py
Traceback (most recent call last):
File "start-leginon.py", line 9, in <module>
from leginon import start
File "c:\python27\lib\site-packages\leginon\start.py", line 13, in <module>
import leginon.gui.wx.Manager
File "c:\python27\lib\site-packages\leginon\gui\wx\Manager.py", line 20, in <module>
from leginon import manager
File "c:\python27\lib\site-packages\leginon\manager.py", line 19, in <module>
import launcher
File "c:\python27\lib\site-packages\leginon\launcher.py", line 13, in <module>
import node
File "c:\python27\lib\site-packages\leginon\node.py", line 27, in <module>
import correctorclient
File "c:\python27\lib\site-packages\leginon\correctorclient.py", line 18, in <module>
import leginon.session
File "c:\python27\lib\site-packages\leginon\session.py", line 14, in <module>
projectdata = leginon.project.ProjectData()
File "c:\python27\lib\site-packages\leginon\project.py", line 36, in init
raise NotConnectedError(e)
leginon.project.NotConnectedError: (2003, "Can't connect to MySQL server on '3dem' (10060)")

C:\Python27\Lib\site-packages\leginon>python launcher.py
Traceback (most recent call last):
File "launcher.py", line 13, in <module>
import node
File "C:\Python27\Lib\site-packages\leginon\node.py", line 27, in <module>
import correctorclient
File "C:\Python27\Lib\site-packages\leginon\correctorclient.py", line 18, in <module>
import leginon.session
File "c:\python27\lib\site-packages\leginon\session.py", line 14, in <module>
projectdata = leginon.project.ProjectData()
File "c:\python27\lib\site-packages\leginon\project.py", line 36, in init
raise NotConnectedError(e)
leginon.project.NotConnectedError: (2003, "Can't connect to MySQL server on '3dem' (10060)")


Replies (2)

RE: dtatabase not found - Added by Xing Meng about 10 years ago

I did the testdb.py
showing
no module named sqldb

RE: dtatabase not found - Added by Anchi Cheng about 10 years ago

testdb.py is out of date. Don't use it. I will remove that from svn in the next run.

Since you have performed simTEM simCamera run successfully on your Linux computer where I guess database is located, you do have a working database.

My guess is that you did not give the database user (usr_object) on the control PC privileges to do various things for the project database (named projectdb typically) on 3dem Linux computer. See

Database_Server_Setup_to_allow_connection_from_the_instruments. You should repeat the steps if you can not determine which one you missed.

    (1-2/2)