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

can't open file 'qgis2to3': [Errno 2] No such file or directory #5

Open
tveinot opened this issue Mar 7, 2019 · 14 comments
Open

can't open file 'qgis2to3': [Errno 2] No such file or directory #5

tveinot opened this issue Mar 7, 2019 · 14 comments

Comments

@tveinot
Copy link

tveinot commented Mar 7, 2019

Getting the error; can't open file 'qgis2to3': [Errno 2] No such file or directory when I try to run use the tool. Using it in the OSgeo4w shell under py3_env.

@SIGISLV
Copy link

SIGISLV commented Mar 20, 2019

Same here ! The tool was installed from OSgeo4w shell via pip. But couldn't be able to use it with both version of python.

@enzococca
Copy link

try python -m qgis2to3

@JPollyGIS
Copy link

same issue here.
I tried python -m qgis2to3
i get this message...

C:\PROGRA1\QGIS31.4\apps\Python37\python.exe: No module named qgis2to3.main; 'qgis2to3' is a package and cannot be directly executed

@enzococca
Copy link

enzococca commented Mar 27, 2019 via email

@enzococca
Copy link

enzococca commented Mar 27, 2019 via email

@JPollyGIS
Copy link

-installed python 3 (switched from QGIS's versions) or OsGeo4w
-downloaded qgis2to3 windows_fixes, placed in Lib\site-packages
-opened python.exe
-tested import qgis2to3 (imported fine)
-entered
qgis2to3 -w C:/Users/jpolly/AppData/Roaming/QGIS/QGIS3/profiles/default/python/plugins/AHDTools

no luck, syntax, or workflow?

@tveinot
Copy link
Author

tveinot commented Mar 28, 2019

Sorry I have been super busy lately and have not had time to try these suggestions yet; I would like to add 2 things first My PC was completely rebuilt due to a crash and has a fresh Windows 10 install from Windows 7 I have not had a chance to try this, or even reinstall Qgis2to3 as of yet but hope too soon. Secondly I only have 1 Python install and that is the OSGeo4W Installation is it really necessary to have a second python install?

@enzococca
Copy link

enzococca commented Mar 28, 2019 via email

@SIGISLV
Copy link

SIGISLV commented Mar 29, 2019

I finally find out how to get it workfor me.

  • installed/update my Osgeo4w
  • activate py3_env
  • pip install qgis2to3
  • cd to "root Osgeo4w"/apps/python37/Scripts
  • python3 qgis2to3 -w path/of/the/pluginToMigrate

@JPollyGIS
Copy link

SIGISLV. Worked for me. Thank you!!!

@tveinot
Copy link
Author

tveinot commented Mar 29, 2019

SIGISLV yeah it is working for me too! Thank you

@enzococca
Copy link

enzococca commented Mar 29, 2019 via email

@ashwyn030
Copy link

ashwyn030 commented Nov 20, 2019

I have tried all the options but they didn't work for me.

@AyoubEssrifi
Copy link

I tried another solution that worked for me since none of the above worked.

  • clone the repo of qgis2to3.
  • Then use the command line and go to qgis2to3\qgis2to3\codeporting and then use python3 qgis2to3.

Hope it helps. Cheers

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

6 participants