Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Create database tables fails - pyenv #224

Open
MorningLightMountain713 opened this issue Nov 7, 2018 · 5 comments
Open

Create database tables fails - pyenv #224

MorningLightMountain713 opened this issue Nov 7, 2018 · 5 comments

Comments

@MorningLightMountain713
Copy link

Hi there, on OSX 10.14.1,

I can't create database tables. Get the usual error.

Traceback (most recent call last): File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 1072, in run_ return self.run(edit) File "/Users/davew/Library/Application Support/Sublime Text 3/Packages/RobotFrameworkAssistant/commands/scan.py", line 41, in run sublime.set_timeout_async(self.run_scan(file_), 0) File "/Users/davew/Library/Application Support/Sublime Text 3/Packages/RobotFrameworkAssistant/commands/scan.py", line 61, in run_scan raise ValueError('Error in scanning result code: {0}'.format(rc)) ValueError: Error in scanning result code: 1

I have the following set:

"path_to_python": "/Users/davew/.pyenv/shims/python",
"robot_framework_workspace": "/Users/davew/code/robotframework/"

Looking at log file I get the following:

File "/Users/davew/Library/Application Support/Sublime Text 3/Packages/RobotFrameworkAssistant/dataparser/queue/scanner.py", line 6, in <module> from robot.errors import DataError ImportError: No module named robot.errors

@aaltat
Copy link
Collaborator

aaltat commented Nov 8, 2018

Based on the error, it looks like that the your Python virtual environment doesn't contain Robot Framework installation.

@MorningLightMountain713
Copy link
Author

Based on the error, it looks like that the your Python virtual environment doesn't contain Robot Framework installation.

It does though.

(2.7.15_robot) davew@mac  ~/code/robotframework  pip list | grep robotframework robotframework 3.0.4

I can get this working if I install robotframework into my default python install but I don't want to do that - defeats the point of virtualenvs.

I have tried using the virtualenv plugin for sublime text as well to activate the virtualenv but this doesn't work either. Not sure what I can do here?

@MorningLightMountain713
Copy link
Author

I can also change my default /Users/davew/.pyenv/version to the virtualenv and it works. However when I specify .python-version in the directory that I open sublimetext from, it defaults to the virtualenv specified by /Users/davew/.pyenv/version.

@MorningLightMountain713
Copy link
Author

Okay so just changed the path in robotframework to the "path_to_python": "/Users/davew/.pyenv/versions/2.7.15_robot/bin/python" instead of using the shim python... would be better if the .python-version file was respected though.

@aaltat
Copy link
Collaborator

aaltat commented Nov 9, 2018

I understand your problem, if you think that change is important enough, please provide PR to fix it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants