Closed alisonsin closed 2 years ago
hi, thanks for reporting the issue.
I installed the latest version traja-0.2.8
in a new environment.
>>> from traja.models.predictive_models.lstm import LSTM
>>> LSTM()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: __init__() missing 10 required positional arguments: 'batch_size', 'num_future', 'hidden_size', 'num_layers', 'output_size', 'input_size', 'batch_first', 'dropout', 'reset_state', and 'bidirectional'
>>>
The import works both in a shell and in a virtual environment.
In your case, I suspect you might be facing an environmental issue. Please make sure you call the package using the same python kernel and virtual env. Otherwise, the issue might be a failure of traja
installation for some reason, which could be related to its dependencies. If so please report the detailed bug with the traja
version.
Maybe check which version of traja you have?
On Wed, Oct 6, 2021 at 4:32 PM Saranraj Nambusubramaniyan < @.***> wrote:
hi, thanks for reporting the issue.
I installed the latest version traja-0.2.8 in a new environment.
from traja.models.predictive_models.lstm import LSTM LSTM() Traceback (most recent call last): File "
", line 1, in TypeError: init() missing 10 required positional arguments: 'batch_size', 'num_future', 'hidden_size', 'num_layers', 'output_size', 'input_size', 'batch_first', 'dropout', 'reset_state', and 'bidirectional' The import works both in a shell and in a virtual environment.
In your case, I suspect you might be facing an environmental issue. Please make sure you call the package from the same python kernel and virtual env. Otherwise, the issue might be failure of traja installation for some reason, which could be related to its dependencies. If so please report the detailed bug with the traja version.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/traja-team/traja/issues/96#issuecomment-936349886, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACOLMZAKF43ASP3DB4JYQHLUFRMWLANCNFSM5FOTVRGQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
@alisonsin @justinshenk I close this issue as resolved. Please feel free to reopen it if there are any issues.
When I run the code: from traja.models.predictive_models.lstm import LSTM. It says that No module named 'traja.models.predictive_models' I'm wondering how I can go about it. Thanks!