3

EDIT (after 5 hours): I FINALLY resolved the issue! A BIG mistake (I think) I made.

  • I believe I skipped the the CREATE DATABASE throat command and the overall step of importing my old site's database to the created database. This made the ./migrate.py lose its mind!

As a note, the database connection string (last paragraph of this post) in the config.py is correct, so use it.

I was finally able to resolve and install pyexiv2 and py3exiv2 (thread) and everything went smoothly - it was a memory issue.

Finally, as I ran ./migrate.py i.e app@ubuntu-s-XXXXX:~/throat/scripts$ ./migrate.py

This is the output I got.

app@ubuntu-s-1vcpu-1gb-fra1-01:~/throat/scripts$ ./migrate.py
Traceback (most recent call last):
  File "./migrate.py", line 9, in <module>
    from app.models import dbm as database
  File "../app/__init__.py", line 29, in <module>
    from .views import do, api, subs, api3, jwt
  File "../app/views/__init__.py", line 2, in <module>
    from .do import do
  File "../app/views/do.py", line 13, in <module>
    import pyexiv2
ImportError: No module named 'pyexiv2'

I even tried installing pyexiv2 (also) by running the following but no luck. This is the last blocker in my migration now, I think.

root@XXXXX:/home/app/throat# pip install pyexiv2

My database connection info in config.py is the following.

# Database connection information
DATABASE = {
'host': 'localhost',
'name': 'throat',
'engine': 'MySQLDatabase',
'charset': 'utf8mb4',
'user': 'debian-sys-maint',
'password': 'Pass1234,
}
**EDIT (after 5 hours):** I FINALLY resolved the issue! A BIG mistake (I think) I made. - I believe I skipped the the `CREATE DATABASE throat` command and the overall step of importing my old site's database to the created database. This made the ./migrate.py lose its mind! As a note, the database connection string (last paragraph of this post) in the **config.py** is correct, so use it. ==== I was finally able to resolve and install pyexiv2 and py3exiv2 ([thread](https://phuks.co/s/phuksdev/65794)) and everything went smoothly - it was a memory issue. Finally, as I ran **./migrate.py** i.e `app@ubuntu-s-XXXXX:~/throat/scripts$ ./migrate.py` This is the output I got. ``` app@ubuntu-s-1vcpu-1gb-fra1-01:~/throat/scripts$ ./migrate.py Traceback (most recent call last): File "./migrate.py", line 9, in <module> from app.models import dbm as database File "../app/__init__.py", line 29, in <module> from .views import do, api, subs, api3, jwt File "../app/views/__init__.py", line 2, in <module> from .do import do File "../app/views/do.py", line 13, in <module> import pyexiv2 ImportError: No module named 'pyexiv2' ``` I even tried installing pyexiv2 (also) by running the following but no luck. This is the last blocker in my migration now, I think. `root@XXXXX:/home/app/throat# pip install pyexiv2` My database connection info in **config.py** is the following. ``` # Database connection information DATABASE = { 'host': 'localhost', 'name': 'throat', 'engine': 'MySQLDatabase', 'charset': 'utf8mb4', 'user': 'debian-sys-maint', 'password': 'Pass1234, } ```

1 comments

[–] curious [OP] 0 points (+0|-0)

After five hours, I FINALLY resolved the issue! A BIG mistake (I think) I made.

  • I believe I skipped the the CREATE DATABASE throat command and the overall step of importing my old site's database to the created database. This made the ./migrate.py lose its mind!

As a note, the database connection string (last paragraph of this post) in the config.py is correct, so use it.