You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To write a blog post for my company, I wanted to run Conderser on Ubuntu.
I downloaded Pynthon 3 (updated), python3-mysql.connector, python-psycopg2 and python-toposort, then I copied the repo on my machine, after installing postgresql 14 and putting a database that would serve as a test game.
Of course, I made sure that my environment variables included the variables from the Postgresql libraries.
I created my own configuration file, named config.json, here is what it contains:
Thinking I had everything configured correctly, I therefore launched the python script direct_subset.py.
And I ended up with the following error:
Traceback (most recent call last):
File "direct_subset.py", line 2, in <module>
import config_reader, result_tabulator
File "/var/lib/postgresql/condenser/config_reader.py", line 8
print('WARNING: Attempted to initialize configuration twice.', file=sys.stderr)
^
SyntaxError: invalid syntax
Trying to understand where this error comes from, I deleted the two files config.json.example and config.json.example_all, but I still have the same error.
And since I've never done python, I'm unable to debug myself...
Could someone tell me what's wrong?
Thanks !
The text was updated successfully, but these errors were encountered:
Would you mind sharing the full command that you are using to run?
Is it python script direct_subset.py? If so, I would make sure that python refers to python3, I believe on older versions of Ubuntu python is the python 2 executable, while python3 points to python 3. Condenser only supports python3.
Hi,
To write a blog post for my company, I wanted to run Conderser on Ubuntu.
I downloaded Pynthon 3 (updated), python3-mysql.connector, python-psycopg2 and python-toposort, then I copied the repo on my machine, after installing postgresql 14 and putting a database that would serve as a test game.
Of course, I made sure that my environment variables included the variables from the Postgresql libraries.
I created my own configuration file, named config.json, here is what it contains:
Thinking I had everything configured correctly, I therefore launched the python script direct_subset.py.
And I ended up with the following error:
Trying to understand where this error comes from, I deleted the two files config.json.example and config.json.example_all, but I still have the same error.
And since I've never done python, I'm unable to debug myself...
Could someone tell me what's wrong?
Thanks !
The text was updated successfully, but these errors were encountered: