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

Python complaining __init__.py file, Pls help #8

Open
cindyhu11 opened this issue Nov 18, 2019 · 6 comments
Open

Python complaining __init__.py file, Pls help #8

cindyhu11 opened this issue Nov 18, 2019 · 6 comments

Comments

@cindyhu11
Copy link

cindyhu11 commented Nov 18, 2019

I installed pyfos on my windows machine. whenever I try to use the modules (either run as script or import as module), Python alway complain about the init.py file.

import pyfos.utils
Traceback (most recent call last):
File "", line 1, in
File "e:\python\python3.6.6\pyfos\pyfos\utils_init_.py", line 1
../init.py
^
SyntaxError: invalid syntax

@daniel-chung-broadcom
Copy link
Collaborator

are you able to share how you install pyfos and details of your env?

@cindyhu11
Copy link
Author

cindyhu11 commented Nov 22, 2019 via email

@daniel-chung-broadcom
Copy link
Collaborator

Can you please also share when you executed pip3? Also, what pyfos version do you see on your installed README? We did make some changes between 1.2.0 and 1.2.1. So, we want to clarify which version is being used.

Pyfos is tested with 3.5.2. I suspect that 3.6.6 should be ok. But it is difficult confirm one way or another without proper testing.

@cindyhu11
Copy link
Author

cindyhu11 commented Nov 22, 2019 via email

@daniel-chung-broadcom
Copy link
Collaborator

I don't personally use window env for python dev. So, I really cannot say. I followed up with some folks who does and they are not having issues with init.py when executing them. In my linux env, I don't have any issues with init.py.

I guess you can try emptying out the file since the content is mostly related to version stamp. Let me know if that works ok. I'll keep you posted on what I find out here as well.

@daniel-chung-broadcom
Copy link
Collaborator

I just installed python 3.8.0 on windows 10. I did "pip install --user pyfos". Then I python and "import pyfos.utils" and I just get a next prompt back. Is this along the line of what you are doing?

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