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

Need to correct paths for proper deployment #76

Closed
zoulja opened this issue Jun 10, 2017 · 6 comments
Closed

Need to correct paths for proper deployment #76

zoulja opened this issue Jun 10, 2017 · 6 comments

Comments

@zoulja
Copy link

zoulja commented Jun 10, 2017

Installation guide is incomplete, probably need to provide requirements.txt will all dependencies and correct path logic

% git clone https://github.com/bugy/script-server
...
% tools/init.py
Traceback (most recent call last):
File "tools/init.py", line 8, in
import utils.file_utils as file_utils
ImportError: No module named 'utils'

After 'pip3 install utils'

% tools/init.py
Traceback (most recent call last):
File "./init.py", line 8, in
import utils.file_utils as file_utils
ImportError: No module named 'utils.file_utils'

And so on
There are a lots of path related errors

@zoulja zoulja changed the title Need to provide requirements.txt for proper deployment Need to correct paths for proper deployment Jun 10, 2017
@bugy
Copy link
Owner

bugy commented Jun 11, 2017

Hi @zoulja, thank you for the report. I've improved the script, now it should be able to resolve internal dependencies based on current dir.
Coul you git poll and try again, please?

@zoulja
Copy link
Author

zoulja commented Jun 11, 2017

Hello.
Not sure what I'm doing wrong - all utils.* imports still fail
% git clone https://github.com/bugy/script-server
% ./init.py
Traceback (most recent call last):
File "./init.py", line 10, in
import utils.file_utils as file_utils
ImportError: No module named 'utils.file_utils'

Python 3.5.3@Ubuntu 17.04

@bugy
Copy link
Owner

bugy commented Jun 11, 2017

Hi @zoulja, please run it from script-server folder (not tools), i.e. steps should be smth like:

  1. git clone https://github.com/bugy/script-server
  2. cd script-server
  3. tools/init.py

@zoulja
Copy link
Author

zoulja commented Jun 12, 2017

Nope
% [script-server] tools/init.py
Traceback (most recent call last):
File "tools/init.py", line 10, in
import utils.file_utils as file_utils
ImportError: No module named 'utils.file_utils'

% [script-server/tools] ./init.py
Traceback (most recent call last):
File "./init.py", line 10, in
import utils.file_utils as file_utils
ImportError: No module named 'utils.file_utils'

bugy added a commit that referenced this issue Jun 12, 2017
@bugy
Copy link
Owner

bugy commented Jun 12, 2017

Hi @zoulja, this time it looks like a conflict with global utils module, you had installed. I've fixed the issue and now internal utils module should be imported.
Please update from the git repo and try again please (don't forget to run it from script-server path, as tools/init.py)

Thank you for your time and sorry for the inconvenience

@zoulja
Copy link
Author

zoulja commented Jun 12, 2017

Ah, now I remember, I really installed utils module trying to solve this issue.
Not it's ok, thank you

@zoulja zoulja closed this as completed Jun 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants