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

Rasa 2.0 version bug in windows #6926

Closed
matthewkos opened this issue Oct 6, 2020 · 4 comments
Closed

Rasa 2.0 version bug in windows #6926

matthewkos opened this issue Oct 6, 2020 · 4 comments
Assignees
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@matthewkos
Copy link

Rasa version:
2.0.0rc4
Rasa SDK version (if used & relevant):
2.0.0rc4
Rasa X version (if used & relevant):
NA
Python version:
3.7.9
Operating system (windows, osx, ...):
windows 10
Issue:
sys.version in windows 10 does not contain \n
please fix by

Error (including full traceback):

Traceback (most recent call last):
  File "e:\env\anaconda\envs\rasa\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "e:\env\anaconda\envs\rasa\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "E:\Env\Anaconda\envs\rasa\Scripts\rasa.exe\__main__.py", line 7, in <module>
  File "e:\env\anaconda\envs\rasa\lib\site-packages\rasa\__main__.py", line 118, in main
    print_version()
  File "e:\env\anaconda\envs\rasa\lib\site-packages\rasa\__main__.py", line 78, in print_version
    python_version, os_info = sys.version.split("\n")
ValueError: not enough values to unpack (expected 2, got 1)

Command or request that led to error:

rasa --version

Content of configuration file (config.yml) (if relevant):

Content of domain file (domain.yml) (if relevant):

@matthewkos matthewkos added area:rasa-oss 🎡 Anything related to the open source Rasa framework type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors. labels Oct 6, 2020
@sara-tagger
Copy link
Collaborator

Thanks for the issue, @tttthomasssss will get back to you about it soon!

You may find help in the docs and the forum, too 🤗

@nearlyhuman-jwheat
Copy link

I can second this error

Rasa version:
2.0.0 release
Rasa SDK version (if used & relevant):
2.0.0 release
Rasa X version (if used & relevant):
NA
Python version:
3.8
Operating system (windows, osx, ...):
Windows 10 / Using an anaconda environment

@koaning
Copy link
Contributor

koaning commented Oct 15, 2020

Ah my bad. I should've adressed it a while ago. I've added a PR for it!

chmodsss added a commit to chmodsss/rasa that referenced this issue Oct 19, 2020
The original issue was [RasaHQ#6496], where the --version command breaks in windows.
Eventhough the PR[RasaHQ#6926] solved the problem, it looked a bit complicated of parsing twice. In this fix, I used platform.python_version() to solve the issue. 
Working both in windows and linux.
@chmodsss chmodsss mentioned this issue Oct 19, 2020
4 tasks
erohmensing added a commit that referenced this issue Oct 22, 2020
erohmensing pushed a commit that referenced this issue Oct 22, 2020
The original issue was [#6496], where the --version command breaks in windows.
Eventhough the PR[#6926] solved the problem, it looked a bit complicated of parsing twice. In this fix, I used platform.python_version() to solve the issue. 
Working both in windows and linux.
tmbo pushed a commit that referenced this issue Oct 22, 2020
The original issue was [#6496], where the --version command breaks in windows.
Eventhough the PR[#6926] solved the problem, it looked a bit complicated of parsing twice. In this fix, I used platform.python_version() to solve the issue. 
Working both in windows and linux.

Co-authored-by: Sivasurya Santhanam <sivasurya.in@gmail.com>
@wochinge
Copy link
Contributor

fixed by #7023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

No branches or pull requests

5 participants